* [PATCH] KVM: remove unused guest_enter
@ 2020-01-16 3:32 Alex Shi
2020-01-19 9:12 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Alex Shi @ 2020-01-16 3:32 UTC (permalink / raw)
Cc: Paolo Bonzini, Peter Zijlstra, Ingo Molnar, Frederic Weisbecker,
linux-kernel
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 <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 | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h
index 64ec82851aa3..8150f5ac176c 100644
--- a/include/linux/context_tracking.h
+++ b/include/linux/context_tracking.h
@@ -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;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: remove unused guest_enter
2020-01-16 3:32 [PATCH] KVM: remove unused guest_enter Alex Shi
@ 2020-01-19 9:12 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2020-01-19 9:12 UTC (permalink / raw)
To: Alex Shi; +Cc: Peter Zijlstra, Ingo Molnar, Frederic Weisbecker, linux-kernel
On 16/01/20 04:32, Alex Shi wrote:
> 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 <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 | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h
> index 64ec82851aa3..8150f5ac176c 100644
> --- a/include/linux/context_tracking.h
> +++ b/include/linux/context_tracking.h
> @@ -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;
>
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-19 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 3:32 [PATCH] KVM: remove unused guest_enter Alex Shi
2020-01-19 9:12 ` Paolo Bonzini
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.