All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Janosch Frank <frankja@linux.vnet.ibm.com>
Cc: KVM <kvm@vger.kernel.org>, "Cornelia Huck" <cohuck@redhat.com>,
	"Christian Borntraeger" <borntraeger@de.ibm.com>,
	"David Hildenbrand" <david@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>
Subject: [PATCH v2 0/2] disabling halt polling for nested virtualization
Date: Tue, 16 Apr 2019 20:01:56 +0200	[thread overview]
Message-ID: <20190416180158.112309-1-borntraeger@de.ibm.com> (raw)

v1->v2:
	- add kvm_vcpu parameter to kvm_arch_no_poll
	- add kvm stat in the s390 implementation
	- make the value tunable
	
Folks,

this is a very simple variant to disable halt polling when the KVM host
is already running virtualized. We could imagine more complex variants
(like tuning down the halt polling value) but this seems to do the trick
for some kvm deployment scenarios on s390x. (e.g. having multiple LPARS
with KVMs that are in itself already overcommitted). 


Christian Borntraeger (2):
  KVM: polling: add architecture backend to disable polling
  KVM: s390: provide kvm_arch_no_poll function

 arch/s390/include/asm/kvm_host.h |  1 +
 arch/s390/kvm/Kconfig            |  1 +
 arch/s390/kvm/kvm-s390.c         | 17 +++++++++++++++++
 include/linux/kvm_host.h         | 10 ++++++++++
 virt/kvm/Kconfig                 |  3 +++
 virt/kvm/kvm_main.c              |  2 +-
 6 files changed, 33 insertions(+), 1 deletion(-)

-- 
2.19.1


             reply	other threads:[~2019-04-16 18:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-16 18:01 Christian Borntraeger [this message]
2019-04-16 18:01 ` [PATCH v2 1/2] KVM: polling: add architecture backend to disable polling Christian Borntraeger
2019-04-18 14:44   ` Cornelia Huck
2019-04-16 18:01 ` [PATCH v2 2/2] KVM: s390: provide kvm_arch_no_poll function Christian Borntraeger
2019-04-16 18:02   ` Christian Borntraeger
2019-04-18 14:46   ` Cornelia Huck
2019-04-17 13:20 ` [PATCH v2 0/2] disabling halt polling for nested virtualization Paolo Bonzini
2019-04-17 13:23   ` Christian Borntraeger
2019-04-17 13:43     ` Paolo Bonzini
2019-04-26  7:09 ` Christian Borntraeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190416180158.112309-1-borntraeger@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.