Skip to content

rcu,nohz,kvm: use RCU extended quiescent state when running KVM guest

[email protected] kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5context_tracking: generalize context tracking APIs to support user and guestinclude/linux/context_tracking.h kernel/context_tracking.c+33 -181 reply
2/5nohz: add stub context_tracking_is_enabledinclude/linux/context_tracking_state.h+2 -01 reply
3/5rcu,nohz: run vtime_user_enter/exit only when state == IN_USERkernel/context_tracking.c+8 -41 reply
4/5nohz,kvm: export context_tracking_user_enter/exitkernel/context_tracking.c+2 -01 reply
5/5kvm,rcu,nohz: use RCU extended quiescent state when running KVM guestinclude/linux/context_tracking.h include/linux/context_tracking_state.h include/linux/kvm_host.h+9 -11 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPaul E. McKenney
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v5 0/5] rcu,nohz,kvm: use RCU extended quiescent state when running KVM guest

When running a KVM guest on a system with NOHZ_FULL enabled, and the KVM guest running with idle=poll mode, we still get wakeups of the rcuos/N threads.

This problem has already been solved for user space by telling the RCU subsystem that the CPU is in an extended quiescent state while running user space code.

This patch series extends that code a little bit to make it usable to track KVM guest space, too.

I tested the code by booting a KVM guest with idle=poll, on a system with NOHZ_FULL enabled on most CPUs, and a VCPU thread bound to a CPU. In a 10 second interval, rcuos/N threads on other CPUs got woken up several times, while the rcuos thread on the CPU running the bound and alwasy running VCPU thread never got woken up once.

Thanks to Christian Borntraeger, Paul McKenney, Paulo Bonzini, Frederic Weisbecker, and Will Deacon for reviewing and improving earlier versions of this patch series.