KVM: remove kvm_guest_enter/exit wrappers
Use the functions from context_tracking.h directly. Cc: Andy Lutomirski <luto@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Rik van Riel <riel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -875,28 +875,6 @@ static inline void kvm_iommu_unmap_pages(struct kvm *kvm,
|
||||
}
|
||||
#endif
|
||||
|
||||
/* must be called with irqs disabled */
|
||||
static inline void __kvm_guest_enter(void)
|
||||
{
|
||||
guest_enter_irqoff();
|
||||
}
|
||||
|
||||
/* must be called with irqs disabled */
|
||||
static inline void __kvm_guest_exit(void)
|
||||
{
|
||||
guest_exit_irqoff();
|
||||
}
|
||||
|
||||
static inline void kvm_guest_enter(void)
|
||||
{
|
||||
guest_enter();
|
||||
}
|
||||
|
||||
static inline void kvm_guest_exit(void)
|
||||
{
|
||||
guest_exit();
|
||||
}
|
||||
|
||||
/*
|
||||
* search_memslots() and __gfn_to_memslot() are here because they are
|
||||
* used in non-modular code in arch/powerpc/kvm/book3s_hv_rm_mmu.c.
|
||||
|
Reference in New Issue
Block a user