Requires patches in my IDE branch, for context. This series changes blk_eject (used for a software-initiated eject request) to always trigger a QMP tray event, in contrast to the current behavior where a tray event only occurs if a medium is already in the tray.
V2: Now with tests. (Kevin) ________________________________________________________________________________ For convenience, this branch is available at: https://github.com/jnsnow/qemu.git branch tray-always-notify https://github.com/jnsnow/qemu/tree/tray-always-notify This version is tagged tray-always-notify-v2: https://github.com/jnsnow/qemu/releases/tag/tray-always-notify-v2 John Snow (6): block-backend: Always notify on blk_eject libqtest: add qmp_eventwait_ref libqos/ahci: Support expected errors libqos/ahci: Add ATAPI tray macros libqos/ahci: Add get_sense and test_ready ahci-test: add QMP tray test for ATAPI block/block-backend.c | 13 +++---- tests/ahci-test.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/libqos/ahci.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++--- tests/libqos/ahci.h | 26 ++++++++++++-- tests/libqtest.c | 13 +++++-- tests/libqtest.h | 22 ++++++++++++ 6 files changed, 252 insertions(+), 16 deletions(-) -- 2.7.4