Skip to contentSkip to conversation

KVM: remove unused guest_enter

PATCH Applied Alex Shi 2 participants 2 messages Jan 16, 2020 – Jan 19, 2020 Context tracking

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

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.

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
index 64ec82851aa3..8150f5ac176c 100644
@@ -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
#1 lore raw
Quoted 25 lines · Alex Shi

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.

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
index 64ec82851aa3..8150f5ac176c 100644
@@ -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