aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 36e6c88913dc..e0f4da07f987 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -3469,6 +3469,10 @@ static void svm_cpuid_update(struct kvm_vcpu *vcpu)
3469static void svm_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry) 3469static void svm_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry)
3470{ 3470{
3471 switch (func) { 3471 switch (func) {
3472 case 0x80000001:
3473 if (nested)
3474 entry->ecx |= (1 << 2); /* Set SVM bit */
3475 break;
3472 case 0x8000000A: 3476 case 0x8000000A:
3473 entry->eax = 1; /* SVM revision 1 */ 3477 entry->eax = 1; /* SVM revision 1 */
3474 entry->ebx = 8; /* Lets support 8 ASIDs in case we add proper 3478 entry->ebx = 8; /* Lets support 8 ASIDs in case we add proper