qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] 9pfs: log warning if msize <= 8192


From: Greg Kurz
Subject: Re: [PATCH] 9pfs: log warning if msize <= 8192
Date: Thu, 3 Sep 2020 11:35:14 +0200

On Thu, 03 Sep 2020 10:20:40 +0200
Christian Schoenebeck <qemu_oss@crudebyte.com> wrote:

> On Mittwoch, 2. September 2020 18:54:22 CEST Greg Kurz wrote:
> > > Well, I can do that of course. But somehow I fear users get lost by just
> > > pointing them to "man 1 qemu" in the log message. It already starts that
> > > e.g. on Debian there is no "man qemu", it is "man qemu-system" there
> > > instead. Next issue is that qemu man page is currently not structured in
> > > a way that would> 
> > > allow me to directly point them to the relevant man heading like:
> > >   man --pager='less -p ^9P-msize' qemu
> > > 
> > > So they would need to scroll their way through the entire man page by
> > > themselfes and find confusing sections like "-fsdev -device virtio-9p-pci"
> > > vs. "-virtfs", etc. I can imagine some people will struggle with that.
> > > 
> > > With a link like "https://wiki.qemu.org/Documentation/9psetup#msize"; the
> > > thing would be crystal clear within seconds.
> > > 
> > > Just my opinion. Greg?
> > 
> > Fine by me for this patch.
> > 
> > For a longer term, maybe we should find a way to advertise some hint
> > for msize to the guest... Not sure how to do that though.
> 
> On the long term that would be possible, however only with a protocol change 
> allowing server to send minimum, maximum and recommended msize to client.
> 

Hmm... not sure adding a new 9P protocol version for this is the
way to go. Not speaking of all the hustle this would cause, these
msizes rather look like properties of the device that the guest
can use to configure the 9P session.

What about adding them to the virtio-9p device config along with
the mount 'tag' and teach trans_virtio.c in linux to expose them
as well in the sysfs entry of the device ?

This could also be the occasion to describe virtio-9p in the virtio
spec [1]. Something that has been sitting on my TODO list for years
but I could never find time to consider...

[1] https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.html

> As you know, right now server only has a say in maximum msize.
> 

I guess you mean minimum size ?

> Best regards,
> Christian Schoenebeck
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]