linux-stable/arch/x86/kvm
Daniel Sneddon a976b129dc KVM: x86: Add BHI_NO
commit ed2e8d49b5 upstream.

Intel processors that aren't vulnerable to BHI will set
MSR_IA32_ARCH_CAPABILITIES[BHI_NO] = 1;. Guests may use this BHI_NO bit to
determine if they need to implement BHI mitigations or not.  Allow this bit
to be passed to the guests.

Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:19:44 +02:00
..
mmu Revert "KVM: x86: enable TDP MMU by default" 2023-08-30 16:18:16 +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 x86/bhi: Mitigate KVM by default 2024-04-10 16:19:44 +02:00
cpuid.c KVM: x86: Advertise CPUID.(EAX=7,ECX=2):EDX[5:0] to userspace 2024-04-10 16:18:33 +02:00
cpuid.h
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
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
irq.h x86/kvm: remove unused ack_notifier callbacks 2021-12-22 09:32:34 +01:00
irq_comm.c
Kconfig
kvm_cache_regs.h
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_onhyperv.h
lapic.c KVM: x86: Mask LVTPC when handling a PMI 2023-10-25 11:58:55 +02:00
lapic.h
Makefile
mmu.h KVM: x86: Reinitialize context if host userspace toggles EFER.LME 2022-04-08 14:24:03 +02:00
mtrr.c
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: Add BHI_NO 2024-04-10 16:19:44 +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