Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: File sharing over virtio-9p



At Tue, 25 Mar 2025 19:31:21 +0900, Ryota Ozaki <ozaki-r%netbsd.org@localhost> 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 <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpFWJzFjB3nk.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index