exec/ioport: Add portio_list_set_enabled()
commitf165cdf102bb93c255c63b77617ba371d73344e0
authorBernhard Beschow <shentey@gmail.com>
Sun, 14 Jan 2024 12:39:06 +0000 (14 13:39 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 Feb 2024 11:09:32 +0000 (14 06:09 -0500)
tree12797f4bb3b1feae2c39caa99f53e4561a44f449
parentad2b652341f4257e2fb7ebf3834724f91173a07a
exec/ioport: Add portio_list_set_enabled()

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

The naming of the functions is inspired by its memory_region_set_enabled()
pendant.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20240114123911.4877-7-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