summaryrefslogtreecommitdiffstats
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-02-17 15:03:24 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-02-21 10:36:05 +0100
commit017438eeb17d62d74e181e32f996e5805302693e (patch)
treefea96f83eb5cc9ffe1aa02d8dc8a0adb35900764 /hw/qxl.h
parenta974192c8011102c2db670341e6bb8de22e242ad (diff)
downloadhqemu-017438eeb17d62d74e181e32f996e5805302693e.zip
hqemu-017438eeb17d62d74e181e32f996e5805302693e.tar.gz
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>
Diffstat (limited to 'hw/qxl.h')
-rw-r--r--hw/qxl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/qxl.h b/hw/qxl.h
index 766aa6d..d062991 100644
--- a/hw/qxl.h
+++ b/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)) { \
OpenPOWER on IntegriCloud