kernel_samsung_a53x/arch/x86/kvm
Pawan Gupta 9bd6671abe KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests
commit 2a0180129d726a4b953232175857d442651b55a0 upstream.

Mitigation for RFDS requires RFDS_CLEAR capability which is enumerated
by MSR_IA32_ARCH_CAPABILITIES bit 27. If the host has it set, export it
to guests so that they can deploy the mitigation.

RFDS_NO indicates that the system is not vulnerable to RFDS, export it
to guests so that they don't deploy the mitigation unnecessarily. When
the host is not affected by X86_BUG_RFDS, but has RFDS_NO=0, synthesize
RFDS_NO to the guest.

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 09:22:41 +01:00
..
mmu KVM: use __vcalloc for very large allocations 2024-11-18 12:12:59 +01:00
svm KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region() 2024-11-19 09:22:38 +01:00
vmx KVM/VMX: Move VERW closer to VMentry for MDS mitigation 2024-11-19 09:22:40 +01:00
cpuid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
emulate.c x86: Share definition of __is_canonical_address() 2024-11-18 11:43:11 +01:00
hyperv.c KVM: x86: hyper-v: Don't auto-enable stimer on write from user-space 2024-11-18 11:43:21 +01:00
hyperv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i8254.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i8254.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i8259.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioapic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioapic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_comm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvm_cache_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvm_emulate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lapic.c KVM: x86: Mask LVTPC when handling a PMI 2024-11-08 11:26:08 +01:00
lapic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtrr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tss.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86.c KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests 2024-11-19 09:22:41 +01:00
x86.h x86: Share definition of __is_canonical_address() 2024-11-18 11:43:11 +01:00