]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i386: Make pic a property of common x86 base machine type
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 10 Mar 2022 12:28:11 +0000 (20:28 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 May 2022 20:15:40 +0000 (16:15 -0400)
commitc300bbe8d2a84003775c2ebb2b2885b80b1d9c32
tree136dac32cda6118b538a59fefcaf84b09f43df40
parent9dee7e510969787be49771e4653a123a26d1069f
hw/i386: Make pic a property of common x86 base machine type

Legacy PIC (8259) cannot be supported for TDX guests since TDX module
doesn't allow directly interrupt injection.  Using posted interrupts
for the PIC is not a viable option as the guest BIOS/kernel will not
do EOI for PIC IRQs, i.e. will leave the vIRR bit set.

Make PIC the property of common x86 machine type. Hence all x86
machines, including microvm, can disable it.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20220310122811.807794-3-xiaoyao.li@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/microvm.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
hw/i386/x86.c
include/hw/i386/microvm.h
include/hw/i386/x86.h