KVM: s390: pfmf: MR and MC are ignored without CSSKE
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Wed, 13 Apr 2016 10:09:58 +0000 (12:09 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:29 +0000 (12:07 +0200)
These two bits are simply ignored when the conditional-SSKE facility is
not installed.

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>
arch/s390/kvm/priv.c

index bfba98302ca0352703b85b7aef42cf82cee2c4a5..5c926b74d7ca8384596d3b441488b2eb1d352e6e 100644 (file)
@@ -675,10 +675,6 @@ static int handle_pfmf(struct kvm_vcpu *vcpu)
            !test_kvm_facility(vcpu->kvm, 14))
                return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION);
 
-       /* No support for conditional-SSKE */
-       if (vcpu->run->s.regs.gprs[reg1] & (PFMF_MR | PFMF_MC))
-               return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION);
-
        start = vcpu->run->s.regs.gprs[reg2] & PAGE_MASK;
        start = kvm_s390_logical_to_effective(vcpu, start);