qemu/hw/ide
Igor V. Kovalenko 90228ee395 workaround for cmd646 bmdma register access while no dma is active
This is a workaround only, and is a partial revert
of a few changes to BMDMAState which removed pci_dev
field on the way.

- cmd646 pci_from_bm() expects bm->unit value to
correspond with bm data being passed to callback
as opaque pointer. This breaks when write to dma
control register of second channel happens when no
dma operation is in progress, so bm->unit is zero
for second channel, and pci_from_bm() returns garbage
pointer. Crash happens shortly after that while
dereferencing that pointer.

v0->v1: cleaned up dead code from pci_from_bm.

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-12-13 19:03:31 +00:00
..
cmd646.c workaround for cmd646 bmdma register access while no dma is active 2009-12-13 19:03:31 +00:00
core.c ide: implement stub for audio control/volume read 2009-12-03 15:26:01 -06:00
internal.h workaround for cmd646 bmdma register access while no dma is active 2009-12-13 19:03:31 +00:00
isa.c IDE: Fix reset handling 2009-11-07 14:13:05 +00:00
macio.c IDE: Fix reset handling 2009-11-07 14:13:05 +00:00
microdrive.c Add "static" to please Sparse 2009-12-04 20:44:44 +00:00
mmio.c IDE: Fix reset handling 2009-11-07 14:13:05 +00:00
pci.c ide: port pci ide to vmstate 2009-10-27 12:28:46 -05:00
pci.h ide: port pci ide to vmstate 2009-10-27 12:28:46 -05:00
piix.c workaround for cmd646 bmdma register access while no dma is active 2009-12-13 19:03:31 +00:00
qdev.c Clean up test for qdev_init() failure 2009-10-07 08:54:55 -05:00