Lines Matching defs:data
132 * write_guest_lc - copy data from kernel space to guest vcpu's lowcore
135 * @data: source address in kernel space
138 * Copy data from kernel space to guest vcpu's lowcore. The entire range must
149 int write_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data,
154 return kvm_write_guest(vcpu->kvm, gpa, data, len);
158 * read_guest_lc - copy data from guest vcpu's lowcore to kernel space
161 * @data: destination address in kernel space
164 * Copy data from guest vcpu's lowcore to kernel space. The entire range must
175 int read_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data,
180 return kvm_read_guest(vcpu->kvm, gpa, data, len);
199 int access_guest_abs_with_key(struct kvm *kvm, gpa_t gpa, void *data,
203 void *data, unsigned long len, enum gacc_mode mode,
207 void *data, unsigned long len, enum gacc_mode mode);
213 * write_guest_with_key - copy data from kernel space to guest space
217 * @data: source address in kernel space
221 * Copy @len bytes from @data (kernel space) to @ga (guest address).
222 * In order to copy data to guest space the PSW of the vcpu is inspected:
223 * If DAT is off data will be copied to guest real or absolute memory.
224 * If DAT is on data will be copied to the address space as specified by
229 * if the to be copied data crosses page boundaries in guest address space.
231 * copying any data.
235 * all data necessary so that a subsequent call to 'kvm_s390_inject_prog_vcpu()'
243 * undefined. Also parts of @data may have been copied to guest
248 * guest. No data has been copied to guest space.
250 * Note: in case an access exception is recognized no data has been copied to
251 * guest space (this is also true, if the to be copied data would cross
256 * if data has been changed in guest space in case of an exception.
260 void *data, unsigned long len, u8 access_key)
262 return access_guest_with_key(vcpu, ga, ar, data, len, GACC_STORE,
267 * write_guest - copy data from kernel space to guest space
271 * @data: source address in kernel space
278 int write_guest(struct kvm_vcpu *vcpu, unsigned long ga, u8 ar, void *data,
283 return write_guest_with_key(vcpu, ga, ar, data, len, access_key);
287 * read_guest_with_key - copy data from guest space to kernel space
291 * @data: destination address in kernel space
295 * Copy @len bytes from @ga (guest address) to @data (kernel space).
298 * except that data will be copied from guest space to kernel space.
302 void *data, unsigned long len, u8 access_key)
304 return access_guest_with_key(vcpu, ga, ar, data, len, GACC_FETCH,
309 * read_guest - copy data from guest space to kernel space
313 * @data: destination address in kernel space
316 * Copy @len bytes from @ga (guest address) to @data (kernel space).
322 int read_guest(struct kvm_vcpu *vcpu, unsigned long ga, u8 ar, void *data,
327 return read_guest_with_key(vcpu, ga, ar, data, len, access_key);
331 * read_guest_instr - copy instruction data from guest space to kernel space
334 * @data: destination address in kernel space
337 * Copy @len bytes from the given address (guest space) to @data (kernel
341 * instruction data will be read from primary space when in home-space or
345 int read_guest_instr(struct kvm_vcpu *vcpu, unsigned long ga, void *data,
350 return access_guest_with_key(vcpu, ga, 0, data, len, GACC_IFETCH,
355 * write_guest_abs - copy data from kernel space to guest space absolute
358 * @data: source address in kernel space
361 * Copy @len bytes from @data (kernel space) to @gpa (guest absolute address).
368 * If an error occurs data may have been copied partially to guest memory.
371 int write_guest_abs(struct kvm_vcpu *vcpu, unsigned long gpa, void *data,
374 return kvm_write_guest(vcpu->kvm, gpa, data, len);
378 * read_guest_abs - copy data from guest space absolute to kernel space
381 * @data: destination address in kernel space
384 * Copy @len bytes from @gpa (guest absolute address) to @data (kernel space).
391 * If an error occurs data may have been copied partially to kernel space.
394 int read_guest_abs(struct kvm_vcpu *vcpu, unsigned long gpa, void *data,
397 return kvm_read_guest(vcpu->kvm, gpa, data, len);
401 * write_guest_real - copy data from kernel space to guest space real
404 * @data: source address in kernel space
407 * Copy @len bytes from @data (kernel space) to @gra (guest real address).
414 * If an error occurs data may have been copied partially to guest memory.
417 int write_guest_real(struct kvm_vcpu *vcpu, unsigned long gra, void *data,
420 return access_guest_real(vcpu, gra, data, len, 1);
424 * read_guest_real - copy data from guest space real to kernel space
427 * @data: destination address in kernel space
430 * Copy @len bytes from @gra (guest real address) to @data (kernel space).
437 * If an error occurs data may have been copied partially to kernel space.
440 int read_guest_real(struct kvm_vcpu *vcpu, unsigned long gra, void *data,
443 return access_guest_real(vcpu, gra, data, len, 0);