]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
KVM: s390: allow 255 VCPUs when sca entries aren't used
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 8 Aug 2016 20:39:32 +0000 (22:39 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 8 Sep 2016 11:40:53 +0000 (13:40 +0200)
commita6940674c384ebf56aa0c44f417032de2b67100c
tree2050fc6d85844310c17ff7d240c692d3682a2592
parent80cd8763388b52fa9129cbb4b57a3615a55afd40
KVM: s390: allow 255 VCPUs when sca entries aren't used

If the SCA entries aren't used by the hardware (no SIGPIF), we
can simply not set the entries, stick to the basic sca and allow more
than 64 VCPUs.

To hinder any other facility from using these entries, let's properly
provoke intercepts by not setting the MCN and keeping the entries
unset.

This effectively allows when running KVM under KVM (vSIE) or under z/VM to
provide more than 64 VCPUs to a guest. Let's limit it to 255 for now, to
not run into problems if the CPU numbers are limited somewhere else.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h