]> git.proxmox.com Git - mirror_qemu.git/commit
softmmu/ioport.c: QOMify MemoryRegionPortioList
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 19 Apr 2023 15:16:51 +0000 (16:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 May 2023 08:18:33 +0000 (10:18 +0200)
commit28770689c5ff53195410fec407a0af7a2d4ac03a
treeceea998f579e7901d773c2f45dc0cd5b3ec8e679
parentd2f07b75aea5f49533c169592f951fd09f77037b
softmmu/ioport.c: QOMify MemoryRegionPortioList

The aim of QOMification is so that the lifetime of the MemoryRegionPortioList
structure can be managed using QOM's in-built refcounting instead of having to
handle this manually.

Due to the use of an opaque pointer it isn't possible to model the new
TYPE_MEMORY_REGION_PORTIO_LIST directly using QOM properties, however since
use of the new object is restricted to the portio API we can simply set the
opaque pointer (and the heap-allocated port list) internally.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230419151652.362717-3-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/ioport.c