aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-02-25 05:43:07 -0500
committerAvi Kivity <avi@redhat.com>2010-04-25 06:53:32 -0400
commitd6ab1ed44627c91d0a857a430b7ec4ed8648c7a5 (patch)
treed029c6a5644b336148036a2a98d77273595d9487 /arch/x86/kvm/vmx.c
parentf5c9803173848864d0c56108b9e102db0bf601de (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/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 61f03980adae..68712bdf0407 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -603,7 +603,7 @@ static void reload_tss(void)
603 struct desc_ptr gdt; 603 struct desc_ptr gdt;
604 struct desc_struct *descs; 604 struct desc_struct *descs;
605 605
606 kvm_get_gdt(&gdt); 606 native_store_gdt(&gdt);
607 descs = (void *)gdt.address; 607 descs = (void *)gdt.address;
608 descs[GDT_ENTRY_TSS].type = 9; /* available TSS */ 608 descs[GDT_ENTRY_TSS].type = 9; /* available TSS */
609 load_TR_desc(); 609 load_TR_desc();
@@ -767,7 +767,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
767 * processors. 767 * processors.
768 */ 768 */
769 vmcs_writel(HOST_TR_BASE, kvm_read_tr_base()); /* 22.2.4 */ 769 vmcs_writel(HOST_TR_BASE, kvm_read_tr_base()); /* 22.2.4 */
770 kvm_get_gdt(&dt); 770 native_store_gdt(&dt);
771 vmcs_writel(HOST_GDTR_BASE, dt.address); /* 22.2.4 */ 771 vmcs_writel(HOST_GDTR_BASE, dt.address); /* 22.2.4 */
772 772
773 rdmsrl(MSR_IA32_SYSENTER_ESP, sysenter_esp); 773 rdmsrl(MSR_IA32_SYSENTER_ESP, sysenter_esp);