All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Qemu-block <qemu-block@nongnu.org>
Subject: Re: [PATCH] doc: Describe missing generic -blockdev options
Date: Tue, 15 Oct 2019 16:05:10 +0200	[thread overview]
Message-ID: <20191015140510.GB4093@localhost.localdomain> (raw)
In-Reply-To: <CAFEAcA8vUcj2bQDno17ncH=zoDvW-9wrzaWo4pLyPTX_Ot=AAQ@mail.gmail.com>

Am 15.10.2019 um 15:55 hat Peter Maydell geschrieben:
> On Tue, 15 Oct 2019 at 13:40, Kevin Wolf <kwolf@redhat.com> wrote:
> >
> > We added more generic options after introducing -blockdev and forgot to
> > update the documentation (man page and --help output) accordingly. Do
> > that now.
> >
> > Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> > ---
> >  qemu-options.hx | 19 ++++++++++++++++++-
> >  1 file changed, 18 insertions(+), 1 deletion(-)
> >
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 793d70ff93..9f6aa3dde3 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -849,7 +849,8 @@ ETEXI
> >  DEF("blockdev", HAS_ARG, QEMU_OPTION_blockdev,
> >      "-blockdev [driver=]driver[,node-name=N][,discard=ignore|unmap]\n"
> >      "          [,cache.direct=on|off][,cache.no-flush=on|off]\n"
> > -    "          [,read-only=on|off][,detect-zeroes=on|off|unmap]\n"
> > +    "          [,read-only=on|off][,auto-read-only=on|off]\n"
> > +    "          [,force-share=on|off][,detect-zeroes=on|off|unmap]\n"
> >      "          [,driver specific parameters...]\n"
> >      "                configure a block backend\n", QEMU_ARCH_ALL)
> >  STEXI
> > @@ -885,6 +886,22 @@ name is not intended to be predictable and changes between QEMU invocations.
> >  For the top level, an explicit node name must be specified.
> >  @item read-only
> >  Open the node read-only. Guest write attempts will fail.
> > +
> > +Note that some block drivers support only read-only access, either generally or
> > +in certain configurations. In this case, the default value
> > +@option{read-only=off} does not work and the option must be specified
> > +explicitly.
> > +@item auto-read-only
> > +If @option{auto-read-only=on} is set, QEMU is allowed not to open the image
> > +read-write even if @option{read-only=off} is requested, but fall back to
> > +read-only instead (and switch between the modes later), e.g. depending on
> > +whether the image file is writable or whether a writing user is attached to the
> > +node.
> > +@item force-share
> > +Override the image locking system of QEMU and force the node to allowing
> > +sharing all permissions with other uses.
> 
> Grammar nit: "to allow sharing"; but maybe the phrasing could
> be clarified anyway -- I'm not entirely sure what 'sharing
> permissions" would be. The first part of the sentence suggests
> this option is "force the image file to be opened even if some
> other QEMU instance has it open already", but the second half
> soudns like "don't lock the image, so that some other use later
> is allowed to open it" ? Or is it both, or something else?

It's more the latter. Open the image file and allow other instances to
have it open as well (existing and future instances), but still error
out if the other instance doesn't allow sharing.

I'm open for suggestions on how to phrase this better.

Kevin


  reply	other threads:[~2019-10-15 14:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 12:38 [PATCH] doc: Describe missing generic -blockdev options Kevin Wolf
2019-10-15 13:55 ` Peter Maydell
2019-10-15 14:05   ` Kevin Wolf [this message]
2019-10-15 14:17     ` Eric Blake
2019-10-15 13:59 ` Eric Blake

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=20191015140510.GB4093@localhost.localdomain \
    --to=kwolf@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-block@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.