kernel_samsung_a53x/arch/x86/kvm/vmx
Sean Christopherson 3cb4bafb59 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-11-23 23:20:13 +01:00
..
capabilities.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evmcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evmcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nested.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nested.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu_intel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
posted_intr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
posted_intr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
run_flags.h KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH 2024-11-19 09:22:40 +01:00
vmcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmcs12.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmcs12.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmcs_shadow_fields.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmenter.S KVM/VMX: Move VERW closer to VMentry for MDS mitigation 2024-11-19 09:22:40 +01:00
vmx.c KVM: VMX: Split out the non-virtualization part of vmx_interrupt_blocked() 2024-11-23 23:20:13 +01:00
vmx.h KVM: VMX: Split out the non-virtualization part of vmx_interrupt_blocked() 2024-11-23 23:20:13 +01:00
vmx_ops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00