qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH RFC 3/5] vhost: skip memory which needs dirty loggin


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH RFC 3/5] vhost: skip memory which needs dirty logging
Date: Wed, 6 Apr 2011 23:41:51 +0300
User-agent: Mutt/1.5.21 (2010-09-15)

vhost doesn't support write logging
(except for migration), anyway.

Signed-off-by: Michael S. Tsirkin <address@hidden>
---
 hw/vhost.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hw/vhost.c b/hw/vhost.c
index dc3d0e2..257e3dd 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -311,6 +311,10 @@ static void vhost_client_set_memory(CPUPhysMemoryClient 
*client,
     int r;
     dev->mem = qemu_realloc(dev->mem, s);
 
+    if (log_dirty) {
+        flags = IO_MEM_UNASSIGNED;
+    }
+
     assert(size);
 
     vhost_dev_unassign_memory(dev, start_addr, size);
-- 
1.7.3.2.91.g446ac




reply via email to

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