render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

Blame 0043-vhost-logging-mistake-enable-not-disable-log.patch

Justin M. Forbes eff942
From b4654f7911adb1352c2c47c76f650e8419a20b91 Mon Sep 17 00:00:00 2001
Justin M. Forbes eff942
From: Michael S. Tsirkin <mst@redhat.com>
Justin M. Forbes eff942
Date: Wed, 24 Feb 2010 21:10:01 +0200
Justin M. Forbes eff942
Subject: [PATCH] vhost: logging mistake enable, not disable log
Justin M. Forbes eff942
Justin M. Forbes eff942
Correctly pass log enable value from memory client to vhost device.
Justin M. Forbes eff942
---
Justin M. Forbes eff942
 hw/vhost.c |    2 +-
Justin M. Forbes eff942
 1 files changed, 1 insertions(+), 1 deletions(-)
Justin M. Forbes eff942
Justin M. Forbes eff942
diff --git a/hw/vhost.c b/hw/vhost.c
Justin M. Forbes eff942
index 7391bd1..019afc2 100644
Justin M. Forbes eff942
--- a/hw/vhost.c
Justin M. Forbes eff942
+++ b/hw/vhost.c
Justin M. Forbes eff942
@@ -387,7 +387,7 @@ static int vhost_client_migration_log(struct CPUPhysMemoryClient *client,
Justin M. Forbes eff942
 		dev->log_size = 0;
Justin M. Forbes eff942
 	} else {
Justin M. Forbes eff942
 		vhost_dev_log_resize(dev, vhost_get_log_size(dev));
Justin M. Forbes eff942
-		r = vhost_dev_set_log(dev, false);
Justin M. Forbes eff942
+		r = vhost_dev_set_log(dev, true);
Justin M. Forbes eff942
 		if (r < 0) {
Justin M. Forbes eff942
 			return r;
Justin M. Forbes eff942
 		}
Justin M. Forbes eff942
-- 
Justin M. Forbes eff942
1.6.6.1
Justin M. Forbes eff942