qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: "Greg Kurz" <groug@kaod.org>, "Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH] 9pfs: log warning if msize <= 8192
Date: Thu, 03 Sep 2020 12:57:04 +0200	[thread overview]
Message-ID: <5477909.c10NYOVa74@silver> (raw)
In-Reply-To: <20200903113514.7a0a6ac8@bahia.lan>

On Donnerstag, 3. September 2020 11:35:14 CEST Greg Kurz wrote:
> > 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

Sounds like a good idea!

> > As you know, right now server only has a say in maximum msize.
> 
> I guess you mean minimum size ?

Well, it's ambiguous, but we mean the same thing: server may optionally lower 
the msize previously suggested by client; server must not raise client's 
suggested msize though.

If you see it in the context of Rversion response handling then that's a 
"minimum" operation, yes.

If you see it as prose then it is "maximum msize", e.g.:

	Server's max. supported msize: 20 MiB  <- covered by 9P protocol
	Server's min. supported msize: 4 kiB   <- not officially covered by 9P

Client suggests msize 100 MiB -> server lowers that to
min(100MiB, 20MiB) = 20MiB.

Best regards,
Christian Schoenebeck




  reply	other threads:[~2020-09-03 11:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-02 11:22 [PATCH] 9pfs: log warning if msize <= 8192 Christian Schoenebeck
2020-09-02 12:25 ` Daniel P. Berrangé
2020-09-02 12:52   ` Christian Schoenebeck
2020-09-02 13:39     ` Greg Kurz
2020-09-02 13:45       ` Daniel P. Berrangé
2020-09-02 14:08         ` Christian Schoenebeck
2020-09-02 14:10           ` Daniel P. Berrangé
2020-09-02 16:03             ` Christian Schoenebeck
2020-09-02 16:08               ` Daniel P. Berrangé
2020-09-02 16:54               ` Greg Kurz
2020-09-03  8:20                 ` Christian Schoenebeck
2020-09-03  9:35                   ` Greg Kurz
2020-09-03 10:57                     ` Christian Schoenebeck [this message]
2020-09-02 13:58       ` Christian Schoenebeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5477909.c10NYOVa74@silver \
    --to=qemu_oss@crudebyte.com \
    --cc=berrange@redhat.com \
    --cc=groug@kaod.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).