summary refs log tree commit diff stats
path: root/hw/vga.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-18 16:40:50 +0200
committerAvi Kivity <avi@redhat.com>2011-12-20 14:14:08 +0200
commitc65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f (patch)
treea1ee6bc4ac3b3669a1d305536f3d6f1964f28135 /hw/vga.c
parent04097f7c5957273c578f72b9bd603ba6b1d69e33 (diff)
downloadfocaccia-qemu-c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f.tar.gz
focaccia-qemu-c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f.zip
xen, vga: add API for registering the framebuffer
Xen currently uses the name of a memory region to determine whether it
is the framebuffer.  Replace with an explicit API.

Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/vga.c b/hw/vga.c
index ca79aa157d..7e1dd5ac80 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -28,6 +28,7 @@
 #include "vga_int.h"
 #include "pixel_ops.h"
 #include "qemu-timer.h"
+#include "xen.h"
 
 //#define DEBUG_VGA
 //#define DEBUG_VGA_MEM
@@ -2222,6 +2223,7 @@ void vga_common_init(VGACommonState *s, int vga_ram_size)
     s->is_vbe_vmstate = 0;
 #endif
     memory_region_init_ram(&s->vram, NULL, "vga.vram", vga_ram_size);
+    xen_register_framebuffer(&s->vram);
     s->vram_ptr = memory_region_get_ram_ptr(&s->vram);
     s->vram_size = vga_ram_size;
     s->get_bpp = vga_get_bpp;