mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vga: convert vga and its derivatives to the memory API
Convert all vga memory to the memory API. Note we need to fall back to get_system_memory(), since the various buses don't pass the vga window as a memory region. We no longer need to sync the dirty bitmap of the cirrus mapped memory banks, since the memory API takes care of that for us. [jan: fix vga-pci logging] Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7b619b9ae5
commit
b195043003
10 changed files with 440 additions and 438 deletions
|
@ -86,7 +86,7 @@ void qxl_render_update(PCIQXLDevice *qxl)
|
|||
}
|
||||
qemu_free_displaysurface(vga->ds);
|
||||
|
||||
qxl->guest_primary.data = qemu_get_ram_ptr(qxl->vga.vram_offset);
|
||||
qxl->guest_primary.data = memory_region_get_ram_ptr(&qxl->vga.vram);
|
||||
if (qxl->guest_primary.stride < 0) {
|
||||
/* spice surface is upside down -> need extra buffer to flip */
|
||||
qxl->guest_primary.stride = -qxl->guest_primary.stride;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue