The IPA terminology is Arm-specific, so rename p2m_ipa_bits to
p2m_gpa_bits to use architecture-neutral naming in
xen/common/device-tree/ code.
No functional changes.
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
---
Changes in v5:
- Rephraze commit subject.
- Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>.
---
Changes in v4:
- Nothing changed only rebase.
---
Changes in v3:
- Introduce #define p2m_gpa_bits p2m_ipa_bits for Arm instead of
renaming of p2m_ipa_bits to p2m_gpa_bits to keep Arm part of
changes clearer and keep using Arm-specific terminolgy inside
Arm code.
---
Changes in v2:
- New patch.
---
---
xen/arch/arm/include/asm/p2m.h | 2 ++
xen/common/device-tree/domain-build.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/xen/arch/arm/include/asm/p2m.h b/xen/arch/arm/include/asm/p2m.h
index 010ce8c9ebbd..7957dbd96e57 100644
--- a/xen/arch/arm/include/asm/p2m.h
+++ b/xen/arch/arm/include/asm/p2m.h
@@ -14,6 +14,8 @@
/* Holds the bit size of IPAs in p2m tables. */
extern unsigned int p2m_ipa_bits;
+#define p2m_gpa_bits p2m_ipa_bits
+
#define MAX_VMID_8_BIT (1UL << 8)
#define MAX_VMID_16_BIT (1UL << 16)
diff --git a/xen/common/device-tree/domain-build.c b/xen/common/device-tree/domain-build.c
index 6949203dacdc..2a760b007b57 100644
--- a/xen/common/device-tree/domain-build.c
+++ b/xen/common/device-tree/domain-build.c
@@ -221,7 +221,7 @@ int __init find_unallocated_memory(const struct kernel_info *kinfo,
}
start = 0;
- end = (1ULL << p2m_ipa_bits) - 1;
+ end = (1ULL << p2m_gpa_bits) - 1;
res = rangeset_report_ranges(unalloc_mem, PFN_DOWN(start), PFN_DOWN(end),
cb, free_regions);
if ( res )
--
2.54.0
On 07-May-26 10:58, Oleksii Kurochko wrote: > The IPA terminology is Arm-specific, so rename p2m_ipa_bits to > p2m_gpa_bits to use architecture-neutral naming in > xen/common/device-tree/ code. > > No functional changes. > > Reported-by: Jan Beulich <jbeulich@suse.com> > Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> > Reviewed-by: Luca Fancellu <luca.fancellu@arm.com> > --- > Changes in v5: > - Rephraze commit subject. > - Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>. > --- > Changes in v4: > - Nothing changed only rebase. > --- > Changes in v3: > - Introduce #define p2m_gpa_bits p2m_ipa_bits for Arm instead of > renaming of p2m_ipa_bits to p2m_gpa_bits to keep Arm part of > changes clearer and keep using Arm-specific terminolgy inside > Arm code. > --- > Changes in v2: > - New patch. > --- > --- > xen/arch/arm/include/asm/p2m.h | 2 ++ > xen/common/device-tree/domain-build.c | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/xen/arch/arm/include/asm/p2m.h b/xen/arch/arm/include/asm/p2m.h > index 010ce8c9ebbd..7957dbd96e57 100644 > --- a/xen/arch/arm/include/asm/p2m.h > +++ b/xen/arch/arm/include/asm/p2m.h > @@ -14,6 +14,8 @@ > /* Holds the bit size of IPAs in p2m tables. */ > extern unsigned int p2m_ipa_bits; > > +#define p2m_gpa_bits p2m_ipa_bits This deserves the comment e.g.: /* Common-code alias; ARM keeps the IPA spelling internally */ With that: Acked-by: Michal Orzel <michal.orzel@amd.com> ~Michal
On 13-May-26 13:14, Orzel, Michal wrote: > > > On 07-May-26 10:58, Oleksii Kurochko wrote: >> The IPA terminology is Arm-specific, so rename p2m_ipa_bits to >> p2m_gpa_bits to use architecture-neutral naming in >> xen/common/device-tree/ code. >> >> No functional changes. >> >> Reported-by: Jan Beulich <jbeulich@suse.com> >> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> >> Reviewed-by: Luca Fancellu <luca.fancellu@arm.com> >> --- >> Changes in v5: >> - Rephraze commit subject. >> - Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>. >> --- >> Changes in v4: >> - Nothing changed only rebase. >> --- >> Changes in v3: >> - Introduce #define p2m_gpa_bits p2m_ipa_bits for Arm instead of >> renaming of p2m_ipa_bits to p2m_gpa_bits to keep Arm part of >> changes clearer and keep using Arm-specific terminolgy inside >> Arm code. >> --- >> Changes in v2: >> - New patch. >> --- >> --- >> xen/arch/arm/include/asm/p2m.h | 2 ++ >> xen/common/device-tree/domain-build.c | 2 +- >> 2 files changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/xen/arch/arm/include/asm/p2m.h b/xen/arch/arm/include/asm/p2m.h >> index 010ce8c9ebbd..7957dbd96e57 100644 >> --- a/xen/arch/arm/include/asm/p2m.h >> +++ b/xen/arch/arm/include/asm/p2m.h >> @@ -14,6 +14,8 @@ >> /* Holds the bit size of IPAs in p2m tables. */ >> extern unsigned int p2m_ipa_bits; >> >> +#define p2m_gpa_bits p2m_ipa_bits > This deserves the comment e.g.: > /* Common-code alias; ARM keeps the IPA spelling internally */ > > With that: > Acked-by: Michal Orzel <michal.orzel@amd.com> Forgot to mention that I'm ok to do this change on commit (patches 1-5 are ready from this series). ~Michal
On 5/13/26 1:16 PM, Orzel, Michal wrote: > > > On 13-May-26 13:14, Orzel, Michal wrote: >> >> >> On 07-May-26 10:58, Oleksii Kurochko wrote: >>> The IPA terminology is Arm-specific, so rename p2m_ipa_bits to >>> p2m_gpa_bits to use architecture-neutral naming in >>> xen/common/device-tree/ code. >>> >>> No functional changes. >>> >>> Reported-by: Jan Beulich <jbeulich@suse.com> >>> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> >>> Reviewed-by: Luca Fancellu <luca.fancellu@arm.com> >>> --- >>> Changes in v5: >>> - Rephraze commit subject. >>> - Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>. >>> --- >>> Changes in v4: >>> - Nothing changed only rebase. >>> --- >>> Changes in v3: >>> - Introduce #define p2m_gpa_bits p2m_ipa_bits for Arm instead of >>> renaming of p2m_ipa_bits to p2m_gpa_bits to keep Arm part of >>> changes clearer and keep using Arm-specific terminolgy inside >>> Arm code. >>> --- >>> Changes in v2: >>> - New patch. >>> --- >>> --- >>> xen/arch/arm/include/asm/p2m.h | 2 ++ >>> xen/common/device-tree/domain-build.c | 2 +- >>> 2 files changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/xen/arch/arm/include/asm/p2m.h b/xen/arch/arm/include/asm/p2m.h >>> index 010ce8c9ebbd..7957dbd96e57 100644 >>> --- a/xen/arch/arm/include/asm/p2m.h >>> +++ b/xen/arch/arm/include/asm/p2m.h >>> @@ -14,6 +14,8 @@ >>> /* Holds the bit size of IPAs in p2m tables. */ >>> extern unsigned int p2m_ipa_bits; >>> >>> +#define p2m_gpa_bits p2m_ipa_bits >> This deserves the comment e.g.: >> /* Common-code alias; ARM keeps the IPA spelling internally */ >> >> With that: >> Acked-by: Michal Orzel <michal.orzel@amd.com> Thanks! > Forgot to mention that I'm ok to do this change on commit (patches 1-5 are ready > from this series). I would be happy with that. ~ Oleksii
© 2016 - 2026 Red Hat, Inc.