summaryrefslogtreecommitdiffstats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorAmit Shah2010-02-25 12:54:43 +0100
committerAnthony Liguori2010-03-08 18:30:09 +0100
commit75422b0d38029d2e098309da4dd7199dc7b2d2a9 (patch)
treeab5c58bc5ee0cf64c0dc43e610f7c8c04b065937 /hw/qdev.c
parentpcnet APROMWE bit location (retry) (diff)
downloadqemu-75422b0d38029d2e098309da4dd7199dc7b2d2a9.tar.gz
qemu-75422b0d38029d2e098309da4dd7199dc7b2d2a9.tar.xz
qemu-75422b0d38029d2e098309da4dd7199dc7b2d2a9.zip
qdev: Add a DEV_NVECTORS_UNSPECIFIED enum for unspecified nr of MSI vectors
net.c used a constant to signify no MSI vectors were specified. Extend that to all qdev devices. Signed-off-by: Amit Shah <amit.shah@redhat.com> Reported-by: "Michael S. Tsirkin" <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index d0052d436c..b634890068 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -387,7 +387,7 @@ void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd)
qdev_prop_set_vlan(dev, "vlan", nd->vlan);
if (nd->netdev)
qdev_prop_set_netdev(dev, "netdev", nd->netdev);
- if (nd->nvectors != NIC_NVECTORS_UNSPECIFIED &&
+ if (nd->nvectors != DEV_NVECTORS_UNSPECIFIED &&
qdev_prop_exists(dev, "vectors")) {
qdev_prop_set_uint32(dev, "vectors", nd->nvectors);
}