]> git.proxmox.com Git - mirror_qemu.git/commit - hw/display/vga_int.h
vga: do not dynamically allocate chain4_alias
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Jun 2014 10:19:25 +0000 (12:19 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 17 Aug 2014 21:25:24 +0000 (23:25 +0200)
commitad37168cbdaff061fd7c37be57de4692bd8c2c50
treeb88da81d302b0f01b27ae8cf53365b86376cce2b
parent1dd79a237eb84a70c21b7a640f237ee603b0e74a
vga: do not dynamically allocate chain4_alias

Instead, add a boolean variable to indicate the presence of the region.
This avoids a repeated malloc/free (later we can also avoid the
add_child/unparent by changing the offset/size of the alias).

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/vga.c
hw/display/vga_int.h