mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
30f1e661b6
commit
a77549b3ff
2 changed files with 41 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue