From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDqQ-00013t-5p for qemu-devel@nongnu.org; Tue, 10 Feb 2015 11:39:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLDqP-0000HC-AW for qemu-devel@nongnu.org; Tue, 10 Feb 2015 11:39:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDqP-0000H1-3f for qemu-devel@nongnu.org; Tue, 10 Feb 2015 11:39:25 -0500 Message-ID: <1423586359.22865.811.camel@redhat.com> From: Alex Williamson Date: Tue, 10 Feb 2015 09:39:19 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 06/10] piix: disable all vfio device aercap property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Fan Cc: izumi.taku@jp.fujitsu.com, qemu-devel@nongnu.org On Tue, 2015-02-10 at 15:03 +0800, Chen Fan wrote: > because at i440FX platform, all pcie device don't support aer capability, > so for all vfio device, we don't need to expose the aer capability. > > Signed-off-by: Chen Fan > --- > hw/i386/pc_piix.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c > index 38b42b0..8001313 100644 > --- a/hw/i386/pc_piix.c > +++ b/hw/i386/pc_piix.c > @@ -71,6 +71,20 @@ static bool smbios_uuid_encoded = true; > static bool gigabyte_align = true; > static bool has_reserved_memory = true; > > +static void pc_props_register_global(void) { > + > + static GlobalProperty globalPropertys[] = { > + { > + .driver = "vfio-pci", > + .property = "aercap", > + .value = "off", > + }, > + { /* end of list */ } > + }; > + > + qdev_prop_register_global_list(globalPropertys); > +} > + Does this compile? vfio-pci doesn't have that property until a later patch. > /* PC hardware initialisation */ > static void pc_init1(MachineState *machine, > int pci_enabled, > @@ -301,6 +315,8 @@ static void pc_init1(MachineState *machine, > if (pci_enabled) { > pc_pci_device_init(pci_bus); > } > + > + pc_props_register_global(); > } > > static void pc_init_pci(MachineState *machine)