video/vesa: adjust (not just) command line option handling
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:46:27 +0000 (14:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:46:27 +0000 (14:46 +0100)
Document the remaining option. Add section annotation to the variable
holding the parsed value as well as a few adjacent ones. Adjust the
types of font_height and vga_compat.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
docs/misc/xen-command-line.pandoc
xen/drivers/video/vesa.c

index ba5164eb645c6db066885c53b3795d97de76a450..321a9abfc1683183ec21444bdab264ce623b29b1 100644 (file)
@@ -2492,6 +2492,11 @@ cache-warming. 1ms (1000) has been measured as a good value.
 ### vesa-ram
 > `= <integer>`
 
+> Default: `0`
+
+This allows to override the amount of video RAM, in MiB, determined to be
+present.
+
 ### vga
 > `= ( ask | current | text-80x<rows> | gfx-<width>x<height>x<depth> | mode-<mode> )[,keep]`
 
index 8ff1b1d4eac2572e8d11d55cb374ad1f87a2d1d6..0342a3dedef0a42e1398d2340ab4f05940469cfc 100644 (file)
 
 static void lfb_flush(void);
 
-static unsigned char *lfb;
-static const struct font_desc *font;
-static bool_t vga_compat;
+static unsigned char *__read_mostly lfb;
+static const struct font_desc *__initdata font;
+static bool __initdata vga_compat;
 
-static unsigned int vram_total;
+static unsigned int __initdata vram_total;
 integer_param("vesa-ram", vram_total);
 
 static unsigned int __initdata vram_remap;
 
-static int font_height;
+static unsigned int __initdata font_height;
 static int __init parse_font_height(const char *s)
 {
     if ( simple_strtoul(s, &s, 10) == 8 && (*s++ == 'x') )