| Submitter | Markus Armbruster |
|---|---|
| Date | Oct. 12, 2010, 12:18 p.m. |
| Message ID | <m3sk0bob8c.fsf@blackfin.pond.sub.org> |
| Download | mbox | patch |
| Permalink | /patch/67546/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 729917d..b09d85d 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -683,6 +683,11 @@ static int virtio_9p_init_pci(PCIDevice *pci_dev) VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); VirtIODevice *vdev; + if (pci_dev->qdev.hotplugged) { + error_report("Device doesn't support hot plug"); + return -1; + } + vdev = virtio_9p_init(&pci_dev->qdev, &proxy->fsconf); virtio_init_pci(proxy, vdev, PCI_VENDOR_ID_REDHAT_QUMRANET,