Hi, Reviewed-by: Clement Mathieu--Drif <[email protected]>
On Wed, 2026-10-14 at 11:04 +0530, Sairaj Kodilkar wrote: > Caution: External email. Do not open attachments or click links, unless this > email comes from a known sender and you know the content is safe. > > > Return X86IOMMUState during get_x86_iommu callback. > > Signed-off-by: Sairaj Kodilkar <[[email protected]](mailto:[email protected])> > --- > hw/i386/intel_iommu.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c > index 82c3c3b2c35f..92a2d6eebb61 100644 > --- a/hw/i386/intel_iommu.c > +++ b/hw/i386/intel_iommu.c > @@ -5461,6 +5461,13 @@ static int vtd_pri_request_page(PCIBus *bus, void > *opaque, int devfn, > return 0; > } > > +static int vtd_get_x86_iommu(void *opaque, void **x86_iommu) > +{ > + IntelIOMMUState *s = opaque; > + *x86_iommu = X86_IOMMU_DEVICE(s); > + return 0; > +} > + > static void vtd_init_iotlb_notifier(PCIBus *bus, void *opaque, int devfn, > IOMMUNotifier *n, IOMMUNotify fn, > void *user_opaque) > @@ -5535,6 +5542,7 @@ static PCIIOMMUOps vtd_iommu_ops = { > .pri_unregister_notifier = vtd_pri_unregister_notifier, > .pri_request_page = vtd_pri_request_page, > .get_viommu_flags = vtd_get_viommu_flags, > + .get_x86_iommu = vtd_get_x86_iommu, > }; > > static bool vtd_decide_config(IntelIOMMUState *s, Error **errp) > -- > 2.34.1 >
