[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging-4.20] x86/PVH: correct PVH Dom0 E820 region merge



commit 9ccb8947724195e80951915afdb3da1b05f674a1
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Oct 29 13:31:40 2026 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Oct 29 13:31:40 2026 +0100

    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: 5427134eae81 ("x86: populate PVHv2 Dom0 physical memory map")
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
    Reviewed-by: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
    master commit: 5dbe9edbbffc18575b3b657cce8bc5dade582995
    master date: 2026-10-06 08:15:15 +0200
---
 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 6ab2ff5ec8..6d8530533d 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;
         }
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.20



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.