Re: [PATCH v6 1/3] x86/iommu: remove regions not to be mapped

2024-01-29 Thread Paul Durrant
On 25/01/2024 13:26, Roger Pau Monne wrote: Introduce the code to remove regions not to be mapped from the rangeset that will be used to setup the IOMMU page tables for the hardware domain. This change also introduces two new functions: remove_xen_ranges() and vpci_subtract_mmcfg() that copy the

Re: [PATCH v6 1/3] x86/iommu: remove regions not to be mapped

2024-01-25 Thread Jan Beulich
On 25.01.2024 14:26, Roger Pau Monne wrote: > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -2138,6 +2138,54 @@ int __hwdom_init xen_in_range(unsigned long mfn) > return 0; > } > > +int __hwdom_init remove_xen_ranges(struct rangeset *r) > +{ > +paddr_t start, end; > +

Re: [PATCH v6 1/3] x86/iommu: remove regions not to be mapped

2024-01-25 Thread Jan Beulich
On 25.01.2024 14:26, Roger Pau Monne wrote: > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -2138,6 +2138,54 @@ int __hwdom_init xen_in_range(unsigned long mfn) > return 0; > } > > +int __hwdom_init remove_xen_ranges(struct rangeset *r) > +{ > +paddr_t start, end; > +

[PATCH v6 1/3] x86/iommu: remove regions not to be mapped

2024-01-25 Thread Roger Pau Monne
Introduce the code to remove regions not to be mapped from the rangeset that will be used to setup the IOMMU page tables for the hardware domain. This change also introduces two new functions: remove_xen_ranges() and vpci_subtract_mmcfg() that copy the logic in xen_in_range() and vpci_is_mmcfg_add