All of lore.kernel.org
 help / color / mirror / Atom feed
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>,
	Alberto Garcia <berto@igalia.com>,
	qemu-stable <qemu-stable@nongnu.org>,
	qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>,
	John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/4] blockdev: Fix 'change' for slot devices
Date: Wed, 20 Jan 2016 13:26:08 -0700	[thread overview]
Message-ID: <569FED60.6040307@redhat.com> (raw)
In-Reply-To: <1453314561-10486-3-git-send-email-mreitz@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]

On 01/20/2016 11:29 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           | 31 +++++++++++++++++++++++++++++--
>  qapi/block-core.json |  3 +--
>  2 files changed, 30 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 --]

  reply	other threads:[~2016-01-20 20:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20 18:29 [Qemu-devel] [PATCH v2 0/4] blockdev: Fix 'change' for slot devices Max Reitz
2016-01-20 18:29 ` [Qemu-devel] [PATCH v2 1/4] block: Add blk_dev_has_tray() Max Reitz
2016-01-20 18:29 ` [Qemu-devel] [PATCH v2 2/4] blockdev: Fix 'change' for slot devices Max Reitz
2016-01-20 20:26   ` Eric Blake [this message]
2016-01-22  9:58   ` Alberto Garcia
2016-01-22 22:32     ` Max Reitz
2016-01-20 18:29 ` [Qemu-devel] [PATCH v2 3/4] Revert "hw/block/fdc: Implement tray status" Max Reitz
2016-01-20 18:29 ` [Qemu-devel] [PATCH v2 4/4] block/qapi: Emit tray_open only if there is a tray Max Reitz
2016-01-20 20:27   ` Eric Blake
2016-01-22  9:48   ` Alberto Garcia
2016-01-21 15:10 ` [Qemu-devel] [PATCH v2 0/4] blockdev: Fix 'change' for slot devices 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=569FED60.6040307@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=berto@igalia.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 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.