qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v14 Resend 13/13] vfio: add 'aer' property to expose


From: Cao jin
Subject: [Qemu-devel] [PATCH v14 Resend 13/13] vfio: add 'aer' property to expose aercap
Date: Thu, 17 Dec 2015 09:41:54 +0800

From: Chen Fan <address@hidden>

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 <address@hidden>
---
 hw/vfio/pci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index c1300e9..6fc4be0 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -3102,6 +3102,8 @@ static Property vfio_pci_dev_properties[] = {
                        sub_vendor_id, PCI_ANY_ID),
     DEFINE_PROP_UINT32("x-pci-sub-device-id", VFIOPCIDevice,
                        sub_device_id, PCI_ANY_ID),
+    DEFINE_PROP_BIT("aer", VFIOPCIDevice, features,
+                    VFIO_FEATURE_ENABLE_AER_BIT, false),
     /*
      * TODO - support passed fds... is this necessary?
      * DEFINE_PROP_STRING("vfiofd", VFIOPCIDevice, vfiofd_name),
-- 
1.9.3






reply via email to

[Prev in Thread] Current Thread [Next in Thread]