Displaying 1 result from an estimated 1 matches for "ram_sizekb".
Did you mean:
vram_sizekb
2012 May 30
1
[PATCH QXL 2/2] libxl: Add qxl vga interface support.
...ntf(stdout, "%s:val: %u\n", __func__, val);
+ do {
+ mask = ~(val - 1) & val;
+ val &= ~mask;
+ } while (mask < val);
+
+ fprintf(stdout, "%s:mask: %u\n", __func__, mask);
+ return mask;
+}
+
+static inline uint32_t get_qxl_ram_size(uint32_t vram_sizekb,
+ uint32_t ram_sizekb)
+{
+ uint32_t vram = msb_mask(2 * vram_sizekb * 1024 - 1);
+ uint32_t ram = msb_mask(2 * ram_sizekb * 1024 - 1);
+
+ return (vram + ram + 1023) / 1024;
}
static void parse_config_data(const char *config_source,
@@ -1262,6 +1285,...