Lines Matching refs:hva

820 	unsigned long hva;  in vm_check_access_key()  local
826 hva = gfn_to_hva(kvm, gpa_to_gfn(gpa)); in vm_check_access_key()
827 if (kvm_is_error_hva(hva)) in vm_check_access_key()
831 r = get_guest_storage_key(current->mm, hva, &storage_key); in vm_check_access_key()
883 unsigned long hva; in vcpu_check_access_key() local
893 hva = gfn_to_hva(vcpu->kvm, gpa_to_gfn(gpa)); in vcpu_check_access_key()
895 r = get_guest_storage_key(current->mm, hva, &storage_key); in vcpu_check_access_key()
1018 hva_t hva; in access_guest_page_with_key() local
1023 hva = gfn_to_hva_memslot_prot(slot, gfn, &writable); in access_guest_page_with_key()
1025 if (kvm_is_error_hva(hva)) in access_guest_page_with_key()
1033 hva += offset_in_page(gpa); in access_guest_page_with_key()
1035 rc = copy_to_user_key((void __user *)hva, data, len, access_key); in access_guest_page_with_key()
1037 rc = copy_from_user_key(data, (void __user *)hva, len, access_key); in access_guest_page_with_key()
1195 hva_t hva; in cmpxchg_guest_abs_with_key() local
1201 hva = gfn_to_hva_memslot_prot(slot, gfn, &writable); in cmpxchg_guest_abs_with_key()
1202 if (kvm_is_error_hva(hva)) in cmpxchg_guest_abs_with_key()
1212 hva += offset_in_page(gpa); in cmpxchg_guest_abs_with_key()
1222 ret = cmpxchg_user_key((u8 __user *)hva, &old, *old_addr, new, access_key); in cmpxchg_guest_abs_with_key()
1230 ret = cmpxchg_user_key((u16 __user *)hva, &old, *old_addr, new, access_key); in cmpxchg_guest_abs_with_key()
1238 ret = cmpxchg_user_key((u32 __user *)hva, &old, *old_addr, new, access_key); in cmpxchg_guest_abs_with_key()
1246 ret = cmpxchg_user_key((u64 __user *)hva, &old, *old_addr, new, access_key); in cmpxchg_guest_abs_with_key()
1254 ret = cmpxchg_user_key((__uint128_t __user *)hva, &old, *old_addr, new, access_key); in cmpxchg_guest_abs_with_key()