WSL2-Linux-Kernel/arch/x86/kvm
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
..
mmu KVM: x86: Snapshot if a vCPU's vendor model is AMD vs. Intel compatible 2024-04-27 17:05:28 +02:00
svm KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region() 2024-04-10 16:18:45 +02:00
vmx KVM: VMX: Split out the non-virtualization part of vmx_interrupt_blocked() 2024-08-19 05:45:14 +02:00
Kconfig ARM: 2021-06-28 15:40:51 -07:00
Makefile KVM: stats: Add fd-based API to read binary stats data 2021-06-24 11:47:57 -04:00
cpuid.c KVM: x86: Don't advertise guest.MAXPHYADDR as host.MAXPHYADDR in CPUID 2024-06-16 13:39:52 +02:00
cpuid.h KVM: x86: Snapshot if a vCPU's vendor model is AMD vs. Intel compatible 2024-04-27 17:05:28 +02:00
debugfs.c KVM: x86: Check for rmaps allocation 2022-01-11 15:35:15 +01:00
emulate.c x86: Share definition of __is_canonical_address() 2023-11-20 11:08:13 +01:00
fpu.h KVM: x86: Move FPU register accessors into fpu.h 2021-06-17 13:09:24 -04:00
hyperv.c KVM: x86: hyper-v: Don't auto-enable stimer on write from user-space 2023-11-28 16:56:27 +00:00
hyperv.h KVM: x86: Query vcpu->vcpu_idx directly and drop its accessor 2021-09-22 10:33:11 -04:00
i8254.c KVM: x86: Migrate the PIT only if vcpu0 is migrated, not any BSP 2021-08-02 11:01:51 -04:00
i8254.h
i8259.c x86: Fix typo s/ECLR/ELCR/ for the PIC register 2021-08-10 23:31:44 +02:00
ioapic.c Revert "x86/kvm: fix vcpu-id indexed array sizes" 2021-11-12 15:05:47 +01:00
ioapic.h x86/kvm: remove unused ack_notifier callbacks 2021-12-22 09:32:34 +01:00
irq.c KVM: x86/xen: Add event channel interrupt vector upcall 2021-02-04 14:19:39 +00:00
irq.h x86/kvm: remove unused ack_notifier callbacks 2021-12-22 09:32:34 +01:00
irq_comm.c x86: Fix various typos in comments 2021-03-18 15:31:53 +01:00
kvm_cache_regs.h KVM: x86: Introduce KVM_GET_SREGS2 / KVM_SET_SREGS2 2021-06-17 13:09:47 -04:00
kvm_emulate.h KVM: x86/emulator: Emulate RDPID only if it is enabled in guest 2022-04-13 20:59:00 +02:00
kvm_onhyperv.c KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx 2021-06-17 13:09:36 -04:00
kvm_onhyperv.h KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx 2021-06-17 13:09:36 -04:00
lapic.c KVM: x86/pmu: Do not mask LVTPC when handling a PMI on AMD platforms 2024-04-27 17:05:28 +02:00
lapic.h KVM: x86: Add a return code to kvm_apic_accept_events 2021-06-17 13:09:31 -04:00
mmu.h KVM: x86: Reinitialize context if host userspace toggles EFER.LME 2022-04-08 14:24:03 +02:00
mtrr.c KVM: x86: Add helper to consolidate "raw" reserved GPA mask calculations 2021-02-04 09:27:30 -05:00
pmu.c KVM: x86/pmu: Fix and isolate TSX-specific performance event logic 2022-04-13 20:59:00 +02:00
pmu.h KVM: x86/pmu: Update AMD PMC sample period to fix guest NMI-watchdog 2022-04-27 14:39:00 +02:00
reverse_cpuid.h x86/bhi: Define SPEC_CTRL_BHI_DIS_S 2024-04-10 16:19:43 +02:00
trace.h KVM: x86: Trace re-injected exceptions 2022-11-10 18:15:24 +01:00
tss.h
x86.c KVM: x86: Always sync PIR to IRR prior to scanning I/O APIC routes 2024-07-05 09:14:34 +02:00
x86.h x86: Share definition of __is_canonical_address() 2023-11-20 11:08:13 +01:00
xen.c KVM: x86/xen: Fix runstate updates to be atomic when preempting vCPU 2022-02-23 12:03:07 +01:00
xen.h KVM: x86: do not set st->preempted when going back to user space 2022-08-11 13:07:51 +02:00