android_kernel_xiaomi_sm8450/arch/x86/kvm
Sean Christopherson 9d289ce917 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:40:58 +02:00
..
mmu KVM: use __vcalloc for very large allocations 2024-02-23 08:41:55 +01:00
svm KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region() 2024-04-13 12:58:49 +02:00
vmx KVM: VMX: Split out the non-virtualization part of vmx_interrupt_blocked() 2024-08-19 05:40:58 +02:00
cpuid.c x86/srso: Add SRSO_NO support 2023-08-08 19:57:40 +02:00
cpuid.h x86/cpufeatures: Add CPUID_LNX_5 to track recently added Linux-defined word 2024-04-13 12:59:38 +02:00
debugfs.c KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories 2020-06-04 11:00:54 -04:00
emulate.c x86: Share definition of __is_canonical_address() 2023-11-20 11:06:56 +01:00
hyperv.c KVM: x86: hyper-v: Don't auto-enable stimer on write from user-space 2023-11-28 16:54:56 +00:00
hyperv.h x86/kvm/hyper-v: Add support for synthetic debugger interface 2020-06-01 04:26:11 -04:00
i8254.c kvm: i8254: remove redundant assignment to pointer s 2020-06-11 12:35:18 -04:00
i8254.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
i8259.c KVM: x86: Refactor picdev_write() to prevent Spectre-v1/L1TF attacks 2020-01-27 19:59:37 +01:00
ioapic.c Revert "x86/kvm: fix vcpu-id indexed array sizes" 2021-11-12 14:58:32 +01:00
ioapic.h Revert "x86/kvm: fix vcpu-id indexed array sizes" 2021-11-12 14:58:32 +01:00
irq_comm.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
irq.c KVM: x86: Fix split-irqchip vs interrupt injection window request 2020-11-27 09:27:28 -05:00
irq.h kvm/x86: Remove redundant function implementations 2020-05-27 13:11:10 -04:00
Kconfig x86/kvm: hide KVM options from menuconfig when KVM is not compiled 2020-10-21 17:36:30 -04:00
kvm_cache_regs.h KVM: x86: Let the guest own CR4.FSGSBASE 2020-10-21 17:48:50 -04:00
kvm_emulate.h KVM: x86/emulator: Emulate RDPID only if it is enabled in guest 2022-04-13 21:00:54 +02:00
lapic.c KVM: x86: Mask LVTPC when handling a PMI 2023-10-25 11:54:19 +02:00
lapic.h KVM: nVMX: Morph notification vector IRQ on nested VM-Enter to pending PI 2020-09-28 07:57:22 -04:00
Makefile kvm: x86/mmu: Init / Uninit the TDP MMU 2020-10-21 18:17:00 -04:00
mmu.h KVM: x86: fix shift out of bounds reported by UBSAN 2021-01-12 20:18:26 +01:00
mtrr.c KVM: x86: Protect MSR-based index computations in fixed_msr_to_seg_unit() from Spectre-v1/L1TF attacks 2020-01-27 19:59:39 +01:00
pmu.c kvm: x86/pmu: Fix the compare function used by the pmu event filter 2022-08-21 15:16:26 +02:00
pmu.h KVM: x86/pmu: Refactoring find_arch_event() to pmc_perf_hw_id() 2022-02-23 12:01:04 +01:00
trace.h KVM: x86: Trace re-injected exceptions 2022-11-10 18:14:15 +01:00
tss.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
x86.c KVM: x86: Clear "has_error_code", not "error_code", for RM exception injection 2024-05-25 16:19:06 +02:00
x86.h x86: Share definition of __is_canonical_address() 2023-11-20 11:06:56 +01:00