aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/priv.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kvm/priv.c')
-rw-r--r--arch/s390/kvm/priv.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c
index d64382c1ed61..7db2ad076f31 100644
--- a/arch/s390/kvm/priv.c
+++ b/arch/s390/kvm/priv.c
@@ -42,7 +42,7 @@ static int handle_set_prefix(struct kvm_vcpu *vcpu)
42 } 42 }
43 43
44 /* get the value */ 44 /* get the value */
45 if (get_guest(vcpu, address, (u32 *) operand2)) { 45 if (get_guest(vcpu, address, (u32 __user *) operand2)) {
46 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); 46 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
47 goto out; 47 goto out;
48 } 48 }
@@ -83,7 +83,7 @@ static int handle_store_prefix(struct kvm_vcpu *vcpu)
83 address = address & 0x7fffe000u; 83 address = address & 0x7fffe000u;
84 84
85 /* get the value */ 85 /* get the value */
86 if (put_guest(vcpu, address, (u32 *)operand2)) { 86 if (put_guest(vcpu, address, (u32 __user *)operand2)) {
87 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); 87 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
88 goto out; 88 goto out;
89 } 89 }
@@ -108,7 +108,7 @@ static int handle_store_cpu_address(struct kvm_vcpu *vcpu)
108 goto out; 108 goto out;
109 } 109 }
110 110
111 rc = put_guest(vcpu, vcpu->vcpu_id, (u16 *)useraddr); 111 rc = put_guest(vcpu, vcpu->vcpu_id, (u16 __user *)useraddr);
112 if (rc) { 112 if (rc) {
113 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); 113 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
114 goto out; 114 goto out;
@@ -149,18 +149,18 @@ static int handle_tpi(struct kvm_vcpu *vcpu)
149 * Store the two-word I/O interruption code into the 149 * Store the two-word I/O interruption code into the
150 * provided area. 150 * provided area.
151 */ 151 */
152 put_guest(vcpu, inti->io.subchannel_id, (u16 *) addr); 152 put_guest(vcpu, inti->io.subchannel_id, (u16 __user *) addr);
153 put_guest(vcpu, inti->io.subchannel_nr, (u16 *) (addr + 2)); 153 put_guest(vcpu, inti->io.subchannel_nr, (u16 __user *) (addr + 2));
154 put_guest(vcpu, inti->io.io_int_parm, (u32 *) (addr + 4)); 154 put_guest(vcpu, inti->io.io_int_parm, (u32 __user *) (addr + 4));
155 } else { 155 } else {
156 /* 156 /*
157 * Store the three-word I/O interruption code into 157 * Store the three-word I/O interruption code into
158 * the appropriate lowcore area. 158 * the appropriate lowcore area.
159 */ 159 */
160 put_guest(vcpu, inti->io.subchannel_id, (u16 *) __LC_SUBCHANNEL_ID); 160 put_guest(vcpu, inti->io.subchannel_id, (u16 __user *) __LC_SUBCHANNEL_ID);
161 put_guest(vcpu, inti->io.subchannel_nr, (u16 *) __LC_SUBCHANNEL_NR); 161 put_guest(vcpu, inti->io.subchannel_nr, (u16 __user *) __LC_SUBCHANNEL_NR);
162 put_guest(vcpu, inti->io.io_int_parm, (u32 *) __LC_IO_INT_PARM); 162 put_guest(vcpu, inti->io.io_int_parm, (u32 __user *) __LC_IO_INT_PARM);
163 put_guest(vcpu, inti->io.io_int_word, (u32 *) __LC_IO_INT_WORD); 163 put_guest(vcpu, inti->io.io_int_word, (u32 __user *) __LC_IO_INT_WORD);
164 } 164 }
165 kfree(inti); 165 kfree(inti);
166no_interrupt: 166no_interrupt:
@@ -353,7 +353,7 @@ static int handle_stidp(struct kvm_vcpu *vcpu)
353 goto out; 353 goto out;
354 } 354 }
355 355
356 rc = put_guest(vcpu, vcpu->arch.stidp_data, (u64 *)operand2); 356 rc = put_guest(vcpu, vcpu->arch.stidp_data, (u64 __user *)operand2);
357 if (rc) { 357 if (rc) {
358 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); 358 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
359 goto out; 359 goto out;