mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[qemu] Sync data to disk if write cache is disabled.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
This commit is contained in:
1 parent
a8ab3e9d3a
commit
2dd343a99d
1 file changed
+3
@@ -968,6 +968,9 @@ static void ide_write_dma_cb(void *opaque, int ret)
|
||||
|
||||
/* end of transfer ? */
|
||||
if (s->nsector == 0) {
|
||||
/* 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:
|
||||
|
||||