Patchwork [V7,5/5] virtio-net: compat guest announce

login
register
mail settings
Submitter Jason Wang
Date March 7, 2013, 8:23 a.m.
Message ID <1362644631-23113-6-git-send-email-jasowang@redhat.com>
Download mbox | patch
Permalink /patch/225766/
State New
Headers show

Comments

Jason Wang - March 7, 2013, 8:23 a.m.
Disable guest announce for pre-1.5.

Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 hw/pc.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/pc.h b/hw/pc.h
index f2c1b1c..2de7cd4 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -221,6 +221,10 @@  int e820_add_entry(uint64_t, uint64_t, uint32_t);
             .property = "vectors",\
             /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
             .value    = stringify(0xFFFFFFFF),\
-	}
+        },{\
+            .driver   = "virtio-net-pci",       \
+            .property = "guest_announce", \
+            .value    = "off",            \
+        }
 
 #endif