x86/PVH: correct PVH Dom0 E820 region merge

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: 5427134eae ("x86: populate PVHv2 Dom0 physical memory map")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Roger Pau Monné <roger@xenproject.org>
This commit is contained in:
Jan Beulich committed 2026-10-06 08:15:15 +02:00
1 parent cf76c4b8c7
commit 5dbe9edbbf
1 file changed
+1
+1
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.