Re: [PATCH v5 03/12] hw/i386/pc: Move IOMMU singleton into PCMachineState

2021-10-21 Thread Igor Mammedov
On Wed, 20 Oct 2021 18:27:37 +0100 Jean-Philippe Brucker wrote: > We're about to support a third vIOMMU for x86, virtio-iommu which > doesn't inherit X86IOMMUState. Move the IOMMU singleton into > PCMachineState, so it can be shared between all three vIOMMUs. > > The x86_iommu_get_default() help

Re: [PATCH v5 03/12] hw/i386/pc: Move IOMMU singleton into PCMachineState

2021-10-21 Thread Eric Auger
On 10/20/21 7:27 PM, Jean-Philippe Brucker wrote: > We're about to support a third vIOMMU for x86, virtio-iommu which > doesn't inherit X86IOMMUState. Move the IOMMU singleton into > PCMachineState, so it can be shared between all three vIOMMUs. > > The x86_iommu_get_default() helper is still ne

[PATCH v5 03/12] hw/i386/pc: Move IOMMU singleton into PCMachineState

2021-10-20 Thread Jean-Philippe Brucker
We're about to support a third vIOMMU for x86, virtio-iommu which doesn't inherit X86IOMMUState. Move the IOMMU singleton into PCMachineState, so it can be shared between all three vIOMMUs. The x86_iommu_get_default() helper is still needed by KVM and IOAPIC to fetch the default IRQ-remapping IOMM