cbdfe66
From c96adfe57a5a7ceed488fd6f198a762dd84c1d9c Mon Sep 17 00:00:00 2001
cbdfe66
From: Michael S. Tsirkin <mst@redhat.com>
cbdfe66
Date: Wed, 24 Feb 2010 21:09:48 +0200
cbdfe66
Subject: [PATCH] vhost: logging thinko fix
cbdfe66
cbdfe66
Fix logging: set it to requested value.
cbdfe66
cbdfe66
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
cbdfe66
---
cbdfe66
 hw/vhost.c |    2 +-
cbdfe66
 1 files changed, 1 insertions(+), 1 deletions(-)
cbdfe66
cbdfe66
diff --git a/hw/vhost.c b/hw/vhost.c
cbdfe66
index e5c1ead..3c54596 100644
cbdfe66
--- a/hw/vhost.c
cbdfe66
+++ b/hw/vhost.c
cbdfe66
@@ -310,7 +310,7 @@ static int vhost_dev_set_log(struct vhost_dev *dev, bool enable_log)
cbdfe66
 {
cbdfe66
 	uint64_t features = dev->acked_features;
cbdfe66
 	int r;
cbdfe66
-	if (dev->log_enabled) {
cbdfe66
+	if (enable_log) {
cbdfe66
 		features |= 0x1 << VHOST_F_LOG_ALL;
cbdfe66
 	}
cbdfe66
 	r = ioctl(dev->control, VHOST_SET_FEATURES, &features);
cbdfe66
-- 
cbdfe66
1.6.6.1
cbdfe66