diff options
Diffstat (limited to 'arch/s390/kvm/kvm-s390.h')
-rw-r--r-- | arch/s390/kvm/kvm-s390.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index dc99f1ca4267..b44912a32949 100644 --- a/arch/s390/kvm/kvm-s390.h +++ b/arch/s390/kvm/kvm-s390.h | |||
@@ -28,8 +28,7 @@ typedef int (*intercept_handler_t)(struct kvm_vcpu *vcpu); | |||
28 | extern unsigned long *vfacilities; | 28 | extern unsigned long *vfacilities; |
29 | 29 | ||
30 | /* negativ values are error codes, positive values for internal conditions */ | 30 | /* negativ values are error codes, positive values for internal conditions */ |
31 | #define SIE_INTERCEPT_RERUNVCPU (1<<0) | 31 | #define SIE_INTERCEPT_UCONTROL (1<<0) |
32 | #define SIE_INTERCEPT_UCONTROL (1<<1) | ||
33 | int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu); | 32 | int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu); |
34 | 33 | ||
35 | #define VM_EVENT(d_kvm, d_loglevel, d_string, d_args...)\ | 34 | #define VM_EVENT(d_kvm, d_loglevel, d_string, d_args...)\ |
@@ -91,8 +90,10 @@ static inline void kvm_s390_get_base_disp_sse(struct kvm_vcpu *vcpu, | |||
91 | 90 | ||
92 | static inline void kvm_s390_get_regs_rre(struct kvm_vcpu *vcpu, int *r1, int *r2) | 91 | static inline void kvm_s390_get_regs_rre(struct kvm_vcpu *vcpu, int *r1, int *r2) |
93 | { | 92 | { |
94 | *r1 = (vcpu->arch.sie_block->ipb & 0x00f00000) >> 20; | 93 | if (r1) |
95 | *r2 = (vcpu->arch.sie_block->ipb & 0x000f0000) >> 16; | 94 | *r1 = (vcpu->arch.sie_block->ipb & 0x00f00000) >> 20; |
95 | if (r2) | ||
96 | *r2 = (vcpu->arch.sie_block->ipb & 0x000f0000) >> 16; | ||
96 | } | 97 | } |
97 | 98 | ||
98 | static inline u64 kvm_s390_get_base_disp_rsy(struct kvm_vcpu *vcpu) | 99 | static inline u64 kvm_s390_get_base_disp_rsy(struct kvm_vcpu *vcpu) |