diff mbox

[v11,15/15] vfio: add 'aer' property to expose aercap

Message ID bf6ad159a0e98f7cbb3b5c9828abf7b9818f48bf.1435136052.git.chen.fan.fnst@cn.fujitsu.com
State New
Headers show

Commit Message

chenfan June 24, 2015, 9:46 a.m. UTC
add 'aer' property to let user able to decide whether expose
the aer capability. by default we should disable aer feature,
because it needs configuration restrictions.

Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
---
 hw/vfio/pci.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index adc15f8..2e9caaf 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -4276,6 +4276,8 @@  static Property vfio_pci_dev_properties[] = {
                     VFIO_FEATURE_ENABLE_VGA_BIT, false),
     DEFINE_PROP_BIT("x-req", VFIOPCIDevice, features,
                     VFIO_FEATURE_ENABLE_REQ_BIT, true),
+    DEFINE_PROP_BIT("aer", VFIOPCIDevice, features,
+                    VFIO_FEATURE_ENABLE_AER_BIT, false),
     DEFINE_PROP_INT32("bootindex", VFIOPCIDevice, bootindex, -1),
     DEFINE_PROP_BOOL("x-mmap", VFIOPCIDevice, vbasedev.allow_mmap, true),
     /*