lkml.org 
[lkml]   [2020]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 39/61] KVM: SVM: Convert feature updates from CPUID to KVM cpu caps
On Tue, Feb 25, 2020 at 04:10:18PM +0100, Paolo Bonzini wrote:
> On 01/02/20 19:51, Sean Christopherson wrote:
> > + /* CPUID 0x8000000A */
> > + /* Support next_rip if host supports it */
> > + if (boot_cpu_has(X86_FEATURE_NRIPS))
> > + kvm_cpu_cap_set(X86_FEATURE_NRIPS);
>
> Should this also be conditional on "nested"?

I think that makes sense? AFAICT it should probably be conditional on
"nrips" as well. X86_FEATURE_NPT should also be conditional on "nested".
I'll tack on a patch to make those changes, the cleanup is easier without
the things spread across different case statements, e.g. wrap the entire
SVM feature leaf in "if (nested)".

\
 
 \ /
  Last update: 2020-02-28 01:29    [W:0.175 / U:1.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site