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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user