Blame 0039-vhost-logging-thinko-fix.patch
|
Justin M. Forbes |
eff942 |
From c96adfe57a5a7ceed488fd6f198a762dd84c1d9c 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:09:48 +0200
|
|
Justin M. Forbes |
eff942 |
Subject: [PATCH] vhost: logging thinko fix
|
|
Justin M. Forbes |
eff942 |
|
|
Justin M. Forbes |
eff942 |
Fix logging: set it to requested value.
|
|
Justin M. Forbes |
eff942 |
|
|
Justin M. Forbes |
eff942 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
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 e5c1ead..3c54596 100644
|
|
Justin M. Forbes |
eff942 |
--- a/hw/vhost.c
|
|
Justin M. Forbes |
eff942 |
+++ b/hw/vhost.c
|
|
Justin M. Forbes |
eff942 |
@@ -310,7 +310,7 @@ static int vhost_dev_set_log(struct vhost_dev *dev, bool enable_log)
|
|
Justin M. Forbes |
eff942 |
{
|
|
Justin M. Forbes |
eff942 |
uint64_t features = dev->acked_features;
|
|
Justin M. Forbes |
eff942 |
int r;
|
|
Justin M. Forbes |
eff942 |
- if (dev->log_enabled) {
|
|
Justin M. Forbes |
eff942 |
+ if (enable_log) {
|
|
Justin M. Forbes |
eff942 |
features |= 0x1 << VHOST_F_LOG_ALL;
|
|
Justin M. Forbes |
eff942 |
}
|
|
Justin M. Forbes |
eff942 |
r = ioctl(dev->control, VHOST_SET_FEATURES, &features);
|
|
Justin M. Forbes |
eff942 |
--
|
|
Justin M. Forbes |
eff942 |
1.6.6.1
|
|
Justin M. Forbes |
eff942 |
|