19 lines
655 B
Diff
19 lines
655 B
Diff
Index: xen-3.2-testing/tools/ioemu/hw/ide.c
|
|
===================================================================
|
|
--- xen-3.2-testing.orig/tools/ioemu/hw/ide.c
|
|
+++ xen-3.2-testing/tools/ioemu/hw/ide.c
|
|
@@ -1023,12 +1023,12 @@ static void ide_write_dma_cb(void *opaqu
|
|
|
|
/* end of transfer ? */
|
|
if (s->nsector == 0) {
|
|
+ eot:
|
|
/* Ensure the data hit disk before telling the guest OS so. */
|
|
if (!s->write_cache)
|
|
bdrv_flush(s->bs);
|
|
s->status = READY_STAT | SEEK_STAT;
|
|
ide_set_irq(s);
|
|
- eot:
|
|
bm->status &= ~BM_STATUS_DMAING;
|
|
bm->status |= BM_STATUS_INT;
|
|
bm->dma_cb = NULL;
|