[qemu] Sync data to disk if write cache is disabled.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
This commit is contained in:
Christian Limpach committed 2007-05-10 13:57:13 +01:00
1 parent a8ab3e9d3a
commit 2dd343a99d
1 file changed
+3
+3
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.