Re: [Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board

2018-11-22 Thread Bharat Bhushan
Hi Eric, > -Original Message- > From: Eric Auger > Sent: Friday, November 9, 2018 5:00 PM > To: eric.auger@gmail.com; eric.au...@redhat.com; qemu- > de...@nongnu.org; qemu-...@nongnu.org; peter.mayd...@linaro.org; > m...@redhat.com; jean-philippe.bruc...@arm.com > Cc: kevin.t...@inte

Re: [Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board

2018-11-22 Thread Auger Eric
Hi Bharat, On 11/22/18 10:15 AM, Bharat Bhushan wrote: > Hi Eric, > > >> -Original Message- >> From: Eric Auger >> Sent: Friday, November 9, 2018 5:00 PM >> To: eric.auger@gmail.com; eric.au...@redhat.com; qemu- >> de...@nongnu.org; qemu-...@nongnu.org; peter.mayd...@linaro.org; >>

Re: [Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board

2018-11-16 Thread Auger Eric
Hi Jean, Bharat, On 11/14/18 5:41 PM, Auger Eric wrote: > 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 *

Re: [Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board

2018-11-14 Thread Auger Eric
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"; >> +

Re: [Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board

2018-11-14 Thread Jean-Philippe Brucker
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; > +

[Qemu-devel] [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board

2018-11-09 Thread Eric Auger
Both the virtio-iommu device and its dedicated mmio transport get instantiated when requested. Signed-off-by: Eric Auger --- v6 -> v7: - align to the smmu instantiation code v4 -> v5: - VirtMachineClass no_iommu added in this patch - Use object_resolve_path_type --- hw/arm/virt.c | 48 +++