There is no domheap for ARM_32. All of the RAM is mapped and VA == PA.
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
---
Changes from :-
v1 - 1. No changes.
xen/arch/arm/Kconfig | 2 +-
xen/arch/arm/mpu/Makefile | 1 -
xen/arch/arm/mpu/domain-page.c | 45 ----------------------------------
3 files changed, 1 insertion(+), 47 deletions(-)
delete mode 100644 xen/arch/arm/mpu/domain-page.c
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index a0c8160474..5355534f3d 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -1,7 +1,7 @@
config ARM_32
def_bool y
depends on "$(ARCH)" = "arm32"
- select ARCH_MAP_DOMAIN_PAGE
+ select ARCH_MAP_DOMAIN_PAGE if MMU
config ARM_64
def_bool y
diff --git a/xen/arch/arm/mpu/Makefile b/xen/arch/arm/mpu/Makefile
index 50f8fe4326..4963c8b550 100644
--- a/xen/arch/arm/mpu/Makefile
+++ b/xen/arch/arm/mpu/Makefile
@@ -1,6 +1,5 @@
obj-$(CONFIG_ARM_32) += arm32/
obj-$(CONFIG_ARM_64) += arm64/
-obj-$(CONFIG_ARM_32) += domain-page.o
obj-y += mm.o
obj-y += p2m.o
obj-y += setup.init.o
diff --git a/xen/arch/arm/mpu/domain-page.c b/xen/arch/arm/mpu/domain-page.c
deleted file mode 100644
index df5e06b6db..0000000000
--- a/xen/arch/arm/mpu/domain-page.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <xen/bug.h>
-#include <xen/domain_page.h>
-#include <xen/mm-frame.h>
-#include <xen/types.h>
-
-void *map_domain_page_global(mfn_t mfn)
-{
- BUG_ON("unimplemented");
- return NULL;
-}
-
-/* Map a page of domheap memory */
-void *map_domain_page(mfn_t mfn)
-{
- BUG_ON("unimplemented");
- return NULL;
-}
-
-/* Release a mapping taken with map_domain_page() */
-void unmap_domain_page(const void *ptr)
-{
- BUG_ON("unimplemented");
-}
-
-mfn_t domain_page_map_to_mfn(const void *ptr)
-{
- BUG_ON("unimplemented");
- return INVALID_MFN;
-}
-
-void unmap_domain_page_global(const void *va)
-{
- BUG_ON("unimplemented");
-}
-
-/*
- * Local variables:
- * mode: C
- * c-file-style: "BSD"
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- */
--
2.25.1
On 14/08/2025 10:19, Ayan Kumar Halder wrote: > There is no domheap for ARM_32. All of the RAM is mapped and VA == PA. NIT for the future: It's always better to mention explicitly that you're talking about MPU also in commit msg. Without looking at the commit title, one can be confused. > > Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com> Reviewed-by: Michal Orzel <michal.orzel@amd.com> ~Michal
Hi Ayan, > On Thu, Aug 14, 2025 at 09:19:59AM +0000, Ayan Kumar Halder wrote: > There is no domheap for ARM_32. All of the RAM is mapped and VA == PA. > > Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com> > --- > Changes from :- > > v1 - 1. No changes. > Slightly surprised by this, as it looks like the suggested change from https://patchwork.kernel.org/comment/26507841/ has been incorporated in this v2 version of the patch... But anyway, LGTM now! Reviewed-by: Hari Limaye <hari.limaye@arm.com> Tested-by: Hari Limaye <hari.limaye@arm.com> Cheers, Hari
© 2016 - 2025 Red Hat, Inc.