diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 2fdcc9819f36..27a0222c2946 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -185,6 +185,7 @@ static void kvm_cpu_vmxoff(void); | |||
185 | static DEFINE_PER_CPU(struct vmcs *, vmxarea); | 185 | static DEFINE_PER_CPU(struct vmcs *, vmxarea); |
186 | static DEFINE_PER_CPU(struct vmcs *, current_vmcs); | 186 | static DEFINE_PER_CPU(struct vmcs *, current_vmcs); |
187 | static DEFINE_PER_CPU(struct list_head, vcpus_on_cpu); | 187 | static DEFINE_PER_CPU(struct list_head, vcpus_on_cpu); |
188 | static DEFINE_PER_CPU(struct desc_ptr, host_gdt); | ||
188 | 189 | ||
189 | static unsigned long *vmx_io_bitmap_a; | 190 | static unsigned long *vmx_io_bitmap_a; |
190 | static unsigned long *vmx_io_bitmap_b; | 191 | static unsigned long *vmx_io_bitmap_b; |
@@ -871,6 +872,7 @@ static void __vmx_load_host_state(struct vcpu_vmx *vmx) | |||
871 | #endif | 872 | #endif |
872 | if (current_thread_info()->status & TS_USEDFPU) | 873 | if (current_thread_info()->status & TS_USEDFPU) |
873 | clts(); | 874 | clts(); |
875 | load_gdt(&__get_cpu_var(host_gdt)); | ||
874 | } | 876 | } |
875 | 877 | ||
876 | static void vmx_load_host_state(struct vcpu_vmx *vmx) | 878 | static void vmx_load_host_state(struct vcpu_vmx *vmx) |
@@ -1379,6 +1381,8 @@ static int hardware_enable(void *garbage) | |||
1379 | ept_sync_global(); | 1381 | ept_sync_global(); |
1380 | } | 1382 | } |
1381 | 1383 | ||
1384 | store_gdt(&__get_cpu_var(host_gdt)); | ||
1385 | |||
1382 | return 0; | 1386 | return 0; |
1383 | } | 1387 | } |
1384 | 1388 | ||