diff options
author | David Hildenbrand <david@redhat.com> | 2017-03-13 11:48:28 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2017-03-16 13:05:10 +0100 |
commit | 0c9d86833dfdafaf580cc49735661d002ef07ee3 (patch) | |
tree | 2d7c364bcb35c56266f659b80f822dcecd81af91 /arch/s390/kvm/priv.c | |
parent | c0a6bfdc18b83290b65372a7687134052f382bdf (diff) | |
download | op-kernel-dev-0c9d86833dfdafaf580cc49735661d002ef07ee3.zip op-kernel-dev-0c9d86833dfdafaf580cc49735661d002ef07ee3.tar.gz |
KVM: s390: use defines for execution controls
Let's replace the bitmasks by defines. Reconstructed from code, comments
and commit messages.
Tried to keep the defines short and map them to feature names. In case
they don't completely map to features, keep them in the stye of ICTL
defines.
This effectively drops all "U" from the existing numbers. I think this
should be fine (as similarly done for e.g. ICTL defines).
I am not 100% sure about the ECA_MVPGI and ECA_PROTEXCI bits as they are
always used in pairs.
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170313104828.13362-1-david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[some renames, add one missing place]
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 26f30ba..d42bb2d 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -38,7 +38,7 @@ static int handle_ri(struct kvm_vcpu *vcpu) { if (test_kvm_facility(vcpu->kvm, 64)) { VCPU_EVENT(vcpu, 3, "%s", "ENABLE: RI (lazy)"); - vcpu->arch.sie_block->ecb3 |= 0x01; + vcpu->arch.sie_block->ecb3 |= ECB3_RI; kvm_s390_retry_instr(vcpu); return 0; } else |