diff options
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index bfe11cf124a1..36cf28a910b8 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -1601,7 +1601,7 @@ static void reload_tss(void) | |||
1601 | /* | 1601 | /* |
1602 | * VT restores TR but not its size. Useless. | 1602 | * VT restores TR but not its size. Useless. |
1603 | */ | 1603 | */ |
1604 | struct desc_ptr *gdt = &__get_cpu_var(host_gdt); | 1604 | struct desc_ptr *gdt = this_cpu_ptr(&host_gdt); |
1605 | struct desc_struct *descs; | 1605 | struct desc_struct *descs; |
1606 | 1606 | ||
1607 | descs = (void *)gdt->address; | 1607 | descs = (void *)gdt->address; |
@@ -1647,7 +1647,7 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset) | |||
1647 | 1647 | ||
1648 | static unsigned long segment_base(u16 selector) | 1648 | static unsigned long segment_base(u16 selector) |
1649 | { | 1649 | { |
1650 | struct desc_ptr *gdt = &__get_cpu_var(host_gdt); | 1650 | struct desc_ptr *gdt = this_cpu_ptr(&host_gdt); |
1651 | struct desc_struct *d; | 1651 | struct desc_struct *d; |
1652 | unsigned long table_base; | 1652 | unsigned long table_base; |
1653 | unsigned long v; | 1653 | unsigned long v; |
@@ -1777,7 +1777,7 @@ static void __vmx_load_host_state(struct vcpu_vmx *vmx) | |||
1777 | */ | 1777 | */ |
1778 | if (!user_has_fpu() && !vmx->vcpu.guest_fpu_loaded) | 1778 | if (!user_has_fpu() && !vmx->vcpu.guest_fpu_loaded) |
1779 | stts(); | 1779 | stts(); |
1780 | load_gdt(&__get_cpu_var(host_gdt)); | 1780 | load_gdt(this_cpu_ptr(&host_gdt)); |
1781 | } | 1781 | } |
1782 | 1782 | ||
1783 | static void vmx_load_host_state(struct vcpu_vmx *vmx) | 1783 | static void vmx_load_host_state(struct vcpu_vmx *vmx) |
@@ -1807,7 +1807,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | |||
1807 | } | 1807 | } |
1808 | 1808 | ||
1809 | if (vmx->loaded_vmcs->cpu != cpu) { | 1809 | if (vmx->loaded_vmcs->cpu != cpu) { |
1810 | struct desc_ptr *gdt = &__get_cpu_var(host_gdt); | 1810 | struct desc_ptr *gdt = this_cpu_ptr(&host_gdt); |
1811 | unsigned long sysenter_esp; | 1811 | unsigned long sysenter_esp; |
1812 | 1812 | ||
1813 | kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); | 1813 | kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); |
@@ -2744,7 +2744,7 @@ static int hardware_enable(void *garbage) | |||
2744 | ept_sync_global(); | 2744 | ept_sync_global(); |
2745 | } | 2745 | } |
2746 | 2746 | ||
2747 | native_store_gdt(&__get_cpu_var(host_gdt)); | 2747 | native_store_gdt(this_cpu_ptr(&host_gdt)); |
2748 | 2748 | ||
2749 | return 0; | 2749 | return 0; |
2750 | } | 2750 | } |