]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: x86: Use native_store_idt() instead of kvm_get_idt()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 5 Mar 2010 04:11:48 +0000 (12:11 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:28 +0000 (12:15 +0300)
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c

index ec891a2ce86e4fefa90c18bf5b26563e0c605527..ea1b6c615f9f986cc9dea5af763e2f02873c4372 100644 (file)
@@ -716,11 +716,6 @@ static inline void kvm_load_ldt(u16 sel)
        asm("lldt %0" : : "rm"(sel));
 }
 
-static inline void kvm_get_idt(struct desc_ptr *table)
-{
-       asm("sidt %0" : "=m"(*table));
-}
-
 #ifdef CONFIG_X86_64
 static inline unsigned long read_msr(unsigned long msr)
 {
index 3dbfc20824b72a9c37e8eee900c217588f6ef234..33d88e0a060163dbd320fb580d2490183aeb1ee1 100644 (file)
@@ -2452,7 +2452,7 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx)
 
        vmcs_write16(HOST_TR_SELECTOR, GDT_ENTRY_TSS*8);  /* 22.2.4 */
 
-       kvm_get_idt(&dt);
+       native_store_idt(&dt);
        vmcs_writel(HOST_IDTR_BASE, dt.address);   /* 22.2.4 */
 
        asm("mov $.Lkvm_vmx_return, %0" : "=r"(kvm_vmx_return));