diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-02-25 05:43:07 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-25 06:53:32 -0400 |
commit | d6ab1ed44627c91d0a857a430b7ec4ed8648c7a5 (patch) | |
tree | d029c6a5644b336148036a2a98d77273595d9487 /arch/x86/kvm/svm.c | |
parent | f5c9803173848864d0c56108b9e102db0bf601de (diff) |
KVM: Drop kvm_get_gdt() in favor of generic linux function
Linux now has native_store_gdt() to do the same. Use it instead of
kvm local version.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 38f1fceefea1..6882be5b9267 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -368,7 +368,7 @@ static int svm_hardware_enable(void *garbage) | |||
368 | sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1; | 368 | sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1; |
369 | sd->next_asid = sd->max_asid + 1; | 369 | sd->next_asid = sd->max_asid + 1; |
370 | 370 | ||
371 | kvm_get_gdt(&gdt_descr); | 371 | native_store_gdt(&gdt_descr); |
372 | gdt = (struct desc_struct *)gdt_descr.address; | 372 | gdt = (struct desc_struct *)gdt_descr.address; |
373 | sd->tss_desc = (struct kvm_ldttss_desc *)(gdt + GDT_ENTRY_TSS); | 373 | sd->tss_desc = (struct kvm_ldttss_desc *)(gdt + GDT_ENTRY_TSS); |
374 | 374 | ||