qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Cancel IDE outstanding IO on device reset.


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Cancel IDE outstanding IO on device reset.
Date: Thu, 14 Aug 2008 15:33:44 -0500
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Gleb Natapov wrote:
Cancel AIO in IDE layer on device rest in order to be in deterministic state
during next boot.
-static void piix3_reset(PCIIDEState *d)
+static void piix3_reset(void *opaque)
 {
+    PCIIDEState *d = opaque;
     uint8_t *pci_conf = d->dev.config;
+    int i;
+
+    for (i = 0; i < 2; i++)
+        ide_dma_cancel(d->bmdma);

I think you intended:

ide_dma_cancel(&d->bmdma[i]);

Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]