x86/speculation: Use ARCH_CAPABILITIES to skip L1D flush on vmentry
Bit 3 of ARCH_CAPABILITIES tells a hypervisor that L1D flush on vmentry is not needed. Add a new value to enum vmx_l1d_flush_state, which is used either if there is no L1TF bug at all, or if bit 3 is set in ARCH_CAPABILITIES. Signed-off-by:Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- arch/x86/include/asm/msr-index.h 1 addition, 0 deletionsarch/x86/include/asm/msr-index.h
- arch/x86/include/asm/vmx.h 1 addition, 0 deletionsarch/x86/include/asm/vmx.h
- arch/x86/kernel/cpu/bugs.c 1 addition, 0 deletionsarch/x86/kernel/cpu/bugs.c
- arch/x86/kvm/vmx.c 10 additions, 0 deletionsarch/x86/kvm/vmx.c
Loading
Please register or sign in to comment