At Tue, 25 Mar 2025 19:31:21 +0900, Ryota Ozaki <[email protected]> wrote: Subject: Re: File sharing over virtio-9p > > vio9p is not optimized for performance yet, for example, it can serve > each request synchronously.
Good to know.
> > I wonder is there anything NetBSD, i.e. vio9p(4), can do to cleanly shut
> > down the 9p connection and allow it to be reused without having to
> > restart the host QEMU process? This would be nice as then a VM could
> > reboot itself without having to use the host tools to restart.
>
> umount /9pfs before rebooting might help you.
>
> vio9p itself is just a bridge between a client and a server of 9p, so
> it doesn't help for shutting down the 9p connection over it, I think.
Indeed -- I tried a unmounting before a reboot and the mount worked
again with no problem this time.
I'm not sure why there could or would be any difference between
vfs_shutdown() calling dounmount() vs. the call from sys_unmount().
Perhaps it is just a matter of timing, or whether or not some previous
activity had occurred, or maybe it's entirely an issue on the QEMU side.
--
Greg A. Woods <[email protected]>
Kelowna, BC +1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgpywB1hF51Am.pgp
Description: OpenPGP Digital Signature
