KVM: remove unused guest_enter
PATCH 1/1 KVM: remove unused guest_enter
After commit 61bd0f66ff92 ("KVM: PPC: Book3S HV: Fix guest time accounting with VIRT_CPU_ACCOUNTING_GEN"), no one use this function anymore, So better to remove it.
Signed-off-by Alex Shi <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Frederic Weisbecker <[email protected]>
--- include/linux/context_tracking.h | 9 --------- 1 file changed, 9 deletions(-)
include/linux/context_tracking.h +0 -9
@@ -154,15 +154,6 @@ static inline void guest_exit_irqoff(void) }#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;
Signature · 1 line
1.8.3.1
Paolo Bonzini
AppliedQuoted 25 lines · Alex Shi
After commit
61bd0f66ff92("KVM: PPC: Book3S HV: Fix guest time accounting withVIRT_CPU_ACCOUNTING_GEN"), no one use this function anymore, So better to remove it.Signed-off-by Alex Shi <[email protected]>Cc Paolo Bonzini <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Ingo Molnar <[email protected]>Cc Frederic Weisbecker <[email protected]>--- include/linux/context_tracking.h | 9 --------- 1 file changed, 9 deletions(-)include/linux/context_tracking.h +0
-2@@ -154,15 +154,6 @@ static inline void guest_exit_irqoff(void) }#endif /* CONFIG_VIRT_CPU_ACCOUNTING_GEN */ -static inline void guest_enter (void ) -{
include/linux/context_tracking.h static inline void guest_exit_irqoff(void) · line 159
Quoted 10 lines
include/linux/context_tracking.h +0
-7-unsigned long flags; - -local_irq_save (flags); -guest_enter_irqoff (); -local_irq_restore (flags); -} -static inline void guest_exit (void ) {unsigned long flags;
Queued, thanks.
Paolo