[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 5/6] iommu: remove the share_p2m operation
On 24/07/2020 17:46, Paul Durrant wrote: > From: Paul Durrant <pdurrant@xxxxxxxxxx> > > Sharing of HAP tables is VT-d specific so the operation is never defined for > AMD IOMMU. It's not VT-d specific, and Xen really did used to share on AMD. In fact, a remnant of this logic is still present in the form of the comment for p2m_type_t explaining why p2m_ram_rw needs to be 0. That said, I agree it shouldn't be a hook, because it is statically known at domain create time based on flags and hardware properties. > There's also no need to pro-actively set vtd.pgd_maddr when using > shared EPT as it is straightforward to simply define a helper function to > return the appropriate value in the shared and non-shared cases. It occurs to me that vtd.pgd_maddr and amd.root_table really are the same thing, and furthermore are common to all IOMMU implementations on any architecture. Is it worth trying to make them common, rather than continuing to let each implementation handle them differently? ~Andrew
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |