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>
This commit is contained in:
Wei Yongjun
2010-03-05 12:11:48 +08:00
committed by Avi Kivity
parent 5c1c85d08d
commit ec68798c8f
2 changed files with 1 additions and 6 deletions

View 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)
{