On 18/04/2024 09:36, Luca Fancellu wrote: > > > From: Penny Zheng <penny.zh...@arm.com> > > Static shared memory acts as reserved memory in guest, so it shall be > excluded from extended regions. > > Extended regions are taken care of under three different scenarios: > normal DomU, direct-map domain with iommu on, and direct-map domain > with iommu off. > > For normal DomU, we create a new function "remove_shm_holes_for_domU", > to firstly transfer original outputs into the format of > "struct rangeset", then use "remove_shm_from_rangeset" to remove static > shm from them. > > For direct-map domain with iommu on, after we get guest shm info from "kinfo", > we use "remove_shm_from_rangeset" to remove static shm. > > For direct-map domain with iommu off, as static shm has already been taken > care of through find_unallocated_memory, we do nothing. > > Signed-off-by: Penny Zheng <penny.zh...@arm.com> > Signed-off-by: Luca Fancellu <luca.fance...@arm.com> Reviewed-by: Michal Orzel <michal.or...@amd.com> ~Michal
- [PATCH v3 02/12] xen/arm: avoid repetitive checking in proce... Luca Fancellu
- [PATCH v3 04/12] xen/arm: Introduce a generic way to access ... Luca Fancellu
- [PATCH v3 05/12] xen/arm: Conditional compilation of kernel_... Luca Fancellu
- [PATCH v3 03/12] xen/arm: Pass struct kernel_info parameter ... Luca Fancellu
- [PATCH v3 01/12] xen/arm: remove stale addr_cells/size_cells... Luca Fancellu
- [PATCH v3 06/12] xen/arm: Avoid code duplication in find_una... Luca Fancellu
- [PATCH v3 08/12] xen/arm: Introduce helper for static memory... Luca Fancellu
- [PATCH v3 07/12] xen/arm: Avoid code duplication in check_re... Luca Fancellu
- [PATCH v3 10/12] xen/arm: remove shm holes from extended reg... Luca Fancellu
- Re: [PATCH v3 10/12] xen/arm: remove shm holes from ext... Michal Orzel
- [PATCH v3 09/12] xen/arm: Reduce struct membank size on stat... Luca Fancellu
- [PATCH v3 12/12] xen/arm: List static shared memory regions ... Luca Fancellu
- Re: [PATCH v3 12/12] xen/arm: List static shared memory... Michal Orzel
- Re: [PATCH v3 12/12] xen/arm: List static shared me... Luca Fancellu
- Re: [PATCH v3 12/12] xen/arm: List static share... Michal Orzel
- Re: [PATCH v3 12/12] xen/arm: List static s... Julien Grall
- Re: [PATCH v3 12/12] xen/arm: List sta... Luca Fancellu
- Re: [PATCH v3 12/12] xen/arm: List... Julien Grall
- Re: [PATCH v3 12/12] xen/arm: List sta... Julien Grall
- Re: [PATCH v3 12/12] xen/arm: List... Luca Fancellu