Message ID | 20130131112540.GD520@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 9abbcdf..bb0f60e 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -975,8 +975,7 @@ static int virtio_serial_init_pci(PCIDevice *pci_dev) if (!vdev) { return -1; } - vdev->nvectors = proxy->nvectors == DEV_NVECTORS_UNSPECIFIED - ? proxy->serial.max_virtserial_ports + 1 + vdev->nvectors = proxy->nvectors == DEV_NVECTORS_UNSPECIFIED ? 2 : proxy->nvectors; virtio_init_pci(proxy, vdev); proxy->nvectors = vdev->nvectors;