tools/libs/light: set video_mem for PVH guests
authorJuergen Gross <jgross@suse.com>
Wed, 6 Apr 2022 08:17:36 +0000 (10:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 6 Apr 2022 08:17:36 +0000 (10:17 +0200)
commit38f1fb90bb8793556947cf9ec984258bf12d4096
treec646d1eb5aed456b7104b6e68f5280db502f82c8
parent54e37f44a219a987189c566e15ccad7af0bcc4ed
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@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
master commit: 0a20a53df158eb0724ce6dcd9de70cbdad547d6f
master date: 2021-12-09 16:26:29 +0000
tools/libs/light/libxl_create.c