From 5dbe9edbbffc18575b3b657cce8bc5dade582995 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 6 Oct 2026 08:15:15 +0200 Subject: [PATCH] x86/PVH: correct PVH Dom0 E820 region merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Folding with an immediately successive region can't be done by merely lowering the start of the region. The size of the region needs increasing as well. Fixes: 5427134eae81 ("x86: populate PVHv2 Dom0 physical memory map") Signed-off-by: Jan Beulich Reviewed-by: Jason Andryuk Reviewed-by: Roger Pau Monné --- xen/arch/x86/hvm/dom0_build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0_build.c index 881e8e21b0..f536f5dcc4 100644 --- a/xen/arch/x86/hvm/dom0_build.c +++ b/xen/arch/x86/hvm/dom0_build.c @@ -229,6 +229,7 @@ static int __init pvh_add_mem_range(struct domain *d, uint64_t s, uint64_t e, if ( rs == e && d->arch.e820[i].type == type ) { d->arch.e820[i].addr = s; + d->arch.e820[i].size += e - s; return 0; }