summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel@redhat.com>2017-02-20 22:43:11 +0200
committerMichael S. Tsirkin <mst@redhat.com>2017-03-16 01:46:40 +0200
commitc2cabb34220d63f93e4a0162a26535cbd1f30243 (patch)
tree9b7d1f2d6b754a060998857172d11c4d58f3f207 /include
parentf03d8ea330d69f3a98093dfa2633635dff355f90 (diff)
downloadqemu-c2cabb34220d63f93e4a0162a26535cbd1f30243.tar.gz
hw/virtio: fix error enabling flags in Device Control register
When the virtio devices are PCI Express, make error-enabling flags writable to respect the PCIe spec. 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 ce3bfe3eea..c98776a6d6 100644
--- a/include/hw/compat.h
+++ b/include/hw/compat.h
@@ -22,6 +22,10 @@
.driver = TYPE_PCI_DEVICE,\
.property = "x-pcie-extcap-init",\
.value = "off",\
+ },{\
+ .driver = "virtio-pci",\
+ .property = "x-pcie-deverr-init",\
+ .value = "off",\
},
#define HW_COMPAT_2_7 \