]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/apic: Prefer APICCommonState over DeviceState
authorBernhard Beschow <shentey@gmail.com>
Sun, 19 Oct 2025 21:03:00 +0000 (23:03 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Oct 2025 18:16:47 +0000 (20:16 +0200)
commit2fd15a24ca3b88531d66efb203d1f7f39d8519f5
treee1ba8c65f8b6be18645bbb57749574b54c2c26b5
parentdd012373a591ea52e3b9105cd5f8ba69d2303103
hw/i386/apic: Prefer APICCommonState over DeviceState

Makes the APIC API more type-safe by resolving quite a few APIC_COMMON
downcasts.

Like PICCommonState, the APICCommonState is now a public typedef while staying
an abstract datatype.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251019210303.104718-8-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
15 files changed:
hw/i386/kvm/apic.c
hw/i386/vapic.c
hw/i386/x86-cpu.c
hw/intc/apic.c
hw/intc/apic_common.c
include/hw/i386/apic.h
include/hw/i386/apic_internal.h
target/i386/cpu-apic.c
target/i386/cpu-dump.c
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/kvm.c
target/i386/kvm/kvm_i386.h
target/i386/whpx/whpx-apic.c
target/i386/whpx/whpx-internal.h