[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v16 14/14] vfio: add 'aer' property to expose aercap
From: |
Cao jin |
Subject: |
[Qemu-devel] [PATCH v16 14/14] vfio: add 'aer' property to expose aercap |
Date: |
Tue, 12 Jan 2016 10:43:15 +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 efa5e01..9afb5e0 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -3119,6 +3119,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
- Re: [Qemu-devel] [PATCH v16 10/14] pci: introduce pci bus pre reset, (continued)
- [Qemu-devel] [PATCH v16 09/14] add check reset mechanism when hotplug vfio device, Cao jin, 2016/01/11
- [Qemu-devel] [PATCH v16 12/14] pcie_aer: expose pcie_aer_msg() interface, Cao jin, 2016/01/11
- [Qemu-devel] [PATCH v16 11/14] vfio: introduce last reset sequence id, Cao jin, 2016/01/11
- [Qemu-devel] [PATCH v16 13/14] vfio-pci: pass the aer error to guest, Cao jin, 2016/01/11
- [Qemu-devel] [PATCH v16 14/14] vfio: add 'aer' property to expose aercap,
Cao jin <=
- Re: [Qemu-devel] [PATCH v16 00/14] vfio-pci: pass the aer error to guest, Michael S. Tsirkin, 2016/01/16