Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197639
b: refs/heads/master
c: d6ab1ed
h: refs/heads/master
i:
  197637: 0aabd7a
  197635: e114366
  197631: 25ce0b3
v: v3
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed Apr 25, 2010
1 parent 148b757 commit eee66d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5c9803173848864d0c56108b9e102db0bf601de
refs/heads/master: d6ab1ed44627c91d0a857a430b7ec4ed8648c7a5
5 changes: 0 additions & 5 deletions trunk/arch/x86/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,6 @@ static inline void kvm_get_idt(struct desc_ptr *table)
asm("sidt %0" : "=m"(*table));
}

static inline void kvm_get_gdt(struct desc_ptr *table)
{
asm("sgdt %0" : "=m"(*table));
}

static inline unsigned long kvm_read_tr_base(void)
{
u16 tr;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static int svm_hardware_enable(void *garbage)
sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1;
sd->next_asid = sd->max_asid + 1;

kvm_get_gdt(&gdt_descr);
native_store_gdt(&gdt_descr);
gdt = (struct desc_struct *)gdt_descr.address;
sd->tss_desc = (struct kvm_ldttss_desc *)(gdt + GDT_ENTRY_TSS);

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ static void reload_tss(void)
struct desc_ptr gdt;
struct desc_struct *descs;

kvm_get_gdt(&gdt);
native_store_gdt(&gdt);
descs = (void *)gdt.address;
descs[GDT_ENTRY_TSS].type = 9; /* available TSS */
load_TR_desc();
Expand Down Expand Up @@ -767,7 +767,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
* processors.
*/
vmcs_writel(HOST_TR_BASE, kvm_read_tr_base()); /* 22.2.4 */
kvm_get_gdt(&dt);
native_store_gdt(&dt);
vmcs_writel(HOST_GDTR_BASE, dt.address); /* 22.2.4 */

rdmsrl(MSR_IA32_SYSENTER_ESP, sysenter_esp);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ unsigned long segment_base(u16 selector)
if (selector == 0)
return 0;

kvm_get_gdt(&gdt);
native_store_gdt(&gdt);
table_base = gdt.address;

if (selector & 4) { /* from ldt */
Expand Down

0 comments on commit eee66d7

Please sign in to comment.