mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qxl: add user-friendly bar size properties
Add two properties to specify bar sizes in megabytes instead of bytes, which is alot more user-friendly. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a974192c80
commit
017438eeb1
2 changed files with 12 additions and 0 deletions
4
hw/qxl.h
4
hw/qxl.h
|
@ -89,6 +89,10 @@ typedef struct PCIQXLDevice {
|
|||
|
||||
/* io bar */
|
||||
MemoryRegion io_bar;
|
||||
|
||||
/* user-friendly properties (in megabytes) */
|
||||
uint32_t ram_size_mb;
|
||||
uint32_t vram_size_mb;
|
||||
} PCIQXLDevice;
|
||||
|
||||
#define PANIC_ON(x) if ((x)) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue