qemu-e2k/hw/ide
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
..
ahci.c ahci: make number of ports runtime determined 2011-02-07 11:40:31 +01:00
ahci.h ahci: make number of ports runtime determined 2011-02-07 11:40:31 +01:00
cmd646.c ide: Fix build for cmd646.c 2010-12-17 19:57:21 +01:00
core.c atapi: GESN: implement 'media' subcommand 2011-04-13 12:20:42 +02:00
ich.c ahci: make number of ports runtime determined 2011-02-07 11:40:31 +01:00
internal.h atapi: GESN: implement 'media' subcommand 2011-04-13 12:20:42 +02:00
isa.c Store IDE bus id in IDEBus structure for easy access. 2010-12-11 21:27:47 +00:00
macio.c Add endianness as io mem parameter 2010-12-11 15:24:25 +00:00
microdrive.c Merge remote branch 'kwolf/for-anthony' into staging 2010-07-06 10:48:01 -05:00
mmio.c Add endianness as io mem parameter 2010-12-11 15:24:25 +00:00
pci.c ide: Remove unneeded null pointer check 2011-01-24 16:41:49 +01:00
pci.h ide: Split out BMDMA code from ATA core 2010-12-17 16:11:01 +01:00
piix.c isa-bus: Remove bogus IRQ sharing check 2011-02-21 15:46:53 +01:00
qdev.c Add bootindex parameter to net/block/fd device 2010-12-11 21:32:46 +00:00
via.c isa-bus: Remove bogus IRQ sharing check 2011-02-21 15:46:53 +01:00