summaryrefslogtreecommitdiffstats
path: root/hw/pc.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-15 13:48:25 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 17:28:53 -0500
commita1e0fea58746d26fea95c94fde1449b684651fd1 (patch)
tree5e8af3095b20b4aae31e7f9ef158b850221595f1 /hw/pc.c
parent8ad125147085e508325e940d19b300e6c7a7502b (diff)
downloadhqemu-a1e0fea58746d26fea95c94fde1449b684651fd1.zip
hqemu-a1e0fea58746d26fea95c94fde1449b684651fd1.tar.gz
qdev/compat: virtio-net-pci 0.10 compatibility.
Add vectors property, allowing to turn off msi by setting vectors=0. Add compat property to pc-0.10 disabling msi. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 8a1582c..a50f23d 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1533,6 +1533,10 @@ static QEMUMachine pc_machine_v0_10 = {
.driver = "virtio-console-pci",
.property = "class",
.value = stringify(PCI_CLASS_DISPLAY_OTHER),
+ },{
+ .driver = "virtio-net-pci",
+ .property = "vectors",
+ .value = stringify(0),
},
{ /* end of list */ }
},
OpenPOWER on IntegriCloud