WSL2-Linux-Kernel/arch/x86
Sean Christopherson 6317393875 KVM: VMX: Split out the non-virtualization part of vmx_interrupt_blocked()
commit 322a569c4b4188a0da2812f9e952780ce09b74ba upstream.

Move the non-VMX chunk of the "interrupt blocked" checks to a separate
helper so that KVM can reuse the code to detect if interrupts are blocked
for L2, e.g. to determine if a virtual interrupt _for L2_ is a valid wake
event.  If L1 disables HLT-exiting for L2, nested APICv is enabled, and L2
HLTs, then L2 virtual interrupts are valid wake events, but if and only if
interrupts are unblocked for L2.

Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240607172609.3205077-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-19 05:45:14 +02:00
..
boot
configs
crypto
entry x86/bhi: Avoid warning in #DB handler due to BHI mitigation 2024-07-18 13:07:45 +02:00
events perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculation 2024-08-19 05:44:58 +02:00
hyperv
ia32
include efi/x86: Free EFI memory map only when installing a new one. 2024-07-05 09:14:51 +02:00
kernel x86/of: Return consistent error type from x86_of_pci_irq_enable() 2024-08-19 05:44:50 +02:00
kvm KVM: VMX: Split out the non-virtualization part of vmx_interrupt_blocked() 2024-08-19 05:45:14 +02:00
lib x86/insn: Fix PUSH instruction in x86 instruction decoder opcode map 2024-06-16 13:39:31 +02:00
math-emu
mm
net
pci x86/pci/xen: Fix PCIBIOS_* return code handling 2024-08-19 05:44:50 +02:00
platform x86/platform/iosf_mbi: Convert PCIBIOS_* return codes to errnos 2024-08-19 05:44:50 +02:00
power
purgatory
ras
realmode
tools
um
video
xen x86/xen: Convert comma to semicolon 2024-08-19 05:44:54 +02:00
.gitignore
Kbuild
Kconfig
Kconfig.assembler
Kconfig.cpu
Kconfig.debug x86/kconfig: Select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y 2024-06-16 13:39:46 +02:00
Makefile
Makefile.um
Makefile_32.cpu