Received: from eggs.gnu.org ([2001:4830:134:3::10]:33887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFaUx-00070p-8S for qemu-devel@nongnu.org; Thu, 16 Jul 2015 00:10:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFaUt-0005VI-5N for qemu-devel@nongnu.org; Thu, 16 Jul 2015 00:10:15 -0400 Received: from [59.151.112.132] (port=37927 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFaUs-00053K-Ht for qemu-devel@nongnu.org; Thu, 16 Jul 2015 00:10:11 -0400 From: Chen Hanxiao Date: Thu, 16 Jul 2015 12:00:53 +0800 Message-ID: <1437019253-17630-16-git-send-email-chenhanxiao@cn.fujitsu.com> In-Reply-To: <1437019253-17630-1-git-send-email-chenhanxiao@cn.fujitsu.com> References: <1437019253-17630-1-git-send-email-chenhanxiao@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v12 15/15] vfio: add 'aer' property to expose aercap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson , qemu-devel@nongnu.org Cc: Chen Fan From: Chen Fan 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 Signed-off-by: Chen Hanxiao --- hw/vfio/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 1e04c1e..eb69a39 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -4252,6 +4252,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), /* -- 2.1.0