]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
ide: enable single word DMA
authorIan Jackson <iwj@mariner.uk.xensource.com>
Fri, 18 Jul 2008 13:33:07 +0000 (14:33 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Jul 2008 13:33:07 +0000 (14:33 +0100)
commit1ee76ce4b6069ccb0ff90066c3cc95685c77122e
treebfa381f20559b776a321ca5346219955d3e33f97
parentc9439978836adb7751b7d311ecf77e3618a0e930
ide: enable single word DMA

Windows XP doesn't enable DMA by default on dvd-rom devices emulated by QEMU.
Furthermore if I try to manually enable DMA using Device Manager, the
DMA mode chosen by Windows is inexplicably one of the few modes
unsupported by QEMU: single word mode 2.
Since on virtual hardware single word DMA is not really slower than
multi word DMA, it makes sense for QEMU to support single word dma as
well.

This patch does exactly this.  We also make sure that mdma is
deactivated when sdma is active and vice versa.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/ide.c