[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8eb44204-51c2-d3c8-3adf-f825544f3c88@redhat.com>
Date: Thu, 21 Jan 2021 15:25:42 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Wei Huang <wei.huang2@....com>, kvm@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, vkuznets@...hat.com,
mlevitsk@...hat.com, seanjc@...gle.com, joro@...tes.org,
bp@...en8.de, tglx@...utronix.de, mingo@...hat.com, x86@...nel.org,
jmattson@...gle.com, wanpengli@...cent.com, bsd@...hat.com,
dgilbert@...hat.com, luto@...capital.net
Subject: Re: [PATCH v2 4/4] KVM: SVM: Support #GP handling for the case of
nested on nested
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
Powered by blists - more mailing lists