KVM: VMX: Tell the nested hypervisor to skip L1D flush on vmentry
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 5 Aug 2018 14:07:47 +0000 (16:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 5 Aug 2018 15:10:20 +0000 (17:10 +0200)
commit5b76a3cff011df2dcb6186c965a2e4d809a05ad4
treefdff64d26521635cc33b223bccc9b465b5f57046
parent8e0b2b916662e09dd4d09e5271cdf214c6b80e62
KVM: VMX: Tell the nested hypervisor to skip L1D flush on vmentry

When nested virtualization is in use, VMENTER operations from the nested
hypervisor into the nested guest will always be processed by the bare metal
hypervisor, and KVM's "conditional cache flushes" mode in particular does a
flush on nested vmentry.  Therefore, include the "skip L1D flush on
vmentry" bit in KVM's suggested ARCH_CAPABILITIES setting.

Add the relevant Documentation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/admin-guide/l1tf.rst
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c