From: Eric Blake <eblake@redhat.com>
To: Max Reitz <mreitz@redhat.com>, qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, qemu-stable <qemu-stable@nongnu.org>,
John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/4] blockdev: Fix 'change' for slot devices
Date: Fri, 15 Jan 2016 10:08:06 -0700 [thread overview]
Message-ID: <56992776.2090907@redhat.com> (raw)
In-Reply-To: <1452613674-12248-3-git-send-email-mreitz@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
On 01/12/2016 08:47 AM, Max Reitz wrote:
> 'change' and related operations did not work when used on guest devices
> featuring removable media but no actual tray, because
> blk_dev_is_tray_open() always returned false for them and the
> blockdev-{insert,remove}-medium commands required it to return true.
>
> Fix this by making blockdev-{insert,remove}-medium work on tray-less
> devices. Also, blockdev-{open,close}-tray are now explicitly no-ops when
> invoked on such devices, and blk_dev_change_media_cb() is instead
> called by blockdev-{insert,remove}-medium (for tray-less devices only).
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Cc: qemu-stable <qemu-stable@nongnu.org>
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> ---
> blockdev.c | 27 +++++++++++++++++++++++++--
> qapi/block-core.json | 3 +--
> 2 files changed, 26 insertions(+), 4 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-01-15 17:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 15:47 [Qemu-devel] [PATCH 0/4] blockdev: Fix 'change' for slot devices Max Reitz
2016-01-12 15:47 ` [Qemu-devel] [PATCH 1/4] block: Add blk_dev_has_tray() Max Reitz
2016-01-15 16:57 ` Eric Blake
2016-01-18 10:23 ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2016-01-12 15:47 ` [Qemu-devel] [PATCH 2/4] blockdev: Fix 'change' for slot devices Max Reitz
2016-01-15 17:08 ` Eric Blake [this message]
2016-01-18 10:49 ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2016-01-12 15:47 ` [Qemu-devel] [PATCH 3/4] Revert "hw/block/fdc: Implement tray status" Max Reitz
2016-01-15 17:11 ` Eric Blake
2016-01-12 15:47 ` [Qemu-devel] [PATCH 4/4] block/qapi: Emit tray_open only if there is a tray Max Reitz
2016-01-15 17:11 ` Eric Blake
2016-01-18 10:52 ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2016-01-15 16:10 ` [Qemu-devel] [PATCH 0/4] blockdev: Fix 'change' for slot devices Peter Maydell
2016-01-15 16:24 ` Peter Maydell
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=56992776.2090907@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@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).