> -----Original Message----- > From: Nicolin Chen <[email protected]> > Sent: Thursday, July 10, 2025 6:16 PM > To: Shameerali Kolothum Thodi <[email protected]> > Cc: Donald Dutile <[email protected]>; Zhenzhong Duan > <[email protected]>; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; clement.mathieu-- > [email protected]; [email protected]; [email protected]; > [email protected] > Subject: Re: [PATCH v3 02/20] hw/pci: Introduce > pci_device_get_viommu_cap() > > On Thu, Jul 10, 2025 at 08:11:28AM +0000, Shameerali Kolothum Thodi > wrote: > > > So I suggested: > > > /* hardware-accelerated nested stage-1 page table support */ > > > VIOMMU_CAP_NESTED_S1 = BIT_ULL(0), > > > > > > which it should be clear IMHO. > > > > > > If not, maybe go a bit further like "VIOMMU_CAP_HW_NESTED_S1"? > > > > I am not sure the _S1 part makes much sense in ARM case. It doesn't > matter > > whether the Guest SMMUv3 is configured in s1/s2 or nested for this CAP. > > With the new SMMUv3 dev support, the user can pretty much specify, > > > > -device arm-smmuv3,primary- > bus=pcie.0,id=smmuv3.1,accel=on,stage={stage1|stage2|nested} > > > > And I think it will work with a host SMMUv3 nested configuration in all > the > > above cases. Unless I am missing something and > [...] > > we need to restrict its > > use with stage=stage1 only. > > I think we do.. > > The HW nesting works when we forward the s1ctxptr and make sure > that "stage-1" is the last stage, in other word, the only stage. > > Otherwise how can we support stage2/nested in a HW nesting case? Yep. That's right. Stage 2 is a no. But nesting may work if the Guest only uses S1. But its better to restrict it to S1. Thanks, Shameer
RE: [PATCH v3 02/20] hw/pci: Introduce pci_device_get_viommu_cap()
Shameerali Kolothum Thodi via Fri, 11 Jul 2025 06:20:17 -0700
- Re: [PATCH v3 02/20] hw/pci: Introd... Donald Dutile
- Re: [PATCH v3 02/20] hw/pci: In... Nicolin Chen
- Re: [PATCH v3 02/20] hw/pci... Donald Dutile
- Re: [PATCH v3 02/20] h... Eric Auger
- Re: [PATCH v3 02/2... Donald Dutile
- RE: [PATCH v3 02/20] hw/pci... Shameerali Kolothum Thodi via
- Re: [PATCH v3 02/20] h... Donald Dutile
- Re: [PATCH v3 02/2... Donald Dutile
- Re: [PATCH v3 02/2... Nicolin Chen
- Re: [PATCH v3 02/20] h... Nicolin Chen
- RE: [PATCH v3 02/2... Shameerali Kolothum Thodi via
- Re: [PATCH v3 02/20] hw/pci: Introduce ... Eric Auger
- [PATCH v3 08/20] intel_iommu: Fail passthrou... Zhenzhong Duan
- Re: [PATCH v3 08/20] intel_iommu: Fail ... Eric Auger
- RE: [PATCH v3 08/20] intel_iommu: F... Duan, Zhenzhong
- [PATCH v3 18/20] vfio: Add a new element byp... Zhenzhong Duan
- [PATCH v3 17/20] intel_iommu: Replay all pas... Zhenzhong Duan
- [PATCH v3 09/20] intel_iommu: Introduce two ... Zhenzhong Duan
- Re: [PATCH v3 09/20] intel_iommu: Intro... Eric Auger
- RE: [PATCH v3 09/20] intel_iommu: I... Duan, Zhenzhong
