aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel@redhat.com>2015-11-10 13:41:29 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-11-12 16:23:16 +0200
commit1811e64c35fe1d9bce77952937a16c001dc08465 (patch)
tree633b6458d78849640385ef4e605f9b4794878e23 /include
parent3a12f32229a046f4d4ab0a3a52fb01d2d5a1ab76 (diff)
hw/virtio: Add PCIe capability to virtio devices
The virtio devices are converted to PCI-Express if they are plugged into a PCI-Express bus and the 'modern' protocol is enabled. Devices plugged directly into the Root Complex as Integrated Endpoints remain PCI. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/compat.h b/include/hw/compat.h
index 65799c1868..845aace577 100644
--- a/include/hw/compat.h
+++ b/include/hw/compat.h
@@ -8,6 +8,10 @@
.value = "true",\
},{\
.driver = "virtio-pci",\
+ .property = "x-disable-pcie",\
+ .value = "on",\
+ },{\
+ .driver = "virtio-pci",\
.property = "migrate-extra",\
.value = "off",\
},