From: Isaku Yamahata <isaku.yamahata@xxxxxxxxx> Add a new bool member, eoi_intercept_unsupported, to X86MachineState with default value false. Set true when tdx kvm type. Inability to intercept eoi causes impossibility to emulate level triggered interrupt to be re-injected when level is still kept active. which affects interrupt controller emulation. Such new behavior will be introduced later. Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx> --- hw/i386/x86.c | 1 + include/hw/i386/x86.h | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/i386/x86.c b/hw/i386/x86.c index ed15f6f2cf..9862fe5bc9 100644 --- a/hw/i386/x86.c +++ b/hw/i386/x86.c @@ -1311,6 +1311,7 @@ static void x86_machine_initfn(Object *obj) x86ms->oem_id = g_strndup(ACPI_BUILD_APPNAME6, 6); x86ms->oem_table_id = g_strndup(ACPI_BUILD_APPNAME8, 8); x86ms->bus_lock_ratelimit = 0; + x86ms->eoi_intercept_unsupported = false; object_property_add_str(obj, "kvm-type", x86_get_kvm_type, x86_set_kvm_type); diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h index a450b5e226..6eff42550f 100644 --- a/include/hw/i386/x86.h +++ b/include/hw/i386/x86.h @@ -63,6 +63,7 @@ struct X86MachineState { unsigned pci_irq_mask; unsigned apic_id_limit; uint16_t boot_cpus; + bool eoi_intercept_unsupported; OnOffAuto smm; OnOffAuto acpi; -- 2.25.1