Skip to content

Commit 02f1b0b

Browse files
gaochaointelsean-jc
authored andcommitted
KVM: x86: Correct the name for skipping VMENTER l1d flush
There is no VMENTER_L1D_FLUSH_NESTED_VM. It should be ARCH_CAP_SKIP_VMENTRY_L1DFLUSH. Signed-off-by: Chao Gao <chao.gao@intel.com> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Link: https://lore.kernel.org/r/20230524061634.54141-3-chao.gao@intel.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 06b66e0 commit 02f1b0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ static u64 kvm_get_arch_capabilities(void)
16311631
* If we're doing cache flushes (either "always" or "cond")
16321632
* we will do one whenever the guest does a vmlaunch/vmresume.
16331633
* If an outer hypervisor is doing the cache flush for us
1634-
* (VMENTER_L1D_FLUSH_NESTED_VM), we can safely pass that
1634+
* (ARCH_CAP_SKIP_VMENTRY_L1DFLUSH), we can safely pass that
16351635
* capability to the guest too, and if EPT is disabled we're not
16361636
* vulnerable. Overall, only VMENTER_L1D_FLUSH_NEVER will
16371637
* require a nested hypervisor to do a flush of its own.

0 commit comments

Comments
 (0)