console: add qemu_create_displaysurface_guestmem
commita77549b3ffcc24c32ee4e8b5ec32049186120360
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Jun 2014 06:46:08 +0000 (19 08:46 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Sep 2014 11:27:11 +0000 (5 13:27 +0200)
treee0be32d88d5d3c4f1361cf525aa05112b5a3a87d
parent30f1e661b640de58ba1e8178f7f2290179a7e01c
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 <kraxel@redhat.com>
include/ui/console.h
ui/console.c