Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202427
b: refs/heads/master
c: 3444d7d
h: refs/heads/master
i:
  202425: b4f3a2e
  202423: 3cee444
v: v3
  • Loading branch information
Avi Kivity committed Aug 2, 2010
1 parent 383fc79 commit 7376c97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a3aad70572c3f4d55e7f09ac4eb313d41d0a484
refs/heads/master: 3444d7da1839b851eefedd372978d8a982316c36
4 changes: 4 additions & 0 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ static void kvm_cpu_vmxoff(void);
static DEFINE_PER_CPU(struct vmcs *, vmxarea);
static DEFINE_PER_CPU(struct vmcs *, current_vmcs);
static DEFINE_PER_CPU(struct list_head, vcpus_on_cpu);
static DEFINE_PER_CPU(struct desc_ptr, host_gdt);

static unsigned long *vmx_io_bitmap_a;
static unsigned long *vmx_io_bitmap_b;
Expand Down Expand Up @@ -871,6 +872,7 @@ static void __vmx_load_host_state(struct vcpu_vmx *vmx)
#endif
if (current_thread_info()->status & TS_USEDFPU)
clts();
load_gdt(&__get_cpu_var(host_gdt));
}

static void vmx_load_host_state(struct vcpu_vmx *vmx)
Expand Down Expand Up @@ -1379,6 +1381,8 @@ static int hardware_enable(void *garbage)
ept_sync_global();
}

store_gdt(&__get_cpu_var(host_gdt));

return 0;
}

Expand Down

0 comments on commit 7376c97

Please sign in to comment.