diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2010-03-04 23:11:48 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:15:28 -0400 |
commit | ec68798c8fd0f01cdbd3f3e1a970e76a644cf08e (patch) | |
tree | 39627b21aa97d20502cf387bdbd56ab1a0acbf5f /arch/x86/kvm/vmx.c | |
parent | 5c1c85d08da5c257b21b0423b96fa6554aa4cb6f (diff) |
KVM: x86: Use native_store_idt() instead of kvm_get_idt()
This patch use generic linux function native_store_idt()
instead of kvm_get_idt(), and also removed the useless
function kvm_get_idt().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 3dbfc20824b7..33d88e0a0601 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -2452,7 +2452,7 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx) | |||
2452 | 2452 | ||
2453 | vmcs_write16(HOST_TR_SELECTOR, GDT_ENTRY_TSS*8); /* 22.2.4 */ | 2453 | vmcs_write16(HOST_TR_SELECTOR, GDT_ENTRY_TSS*8); /* 22.2.4 */ |
2454 | 2454 | ||
2455 | kvm_get_idt(&dt); | 2455 | native_store_idt(&dt); |
2456 | vmcs_writel(HOST_IDTR_BASE, dt.address); /* 22.2.4 */ | 2456 | vmcs_writel(HOST_IDTR_BASE, dt.address); /* 22.2.4 */ |
2457 | 2457 | ||
2458 | asm("mov $.Lkvm_vmx_return, %0" : "=r"(kvm_vmx_return)); | 2458 | asm("mov $.Lkvm_vmx_return, %0" : "=r"(kvm_vmx_return)); |