Lines Matching +full:key +full:- +full:home

1 /* SPDX-License-Identifier: GPL-2.0 */
17 #include "kvm-s390.h"
20 * kvm_s390_real_to_abs - convert guest real address to guest absolute address
21 * @prefix - guest prefix
22 * @gra - guest real address
32 gra -= prefix; in _kvm_s390_real_to_abs()
37 * kvm_s390_real_to_abs - convert guest real address to guest absolute address
38 * @vcpu - guest virtual cpu
39 * @gra - guest real address
51 * _kvm_s390_logical_to_effective - convert guest logical to effective address
69 return ga & ((1UL << 31) - 1); in _kvm_s390_logical_to_effective()
70 return ga & ((1UL << 24) - 1); in _kvm_s390_logical_to_effective()
74 * kvm_s390_logical_to_effective - convert guest logical to effective address
89 return _kvm_s390_logical_to_effective(&vcpu->arch.sie_block->gpsw, ga); in kvm_s390_logical_to_effective()
96 * guest memory access protection facilities, like key or low address
104 * put_guest_lc - write a simple variable to a guest vcpu's lowcore
113 * Returns zero on success or -EFAULT on error.
128 kvm_write_guest(__vcpu->kvm, __gpa, &__x, sizeof(__x)); \
132 * write_guest_lc - copy data from kernel space to guest vcpu's lowcore
141 * Returns zero on success or -EFAULT on error.
154 return kvm_write_guest(vcpu->kvm, gpa, data, len); in write_guest_lc()
158 * read_guest_lc - copy data from guest vcpu's lowcore to kernel space
167 * Returns zero on success or -EFAULT on error.
180 return kvm_read_guest(vcpu->kvm, gpa, data, len); in read_guest_lc()
213 * write_guest_with_key - copy data from kernel space to guest space
219 * @access_key: access key the storage key needs to match
226 * Primary, secondary, home space or access register mode.
228 * around is taken into account for 24-, 31- and 64-bit addressing mode,
230 * In addition low address, DAT and key protection checks are performed before
240 * Returns: - zero on success
241 * - a negative value if e.g. the guest mapping is broken or in
242 * case of out-of-memory. In this case the contents of pgm are
245 * - a positive value if an access exception happened. In this case
267 * write_guest - copy data from kernel space to guest space
275 * that the PSW access key is used instead of an explicit argument.
281 u8 access_key = psw_bits(vcpu->arch.sie_block->gpsw).key; in write_guest()
287 * read_guest_with_key - copy data from guest space to kernel space
293 * @access_key: access key the storage key needs to match
309 * read_guest - copy data from guest space to kernel space
319 * that the PSW access key is used instead of an explicit argument.
325 u8 access_key = psw_bits(vcpu->arch.sie_block->gpsw).key; in read_guest()
331 * read_guest_instr - copy instruction data from guest space to kernel space
341 * instruction data will be read from primary space when in home-space or
342 * address-space mode.
348 u8 access_key = psw_bits(vcpu->arch.sie_block->gpsw).key; in read_guest_instr()
355 * write_guest_abs - copy data from kernel space to guest space absolute
364 * Guest low address and key protection are not checked.
366 * Returns zero on success or -EFAULT on error.
374 return kvm_write_guest(vcpu->kvm, gpa, data, len); in write_guest_abs()
378 * read_guest_abs - copy data from guest space absolute to kernel space
387 * Guest key protection is not checked.
389 * Returns zero on success or -EFAULT on error.
397 return kvm_read_guest(vcpu->kvm, gpa, data, len); in read_guest_abs()
401 * write_guest_real - copy data from kernel space to guest space real
408 * Guest low address and key protection are not checked.
410 * Returns zero on success, -EFAULT when copying from @data failed, or
425 * read_guest_real - copy data from guest space real to kernel space
432 * Guest key protection is not checked.
434 * Returns zero on success, -EFAULT when copying to @data failed, or