summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorDavid Hildenbrand2015-11-24 16:41:33 +0100
committerChristian Borntraeger2016-06-21 09:43:41 +0200
commita1b7b9b286c0157748922526ecb353e550209833 (patch)
tree7e98809dbbada365383b55ace9731145551251e5 /arch/s390/kvm/kvm-s390.c
parentKVM: s390: vsie: support guest-PER-enhancement (diff)
downloadkernel-qcow2-linux-a1b7b9b286c0157748922526ecb353e550209833.tar.gz
kernel-qcow2-linux-a1b7b9b286c0157748922526ecb353e550209833.tar.xz
kernel-qcow2-linux-a1b7b9b286c0157748922526ecb353e550209833.zip
KVM: s390: vsie: support guest-storage-limit-suppression
We can easily forward guest-storage-limit-suppression if available. One thing to care about is keeping the prefix properly mapped when gsls in toggled on/off or the mso changes in between. Therefore we better remap the prefix on any mso changes just like we already do with the prefix. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 175752877c0d..ce9813afd502 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -271,6 +271,8 @@ static void kvm_s390_cpu_feat_init(void)
allow_cpu_feat(KVM_S390_VM_CPU_FEAT_SIIF);
if (sclp.has_gpere)
allow_cpu_feat(KVM_S390_VM_CPU_FEAT_GPERE);
+ if (sclp.has_gsls)
+ allow_cpu_feat(KVM_S390_VM_CPU_FEAT_GSLS);
}
int kvm_arch_init(void *opaque)