diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-04-12 21:36:07 +0530 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-04-13 12:20:42 +0200 |
commit | 996faf1ad4a93342e381766d95686b16624f0dbd (patch) | |
tree | be0c96cc36f88d59462c83fa5f6db3bf59a17148 /audio/audio.c | |
parent | 0af63ba3629e6f826846a73636ca391a810b2c6e (diff) |
atapi: GESN: implement 'media' subcommand
Implement the 'media' sub-command of the GET_EVENT_STATUS_NOTIFICATION
command. This helps us report tray open, tray closed, no media, media
present states to the guest.
Newer Linux kernels (2.6.38+) rely on this command to revalidate discs
after media change.
This patch also sends out tray open/closed status to the guest driver
when requested e.g. via the CDROM_DRIVE_STATUS ioctl (thanks Markus).
Without such notification, the guest and qemu's tray open/close status
was frequently out of sync, causing installers like Anaconda detecting
no disc instead of tray open, confusing them terribly.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'audio/audio.c')
0 files changed, 0 insertions, 0 deletions