Amit Shah 996faf1ad4 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>
2011-04-13 12:20:42 +02:00
..
2011-04-12 21:51:51 +02:00
2011-04-10 14:00:14 +02:00
2011-03-22 07:42:08 +01:00
2011-04-01 19:07:48 -05:00
2011-04-07 13:51:48 +02:00
2011-02-20 09:34:06 +00:00
2011-03-06 20:10:58 +01:00
2011-04-07 13:51:48 +02:00
2011-02-21 15:46:53 +01:00
2011-03-07 13:42:37 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:37 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-10 03:38:13 +01:00
2011-02-20 09:35:06 +00:00
2011-04-07 13:51:48 +02:00
2011-03-10 03:38:13 +01:00
2011-02-20 09:31:21 +00:00
2011-03-22 07:44:15 +01:00
2011-02-20 09:35:06 +00:00
2011-03-28 18:34:22 +02:00
2011-03-28 18:34:22 +02:00
2011-03-28 18:34:22 +02:00
2011-02-20 18:23:07 +01:00
2011-04-07 13:51:48 +02:00
2011-04-11 17:21:42 +00:00
2011-04-01 18:34:55 +02:00
2011-02-21 15:41:12 +01:00
2011-02-25 12:13:38 +01:00
2011-03-03 15:04:51 +01:00
2011-03-10 03:11:47 +01:00
2011-03-26 11:11:02 +00:00
2011-04-07 13:51:48 +02:00
2011-04-07 14:25:53 +01:00
2011-02-20 09:34:31 +00:00
2011-02-20 09:34:31 +00:00
2011-03-28 18:34:23 +02:00
2011-03-22 07:44:15 +01:00
2011-02-17 19:34:52 +00:00
2011-02-14 12:39:46 -02:00
2011-04-08 11:32:21 +02:00
2011-04-08 11:32:21 +02:00