From c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 18 Dec 2011 16:40:50 +0200 Subject: 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 --- xen-all.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xen-all.c') diff --git a/xen-all.c b/xen-all.c index bd89889..51315ce 100644 --- a/xen-all.c +++ b/xen-all.c @@ -33,6 +33,7 @@ #endif static MemoryRegion ram_memory, ram_640k, ram_lo, ram_hi; +static MemoryRegion *framebuffer; /* Compatibility with older version */ #if __XEN_LATEST_INTERFACE_VERSION__ < 0x0003020a @@ -982,3 +983,8 @@ void destroy_hvm_domain(void) xc_interface_close(xc_handle); } } + +void xen_register_framebuffer(MemoryRegion *mr) +{ + framebuffer = mr; +} -- cgit v1.1