What took me a bit to figure out is that this does not mount a single folder, but a virtual parent folder to which you can add and remove directories without changing the mount. This even works while the VM is running.
For example, mounting
share /mnt/host virtiofs rw,nofail 0 0
in the guest and then sharing
~/Downloads
in UTM will share the Downloads folder as
/mnt/host/Downloads
When using the QEMU backend, VirtFS is used instead, which does not use such a parent folder and requires restarting the VM to change shares iirc.
What took me a bit to figure out is that this does not mount a single folder, but a virtual parent folder to which you can add and remove directories without changing the mount. This even works while the VM is running.
For example, mounting
in the guest and then sharing in UTM will share the Downloads folder as When using the QEMU backend, VirtFS is used instead, which does not use such a parent folder and requires restarting the VM to change shares iirc.