WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [qemu] Sync data to disk if write cache i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [qemu] Sync data to disk if write cache is disabled.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 May 2007 08:20:21 -0700
Delivery-date: Tue, 15 May 2007 08:20:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx>
# Date 1178801833 -3600
# Node ID 8226c26cff4028d11f2ef8494712293361805d67
# Parent  305e28c0ef9b5abffd193da88a3bbf5362edf682
[qemu] Sync data to disk if write cache is disabled.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx>
---
 tools/ioemu/hw/ide.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 305e28c0ef9b -r 8226c26cff40 tools/ioemu/hw/ide.c
--- a/tools/ioemu/hw/ide.c      Wed May 09 22:50:26 2007 +0100
+++ b/tools/ioemu/hw/ide.c      Thu May 10 13:57:13 2007 +0100
@@ -968,6 +968,9 @@ static void ide_write_dma_cb(void *opaqu
 
     /* 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:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [qemu] Sync data to disk if write cache is disabled., Xen patchbot-unstable <=