]> git.proxmox.com Git - mirror_qemu.git/commit
exec/ioport: Add portio_list_set_address()
authorBernhard Beschow <shentey@gmail.com>
Sun, 14 Jan 2024 12:39:05 +0000 (13:39 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 Feb 2024 11:09:32 +0000 (06:09 -0500)
commitad2b652341f4257e2fb7ebf3834724f91173a07a
treef7a03900b29c41da3b906db53f421f99feb98f8b
parent4edee342f81397e8938ba7a80d1908c5103b66c8
exec/ioport: Add portio_list_set_address()

Some SuperI/O devices such as the VIA south bridges or the PC87312 controller
are able to relocate their SuperI/O functions. Add a convenience function for
implementing this in the VIA south bridges.

This convenience function relies on previous simplifications in exec/ioport
which avoids some duplicate synchronization of I/O port base addresses. The
naming of the function is inspired by its memory_region_set_address() pendant.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20240114123911.4877-6-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/devel/migration/main.rst
include/exec/ioport.h
system/ioport.c