]> git.proxmox.com Git - mirror_qemu.git/commit - hw/display/vga_int.h
PortioList: Store PortioList in device state
authorKirill Batuzov <batuzovk@ispras.ru>
Tue, 29 Apr 2014 13:38:39 +0000 (17:38 +0400)
committerAndreas Färber <afaerber@suse.de>
Mon, 5 May 2014 18:58:33 +0000 (20:58 +0200)
commit848696bf353750899832c51005f1bd3540da5c29
tree6936043a73c83a04f36c5c1cf4e58b94e2622d8b
parentcc900d34e7f298dd4b41c5626307de15416bb045
PortioList: Store PortioList in device state

PortioList is an abstraction used for construction of MemoryRegionPortioList
from MemoryRegionPortio. It can be used later to unmap created memory regions.
It also requires proper cleanup because some of the memory inside is allocated
dynamically.

By moving PortioList ot device state we make it possible to cleanup later and
avoid leaking memory.

This change spans several target platforms.  The following testcases cover all
changed lines:
  qemu-system-ppc -M prep
  qemu-system-i386 -vga qxl
  qemu-system-i386 -M isapc -soundhw adlib -device ib700,id=watchdog0,bus=isa.0

Signed-off-by: Kirill Batuzov <batuzovk@ispras.ru>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/audio/adlib.c
hw/display/qxl.c
hw/display/qxl.h
hw/display/vga.c
hw/display/vga_int.h
hw/dma/i82374.c
hw/isa/isa-bus.c
hw/ppc/prep.c
hw/watchdog/wdt_ib700.c