All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: remove unused guest_enter/exit
@ 2020-01-10  3:13 Alex Shi
  2020-01-10 23:10   ` kbuild test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alex Shi @ 2020-01-10  3:13 UTC (permalink / raw)
  Cc: Paolo Bonzini, Peter Zijlstra, Ingo Molnar, Frederic Weisbecker,
	linux-kernel

After commit 6edaa5307f3f ("KVM: remove kvm_guest_enter/exit wrappers")
no one uses guest_enter/exit anymore.

So better to remove them to simplify code and reduced a bit of object
size.

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org> 
Cc: Frederic Weisbecker <frederic@kernel.org> 
Cc: linux-kernel@vger.kernel.org 
---
 include/linux/context_tracking.h | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h
index 64ec82851aa3..238ada39ac2e 100644
--- a/include/linux/context_tracking.h
+++ b/include/linux/context_tracking.h
@@ -153,23 +153,4 @@ static inline void guest_exit_irqoff(void)
 	current->flags &= ~PF_VCPU;
 }
 #endif /* CONFIG_VIRT_CPU_ACCOUNTING_GEN */
-
-static inline void guest_enter(void)
-{
-	unsigned long flags;
-
-	local_irq_save(flags);
-	guest_enter_irqoff();
-	local_irq_restore(flags);
-}
-
-static inline void guest_exit(void)
-{
-	unsigned long flags;
-
-	local_irq_save(flags);
-	guest_exit_irqoff();
-	local_irq_restore(flags);
-}
-
 #endif
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-11 13:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10  3:13 [PATCH] KVM: remove unused guest_enter/exit Alex Shi
2020-01-10 23:10 ` kbuild test robot
2020-01-10 23:10   ` kbuild test robot
2020-01-11  5:28 ` kbuild test robot
2020-01-11  5:28   ` kbuild test robot
2020-01-11 11:32 ` Paolo Bonzini
2020-01-11 13:21   ` Alex Shi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.