diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-18 16:40:50 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-20 14:14:08 +0200 |
commit | c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f (patch) | |
tree | a1ee6bc4ac3b3669a1d305536f3d6f1964f28135 /hw/vga.c | |
parent | 04097f7c5957273c578f72b9bd603ba6b1d69e33 (diff) | |
download | qemu-c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f.zip qemu-c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f.tar.gz qemu-c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |