diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2016-04-04 15:57:08 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2016-06-10 12:07:24 +0200 |
commit | 09a400e78eaf02d8ab8e836edf864e1025c8e2d7 (patch) | |
tree | f9322943bb6a4ef513d0fab495094457026cb088 /arch | |
parent | s390/sclp: detect interlock-and-broadcast-suppression facility (diff) | |
download | linux-09a400e78eaf02d8ab8e836edf864e1025c8e2d7.tar.xz linux-09a400e78eaf02d8ab8e836edf864e1025c8e2d7.zip |
KVM: s390: enable ibs only if available
Let's enable interlock-and-broadcast suppression only if the facility is
actually available.
Reviewed-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')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index d987eb8af059..ad93b40bfdc0 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -2789,6 +2789,8 @@ static void __disable_ibs_on_all_vcpus(struct kvm *kvm) static void __enable_ibs_on_vcpu(struct kvm_vcpu *vcpu) { + if (!sclp.has_ibs) + return; kvm_check_request(KVM_REQ_DISABLE_IBS, vcpu); kvm_s390_sync_request(KVM_REQ_ENABLE_IBS, vcpu); } |