[fedora-virt] [PATCH 2/7] vhost: logging thinko fix

Michael S. Tsirkin mst at redhat.com
Wed Feb 24 19:09:48 UTC 2010


Fix logging: set it to requested value.

Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
 hw/vhost.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/vhost.c b/hw/vhost.c
index e5c1ead..3c54596 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -310,7 +310,7 @@ static int vhost_dev_set_log(struct vhost_dev *dev, bool enable_log)
 {
 	uint64_t features = dev->acked_features;
 	int r;
-	if (dev->log_enabled) {
+	if (enable_log) {
 		features |= 0x1 << VHOST_F_LOG_ALL;
 	}
 	r = ioctl(dev->control, VHOST_SET_FEATURES, &features);
-- 
1.7.0.18.g0d53a5



More information about the virt mailing list