lkml.org 
[lkml]   [2021]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 4/4] KVM: SVM: Support #GP handling for the case of nested on nested
From
Date
On 21/01/21 07:55, Wei Huang wrote:
> + if (nested && guest_cpuid_has(vcpu, X86_FEATURE_SVM)) {
> + best = kvm_find_cpuid_entry(vcpu, 0x8000000A, 0);
> + best->edx |= (1 << 28);
> + }
> +

Instead of this, please use kvm_cpu_cap_set in svm_set_cpu_caps's "if
(nested)".

Paolo

\
 
 \ /
  Last update: 2021-01-21 15:31    [W:0.172 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site