[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 10/12] xen/arm: remove shm holes from extended regions
- To: Luca Fancellu <luca.fancellu@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Thu, 18 Apr 2024 14:47:06 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LDyEEaV5Lf1BiJBWQCo2jUmXJFLi9fJ044Ska+F/z1k=; b=EEVEOctchLCDz9upDTc30zuhdeeC0+UqzdaGbH3U9JIwaVA2j/jeQsDoM8/NbnhTbc5C9zHAqfywCaWLL99PIXJoH0a1w56ZFber1llwirBaoIQ05maP1zZxlN/DfJDGcjdslL5iqlJ5xutL1cr0ApL2oYdnW6FCEGQ2sYqnvyK6hEClK6tO2gvOJQvzdN0aMxYTwYUf7Kg53LSqmIequw5Qc40RB5uzS1BDDg/r65wzxGvUvys3AjwyKQVDDEEbrClB+6W72fJt8oe0hNXlSFNxeBxKLPA4ij/t5xCfnfbpUVnoGQh58dF0/OGB1EOlbyp5mfaivFHR6aTbnY8kiA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DZo6vVvQonx601Mmr0GOsSrpLZuyWgIlmBpqu2fy7VyqzsZMrxwTD8m5/mk0rH0vGwVE7J6+P20KSjjlv1AARNPuT0ntoCnX83BZ/b5PUhb0Cyk54jfkQJYGnabPMtC+Zw+OrhTUzlMnm6KHpB/Qhyn2db6dOEDJiu+eP04J8i5z/9djp3q+QjJLP8vP6DaYQkHqEUBdfuiNTPvOV6MTnysh+M3iztpFzaN5qb9lQZ+v/Rit/SQk1kveUJljTvYp2qZEmY+BpSwWqfXtALvW0XXHqIQ73o4IWHrozP/HjD2rNyrG9j5eq3p0Rnd+UaZcacp4VD6Dv6GzNz46+oOzAw==
- Cc: Penny Zheng <Penny.Zheng@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Thu, 18 Apr 2024 12:47:26 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 18/04/2024 09:36, Luca Fancellu wrote:
>
>
> From: Penny Zheng <Penny.Zheng@xxxxxxx>
>
> 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.zheng@xxxxxxx>
> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
~Michal
|