On Thu, Oct 26, 2023 at 01:17:47PM -0700, Sean Christopherson wrote: > Alternatively, and maybe even preferably, this would make it more obvious that > the two are mutually exclusive and would also be a (very, very) small perf win > when the mitigation is enabled. Agree. > - vmx_disable_fb_clear(vmx); > + if (!cpu_feature_enabled(X86_FEATURE_CLEAR_CPU_BUF)) > + vmx_disable_fb_clear(vmx);