From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMyEn-0005PJ-MR for qemu-devel@nongnu.org; Wed, 14 Nov 2018 11:41:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMyEi-0003uo-Ij for qemu-devel@nongnu.org; Wed, 14 Nov 2018 11:41:57 -0500 References: <20181109112957.10067-1-eric.auger@redhat.com> <20181109112957.10067-16-eric.auger@redhat.com> <2d6c96ce-9eb5-9347-1a75-4e13c0cea0ec@arm.com> From: Auger Eric Message-ID: <8653586f-404f-5b03-30ba-a0eb3676c107@redhat.com> Date: Wed, 14 Nov 2018 17:41:18 +0100 MIME-Version: 1.0 In-Reply-To: <2d6c96ce-9eb5-9347-1a75-4e13c0cea0ec@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jean-Philippe Brucker , "eric.auger.pro@gmail.com" , "qemu-devel@nongnu.org" , "qemu-arm@nongnu.org" , "peter.maydell@linaro.org" , "mst@redhat.com" Cc: "tn@semihalf.com" , "kevin.tian@intel.com" , "bharat.bhushan@nxp.com" , "peterx@redhat.com" Hi Jean, On 11/14/18 5:01 PM, Jean-Philippe Brucker wrote: > On 09/11/2018 11:29, Eric Auger wrote: >> +static void create_virtio_iommu(VirtMachineState *vms, >> + const char *pciehb_nodename, PCIBus *bus) >> +{ >> + const char compat[] = "virtio,pci-iommu"; >> + uint16_t bdf = 0x8; /* 00:01.0 */ >> + DeviceState *dev; >> + char *node; >> + >> + dev = qdev_create(BUS(bus), TYPE_VIRTIO_IOMMU_PCI); >> + object_property_set_bool(OBJECT(dev), true, "realized", &error_fatal); > > For the Arm virt platform, should msi_bypass default to false? Otherwise > I don't think pass-through to guest userpace will work. That's correct. It's a regression compared to v7. I will fix this soon while doing the pc machine integration + resv regions flaws you reported in the meantime. Thanks! Eric > > Thanks, > Jean >