From: Kevin Wolf <kwolf@redhat.com>
To: Max Reitz <mreitz@redhat.com>
Cc: Alberto Garcia <berto@igalia.com>,
qemu-block@nongnu.org, qemu-devel@nongnu.org,
Markus Armbruster <armbru@redhat.com>,
John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 0/4] blockdev: Fix 'change' for slot devices
Date: Mon, 25 Jan 2016 12:25:45 +0100 [thread overview]
Message-ID: <20160125112545.GD5154@noname.redhat.com> (raw)
In-Reply-To: <1453503050-20187-1-git-send-email-mreitz@redhat.com>
Am 22.01.2016 um 23:50 hat Max Reitz geschrieben:
> The series "BlockBackend and media" intended all block devices with
> removable media to implement a tray model; if the devices does not have
> a tray, it should emulate one.
>
> While this may make sense from a technical perspective (blockdev-*-tray
> are guest device controlling operations, invoking
> blk_dev_change_media_cb(); blockdev-*-medium are operations concerning
> the block layer, controlling the BB-BDS link), it is (probably)
> unintuitive to users, and it requires said implementation of an emulated
> tray for each of the slot devices (floppy disk drives and SD card
> readers).
>
> We can get rid of those virtual trays by special-casing tray-less
> devices in blockdev-*-tray (those operations are no-ops there) and in
> blockdev-*-medium (those operations then have to invoke
> blk_dev_change_media_cb()). With this change, changing the medium
> inserted into a slot device will no longer emit TRAY_MOVED events (which
> seems like a bugfix to me, because slot devices actually do not have
> trays).
Thanks, applied to the block branch.
Kevin
prev parent reply other threads:[~2016-01-25 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 22:50 [Qemu-devel] [PATCH v3 0/4] blockdev: Fix 'change' for slot devices Max Reitz
2016-01-22 22:50 ` [Qemu-devel] [PATCH v3 1/4] block: Add blk_dev_has_tray() Max Reitz
2016-01-22 22:50 ` [Qemu-devel] [PATCH v3 2/4] blockdev: Fix 'change' for slot devices Max Reitz
2016-01-25 9:35 ` Alberto Garcia
2016-01-22 22:50 ` [Qemu-devel] [PATCH v3 3/4] Revert "hw/block/fdc: Implement tray status" Max Reitz
2016-01-22 22:50 ` [Qemu-devel] [PATCH v3 4/4] block/qapi: Emit tray_open only if there is a tray Max Reitz
2016-01-25 11:25 ` Kevin Wolf [this message]
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=20160125112545.GD5154@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=jsnow@redhat.com \
--cc=mreitz@redhat.com \
--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.