public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL 0/5] KVM: s390: Let user space control the cpu states
@ 2014-07-15 13:27 Christian Borntraeger
  2014-07-15 13:27 ` [GIT PULL 1/5] KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time Christian Borntraeger
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Christian Borntraeger @ 2014-07-15 13:27 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Alexander Graf, KVM, linux-s390, Cornelia Huck, Jens Freimann,
	Christian Borntraeger

Paolo,

The following changes since commit 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23:

  arch: x86: kvm: x86.c: Cleaning up variable is set more than once (2014-06-30 16:52:04 +0200)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git  tags/kvm-s390-20140715

for you to fetch changes up to 6352e4d2dd9a349024a41356148eced553e1dce4:

  KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control (2014-07-10 14:11:17 +0200)

----------------------------------------------------------------
This series enables the "KVM_(S|G)ET_MP_STATE" ioctls on s390 to make
the cpu state settable by user space.

This is necessary to avoid races in s390 SIGP/reset handling which
happen because some SIGPs are handled in QEMU, while others are
handled in the kernel. Together with the busy conditions as return
value of SIGP races happen especially in areas like starting and
stopping of CPUs. (For example, there is a program 'cpuplugd', that
runs on several s390 distros which does automatic onlining and
offlining on cpus.)

As soon as the MPSTATE interface is used, user space takes complete
control of the cpu states. Otherwise the kernel will use the old way.

Therefore, the new kernel continues to work fine with old QEMUs.

----------------------------------------------------------------
David Hildenbrand (5):
      KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time
      KVM: s390: move finalization of SIGP STOP orders to kvm_s390_vcpu_stop
      KVM: s390: remove __cpu_is_stopped and expose is_vcpu_stopped
      KVM: prepare for KVM_(S|G)ET_MP_STATE on other architectures
      KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control

 Documentation/virtual/kvm/api.txt | 31 ++++++++++++++---------
 arch/s390/include/asm/kvm_host.h  |  1 +
 arch/s390/kvm/diag.c              |  3 ++-
 arch/s390/kvm/intercept.c         | 32 ++++++++++--------------
 arch/s390/kvm/kvm-s390.c          | 52 +++++++++++++++++++++++++++++++--------
 arch/s390/kvm/kvm-s390.h          | 10 ++++++--
 arch/s390/kvm/sigp.c              |  7 +++++-
 include/uapi/linux/kvm.h          |  7 +++++-
 8 files changed, 98 insertions(+), 45 deletions(-)


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

end of thread, other threads:[~2014-07-21  9:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15 13:27 [GIT PULL 0/5] KVM: s390: Let user space control the cpu states Christian Borntraeger
2014-07-15 13:27 ` [GIT PULL 1/5] KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time Christian Borntraeger
2014-07-15 13:27 ` [GIT PULL 2/5] KVM: s390: move finalization of SIGP STOP orders to kvm_s390_vcpu_stop Christian Borntraeger
2014-07-15 13:27 ` [GIT PULL 3/5] KVM: s390: remove __cpu_is_stopped and expose is_vcpu_stopped Christian Borntraeger
2014-07-15 13:27 ` [GIT PULL 4/5] KVM: prepare for KVM_(S|G)ET_MP_STATE on other architectures Christian Borntraeger
2014-07-15 13:27 ` [GIT PULL 5/5] KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control Christian Borntraeger
2014-07-18 14:49 ` [GIT PULL 0/5] KVM: s390: Let user space control the cpu states Paolo Bonzini
2014-07-21  7:47   ` Christian Borntraeger
2014-07-21  9:46     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox