From: Stefan Hajnoczi <stefanha@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Christoph Hellwig <chellwig@redhat.com>,
qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>,
Avi Kivity <avi@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] RFC v3: blockdev_add & friends, brief rationale, QMP docs
Date: Thu, 17 Jun 2010 11:26:01 +0100 [thread overview]
Message-ID: <AANLkTilAjlPwSYP144bVNzqS2flkygY_HSgbo5TO5eQh@mail.gmail.com> (raw)
In-Reply-To: <m3ocfadh19.fsf@blackfin.pond.sub.org>
On Wed, Jun 16, 2010 at 6:27 PM, Markus Armbruster <armbru@redhat.com> wrote:
> blockdev_add
> ------------
>
> Add host block device.
>
> Arguments:
>
> - "id": the host block device's ID, must be unique (json-string)
> - "format": image format (json-string, optional)
> - Possible values: "raw", "qcow2", ...
What is the default when unset? (I expect we'll auto-detect the
format but this should be documented.)
> - "protocol": image access protocol (json-string, optional)
> - Possible values: "auto", "file", "nbd", ...
The semantics of "auto" are not documented here.
> Notes:
>
> (1) If argument "protocol" is missing, all other optional arguments must
> be missing as well. This defines a block device with no media
> inserted.
Perhaps this is what "auto" means?
> (2) It's possible to list supported disk formats and protocols by
> running QEMU with arguments "-blockdev_add \?".
Is there an query-block-driver command or something in QMP to
enumerate supported formats and protocols? Not sure how useful this
would be to the management stack - blockdev_add will probably return
an error if an attempt is made to open an unsupported file.
> blockdev_del
> ------------
>
> Remove a host block device.
>
> Arguments:
>
> - "id": the host block device's ID (json-string)
>
> Example:
>
> -> { "execute": "blockdev_del", "arguments": { "id": "blk1" } }
> <- { "return": {} }
What about an attached guest device? Will this fail if the virtio-blk
PCI device is still present? For SCSI I imagine we can usually just
remove the host block device. For IDE there isn't hotplug support
AFAIK, what happens?
Stefan
next prev parent reply other threads:[~2010-06-17 10:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 17:27 [Qemu-devel] RFC v3: blockdev_add & friends, brief rationale, QMP docs Markus Armbruster
2010-06-17 10:26 ` Stefan Hajnoczi [this message]
2010-06-17 12:49 ` Markus Armbruster
2010-06-17 19:40 ` Stefan Hajnoczi
2010-06-18 7:27 ` Markus Armbruster
2010-06-18 8:16 ` Stefan Hajnoczi
2010-06-18 9:36 ` Markus Armbruster
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=AANLkTilAjlPwSYP144bVNzqS2flkygY_HSgbo5TO5eQh@mail.gmail.com \
--to=stefanha@gmail.com \
--cc=armbru@redhat.com \
--cc=avi@redhat.com \
--cc=chellwig@redhat.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=lcapitulino@redhat.com \
--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).