Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93785
b: refs/heads/master
c: 33bd6a0
h: refs/heads/master
i:
  93783: 44c114d
v: v3
  • Loading branch information
Joerg Roedel authored and Avi Kivity committed Apr 27, 2008
1 parent 16512b0 commit 6062e06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9457a712a2f464c4b21bb7f78998775c69673a0c
refs/heads/master: 33bd6a0b3e8baed6469c8e68ea1b16cb50c4f5af
4 changes: 3 additions & 1 deletion trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ static void svm_hardware_enable(void *garbage)
svm_data->asid_generation = 1;
svm_data->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1;
svm_data->next_asid = svm_data->max_asid + 1;
svm_features = cpuid_edx(SVM_CPUID_FUNC);

asm volatile ("sgdt %0" : "=m"(gdt_descr));
gdt = (struct desc_struct *)gdt_descr.address;
Expand Down Expand Up @@ -411,6 +410,9 @@ static __init int svm_hardware_setup(void)
if (r)
goto err_2;
}

svm_features = cpuid_edx(SVM_CPUID_FUNC);

return 0;

err_2:
Expand Down

0 comments on commit 6062e06

Please sign in to comment.