apic, i386/tcg: add x2apic transitions
commit774204cf9874e58dc7fc13394a505452357750ad
authorBui Quang Minh <minhquangbui99@gmail.com>
Thu, 11 Jan 2024 15:44:00 +0000 (11 22:44 +0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 Feb 2024 11:09:32 +0000 (14 06:09 -0500)
tree0769e519412bc9f51a56669011770eb415bb433d
parentb5ee0468e9d28c6bd47cce70f90b5032dd10ecc2
apic, i386/tcg: add x2apic transitions

This commit adds support for x2APIC transitions when writing to
MSR_IA32_APICBASE register and finally adds CPUID_EXT_X2APIC to
TCG_EXT_FEATURES.

The set_base in APICCommonClass now returns an integer to indicate error in
execution. apic_set_base return -1 on invalid APIC state transition,
accelerator can use this to raise appropriate exception.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Message-Id: <20240111154404.5333-4-minhquangbui99@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/kvm/apic.c
hw/i386/xen/xen_apic.c
hw/intc/apic.c
hw/intc/apic_common.c
include/hw/i386/apic.h
include/hw/i386/apic_internal.h
target/i386/cpu.c
target/i386/cpu.h
target/i386/tcg/sysemu/misc_helper.c
target/i386/whpx/whpx-apic.c