Skip to content
  • Kirill Batuzov's avatar
    PortioList: Store PortioList in device state · 848696bf
    Kirill Batuzov authored
    
    
    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: default avatarKirill Batuzov <batuzovk@ispras.ru>
    Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
    848696bf