Lines Matching defs:mode

381 			  enum gacc_mode mode)
462 if (ale.fo == 1 && mode == GACC_STORE)
497 enum gacc_mode mode, enum prot_type prot, bool terminate)
547 tec->fsi = mode == GACC_STORE ? FSI_STORE : FSI_FETCH;
567 enum gacc_mode mode, enum prot_type prot)
569 return trans_exc_ending(vcpu, code, gva, ar, mode, prot, false);
573 unsigned long ga, u8 ar, enum gacc_mode mode)
584 if ((mode == GACC_IFETCH) && (psw.as != PSW_BITS_AS_HOME))
598 rc = ar_translation(vcpu, asce, ar, mode);
600 return trans_exc(vcpu, rc, ga, ar, mode, PROT_TYPE_ALC);
617 * @mode: indicates the access mode to be used
634 enum gacc_mode mode, enum prot_type *prot)
782 if (mode == GACC_STORE && dat_protection) {
786 if (mode == GACC_IFETCH && iep_protection && iep) {
816 enum gacc_mode mode, gpa_t gpa)
839 if ((mode == GACC_FETCH || mode == GACC_IFETCH) && !fetch_protected)
844 static bool fetch_prot_override_applicable(struct kvm_vcpu *vcpu, enum gacc_mode mode,
850 if (mode == GACC_FETCH || mode == GACC_IFETCH) {
879 enum gacc_mode mode, union asce asce, gpa_t gpa,
903 if (mode == GACC_FETCH || mode == GACC_IFETCH) {
907 if (fetch_prot_override_applicable(vcpu, mode, asce) &&
926 * @mode: access mode
933 * @mode and state of the @vcpu.
954 const union asce asce, enum gacc_mode mode,
968 if (mode == GACC_STORE && lap_enabled && is_low_address(ga))
969 return trans_exc(vcpu, PGM_PROTECTION, ga, ar, mode,
972 rc = guest_translate(vcpu, ga, &gpa, asce, mode, &prot);
983 return trans_exc(vcpu, rc, ga, ar, mode, prot);
984 rc = vcpu_check_access_key(vcpu, access_key, mode, asce, gpa, ga,
987 return trans_exc(vcpu, rc, ga, ar, mode, PROT_TYPE_KEYC);
997 static int access_guest_page(struct kvm *kvm, enum gacc_mode mode, gpa_t gpa,
1004 if (mode == GACC_STORE)
1012 access_guest_page_with_key(struct kvm *kvm, enum gacc_mode mode, gpa_t gpa,
1031 if (!writable && mode == GACC_STORE)
1034 if (mode == GACC_STORE)
1040 if (mode == GACC_STORE)
1046 unsigned long len, enum gacc_mode mode, u8 access_key)
1054 rc = access_guest_page_with_key(kvm, mode, gpa, data, fragment_len, access_key);
1066 void *data, unsigned long len, enum gacc_mode mode,
1084 rc = get_vcpu_asce(vcpu, &asce, ga, ar, mode);
1093 try_fetch_prot_override = fetch_prot_override_applicable(vcpu, mode, asce);
1108 rc = guest_range_to_gpas(vcpu, ga, ar, gpas, len, asce, mode, 0);
1114 rc = access_guest_page(vcpu->kvm, mode, gpas[idx],
1117 rc = access_guest_page_with_key(vcpu->kvm, mode, gpas[idx],
1121 rc = access_guest_page_with_key(vcpu->kvm, mode, gpas[idx],
1130 bool terminate = (mode == GACC_STORE) && (idx > 0);
1136 rc = trans_exc_ending(vcpu, rc, ga, ar, mode, prot, terminate);
1147 void *data, unsigned long len, enum gacc_mode mode)
1156 rc = access_guest_page(vcpu->kvm, mode, gpa, data, fragment_len);
1279 * @mode: Translation access mode
1289 unsigned long *gpa, enum gacc_mode mode,
1296 rc = get_vcpu_asce(vcpu, &asce, gva, ar, mode);
1299 return guest_range_to_gpas(vcpu, gva, ar, gpa, 1, asce, mode,
1309 * @mode: Translation access mode
1313 unsigned long length, enum gacc_mode mode, u8 access_key)
1318 rc = get_vcpu_asce(vcpu, &asce, gva, ar, mode);
1322 rc = guest_range_to_gpas(vcpu, gva, ar, NULL, length, asce, mode,
1334 * @mode: access mode to test, relevant for storage keys
1338 enum gacc_mode mode, u8 access_key)
1345 rc = vm_check_access_key(kvm, access_key, mode, gpa);