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

[xen stable-4.14] tools/libs/light: set video_mem for PVH guests



commit a58f5fdc1b743d11ead73614b0affc97a745c414
Author:     Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Thu Apr 7 09:04:14 2022 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Apr 7 09:04:14 2022 +0200

    tools/libs/light: set video_mem for PVH guests
    
    The size of the video memory of PVH guests should be set to 0 in case
    no value has been specified.
    
    Doing not so will leave it to be -1, resulting in an additional 1 kB
    of RAM being advertised in the memory map (here the output of a PVH
    Mini-OS boot with 16 MB of RAM assigned):
    
    Memory map:
    000000000000-0000010003ff: RAM
    0000feff8000-0000feffffff: Reserved
    0000fc008000-0000fc00803f: ACPI
    0000fc000000-0000fc000fff: ACPI
    0000fc001000-0000fc007fff: ACPI
    
    Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
    Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
    master commit: 0a20a53df158eb0724ce6dcd9de70cbdad547d6f
    master date: 2021-12-09 16:26:29 +0000
---
 tools/libxl/libxl_create.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
index 83b0eb00bf..76299dd43d 100644
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -427,6 +427,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
         break;
     case LIBXL_DOMAIN_TYPE_PVH:
         libxl_defbool_setdefault(&b_info->u.pvh.pvshim, false);
+        if (b_info->video_memkb == LIBXL_MEMKB_DEFAULT)
+            b_info->video_memkb = 0;
         if (libxl_defbool_val(b_info->u.pvh.pvshim)) {
             if (!b_info->u.pvh.pvshim_path)
                 b_info->u.pvh.pvshim_path =
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.14



 


Rackspace

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