diff options
author | Jens Freimann <jfrei@linux.vnet.ibm.com> | 2014-04-16 07:57:18 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-08-25 08:35:28 -0400 |
commit | 44c6ca3d1b9c16cb715c21ec15670d27a8950822 (patch) | |
tree | 6ab8269c69eb4575ca4236befdad18039e23ce45 | |
parent | ab3f285f227fec62868037e9b1b1fd18294a83b8 (diff) |
KVM: s390: add defines for pfault init delivery code
Get rid of open coded values for pfault init.
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
-rw-r--r-- | arch/s390/kvm/interrupt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index f4c819bfc193..6c9428e71fdd 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #define IOINT_SSID_MASK 0x00030000 | 26 | #define IOINT_SSID_MASK 0x00030000 |
27 | #define IOINT_CSSID_MASK 0x03fc0000 | 27 | #define IOINT_CSSID_MASK 0x03fc0000 |
28 | #define IOINT_AI_MASK 0x04000000 | 28 | #define IOINT_AI_MASK 0x04000000 |
29 | #define PFAULT_INIT 0x0600 | ||
29 | 30 | ||
30 | static void deliver_ckc_interrupt(struct kvm_vcpu *vcpu); | 31 | static void deliver_ckc_interrupt(struct kvm_vcpu *vcpu); |
31 | 32 | ||
@@ -376,8 +377,9 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu, | |||
376 | case KVM_S390_INT_PFAULT_INIT: | 377 | case KVM_S390_INT_PFAULT_INIT: |
377 | trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, inti->type, 0, | 378 | trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, inti->type, 0, |
378 | inti->ext.ext_params2); | 379 | inti->ext.ext_params2); |
379 | rc = put_guest_lc(vcpu, 0x2603, (u16 *) __LC_EXT_INT_CODE); | 380 | rc = put_guest_lc(vcpu, EXT_IRQ_CP_SERVICE, |
380 | rc |= put_guest_lc(vcpu, 0x0600, (u16 *) __LC_EXT_CPU_ADDR); | 381 | (u16 *) __LC_EXT_INT_CODE); |
382 | rc |= put_guest_lc(vcpu, PFAULT_INIT, (u16 *) __LC_EXT_CPU_ADDR); | ||
381 | rc |= write_guest_lc(vcpu, __LC_EXT_OLD_PSW, | 383 | rc |= write_guest_lc(vcpu, __LC_EXT_OLD_PSW, |
382 | &vcpu->arch.sie_block->gpsw, sizeof(psw_t)); | 384 | &vcpu->arch.sie_block->gpsw, sizeof(psw_t)); |
383 | rc |= read_guest_lc(vcpu, __LC_EXT_NEW_PSW, | 385 | rc |= read_guest_lc(vcpu, __LC_EXT_NEW_PSW, |