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

[Xen-changelog] [xen stable-4.6] hvmloader: add high memory e820 region if needed



commit 8e89d43867922abaa67e894938c655a6fa82affe
Author:     David Vrabel <david.vrabel@xxxxxxxxxx>
AuthorDate: Fri Mar 18 08:06:46 2016 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Mar 18 08:06:46 2016 +0100

    hvmloader: add high memory e820 region if needed
    
    If the MMIO hole is large and hvmloader needs to relocate memory to
    immediately above the 4 GiB boundary, the e820 presented to the guest
    will not have a RAM region above 4 GiB.
    
    e.g., a guest with 3 GiB of memory and a 2 GiB MMIO hole will only see
    2 GiB.
    
    The required e820 memory region above 4 GiB needs to be added, and not
    just filled in.
    
    Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
    Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    master commit: 24e3e3553b105181a471f16a227331bf427aca3d
    master date: 2016-03-15 12:22:04 +0100
---
 tools/firmware/hvmloader/e820.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/firmware/hvmloader/e820.c b/tools/firmware/hvmloader/e820.c
index bbde2be..5541b18 100644
--- a/tools/firmware/hvmloader/e820.c
+++ b/tools/firmware/hvmloader/e820.c
@@ -99,6 +99,7 @@ void adjust_memory_map(void)
                 ((uint64_t)hvm_info->high_mem_pgend << PAGE_SHIFT) -
                     memory_map.map[i].addr;
         memory_map.map[i].type = E820_RAM;
+        memory_map.nr_map++;
     }
 }
 
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.6

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

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