Re: [Qemu-devel] [PATCH v2 4/4] PortioList: Store PortioList in device state

2014-04-28 Thread Paolo Bonzini
Il 24/04/2014 16:15, Kirill Batuzov ha scritto: v1 - v2: I tried adding PortioList to AdlibState, PCIQXLDevice etc like Paolo suggested. It worked fine for all cases except for isa_register_portio_list. isa_register_portio_list can be called: - with NULL instead of real ISADevice *, -

[Qemu-devel] [PATCH v2 4/4] PortioList: Store PortioList in device state

2014-04-24 Thread Kirill Batuzov
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 to device state we make it