These are some fixes for the DMA code in IDE that I came up with when debugging the crash in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=604869
This doesn't fix the cause of the I/O errors (which is somewhere in vvfat), but rather improves how the error situation is handled. Kevin Wolf (4): ide: Factor ide_dma_set_inactive out ide: Set bus master inactive on error ide: Ignore double DMA transfer starts/stops ide: Reset current_addr after stopping DMA hw/ide/core.c | 31 +++++++++++++-------------- hw/ide/pci.c | 62 ++++++++++++++++++++++++++++++-------------------------- 2 files changed, 48 insertions(+), 45 deletions(-) -- 1.7.2.3