Commit 60f90a14dd3e675adfa5c3e0a153696a0230e725
Committed by
Christian Borntraeger
1 parent
af43eb2fd7
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
KVM: s390: add defines for virtio and pfault interrupt code
Get rid of open coded value for virtio and pfault completion interrupts. Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
arch/s390/kvm/interrupt.c
... | ... | @@ -27,6 +27,8 @@ |
27 | 27 | #define IOINT_CSSID_MASK 0x03fc0000 |
28 | 28 | #define IOINT_AI_MASK 0x04000000 |
29 | 29 | #define PFAULT_INIT 0x0600 |
30 | +#define PFAULT_DONE 0x0680 | |
31 | +#define VIRTIO_PARAM 0x0d00 | |
30 | 32 | |
31 | 33 | static int __must_check deliver_ckc_interrupt(struct kvm_vcpu *vcpu); |
32 | 34 | |
... | ... | @@ -391,7 +393,7 @@ |
391 | 393 | trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, inti->type, 0, |
392 | 394 | inti->ext.ext_params2); |
393 | 395 | rc = put_guest_lc(vcpu, 0x2603, (u16 *)__LC_EXT_INT_CODE); |
394 | - rc |= put_guest_lc(vcpu, 0x0680, (u16 *)__LC_EXT_CPU_ADDR); | |
396 | + rc |= put_guest_lc(vcpu, PFAULT_DONE, (u16 *)__LC_EXT_CPU_ADDR); | |
395 | 397 | rc |= write_guest_lc(vcpu, __LC_EXT_OLD_PSW, |
396 | 398 | &vcpu->arch.sie_block->gpsw, |
397 | 399 | sizeof(psw_t)); |
... | ... | @@ -408,7 +410,7 @@ |
408 | 410 | inti->ext.ext_params, |
409 | 411 | inti->ext.ext_params2); |
410 | 412 | rc = put_guest_lc(vcpu, 0x2603, (u16 *)__LC_EXT_INT_CODE); |
411 | - rc |= put_guest_lc(vcpu, 0x0d00, (u16 *)__LC_EXT_CPU_ADDR); | |
413 | + rc |= put_guest_lc(vcpu, VIRTIO_PARAM, (u16 *)__LC_EXT_CPU_ADDR); | |
412 | 414 | rc |= write_guest_lc(vcpu, __LC_EXT_OLD_PSW, |
413 | 415 | &vcpu->arch.sie_block->gpsw, |
414 | 416 | sizeof(psw_t)); |