From a77549b3ffcc24c32ee4e8b5ec32049186120360 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 19 Jun 2014 08:46:08 +0200 Subject: console: add qemu_create_displaysurface_guestmem This patch adds a qemu_create_displaysurface_guestmem helper function. Works simliar to qemu_create_displaysurface_from, but accepts a guest address instead of a host pointer and it handles cpu_physical_memory_{map,unmap} for you. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ui') diff --git a/include/ui/console.h b/include/ui/console.h index 68ac362f06..61901f7212 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -189,6 +189,10 @@ DisplayState *init_displaystate(void); DisplaySurface *qemu_create_displaysurface_from(int width, int height, pixman_format_code_t format, int linesize, uint8_t *data); +DisplaySurface *qemu_create_displaysurface_guestmem(int width, int height, + pixman_format_code_t format, + int linesize, + uint64_t addr); PixelFormat qemu_different_endianness_pixelformat(int bpp); PixelFormat qemu_default_pixelformat(int bpp); -- cgit v1.2.3