diff options
author | Dominik Dingel <dingel@linux.vnet.ibm.com> | 2015-05-07 15:41:57 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-07-29 11:02:05 +0200 |
commit | e6db1d61c7cc05dd3c8b787a0bd47dcb94800300 (patch) | |
tree | f7cc9f1c33d9866bd111e881eb899eae74047d47 /arch/s390/kvm/priv.c | |
parent | KVM: s390: filter space-switch events when PER is enforced (diff) | |
download | linux-e6db1d61c7cc05dd3c8b787a0bd47dcb94800300.tar.xz linux-e6db1d61c7cc05dd3c8b787a0bd47dcb94800300.zip |
KVM: s390: clean up cmma_enable check
As we already only enable CMMA when userspace requests it, we can
safely move the additional checks to the request handler and avoid
doing them multiple times. This also tells userspace if CMMA is
available.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/priv.c')
-rw-r--r-- | arch/s390/kvm/priv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index ad4242245771..1b95d2934472 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -761,7 +761,7 @@ static int handle_essa(struct kvm_vcpu *vcpu) VCPU_EVENT(vcpu, 5, "cmma release %d pages", entries); gmap = vcpu->arch.gmap; vcpu->stat.instruction_essa++; - if (!kvm_s390_cmma_enabled(vcpu->kvm)) + if (!vcpu->kvm->arch.use_cmma) return kvm_s390_inject_program_int(vcpu, PGM_OPERATION); if (vcpu->arch.sie_block->gpsw.mask & PSW_MASK_PSTATE) |