• Home
  • Raw
  • Download

Lines Matching refs:asce

19 union asce {  union
258 unsigned long asce : 64; /* Address-Space-Control Element */ member
379 static int ar_translation(struct kvm_vcpu *vcpu, union asce *asce, u8 ar, in ar_translation() argument
397 asce->val = vcpu->arch.sie_block->gcr[1]; in ar_translation()
400 asce->val = vcpu->arch.sie_block->gcr[7]; in ar_translation()
464 asce->val = aste.asce; in ar_translation()
554 static int get_vcpu_asce(struct kvm_vcpu *vcpu, union asce *asce, in get_vcpu_asce() argument
561 asce->val = 0; in get_vcpu_asce()
562 asce->r = 1; in get_vcpu_asce()
571 asce->val = vcpu->arch.sie_block->gcr[1]; in get_vcpu_asce()
574 asce->val = vcpu->arch.sie_block->gcr[7]; in get_vcpu_asce()
577 asce->val = vcpu->arch.sie_block->gcr[13]; in get_vcpu_asce()
580 rc = ar_translation(vcpu, asce, ar, mode); in get_vcpu_asce()
615 unsigned long *gpa, const union asce asce, in guest_translate() argument
631 if (asce.r) in guest_translate()
633 ptr = asce.origin * PAGE_SIZE; in guest_translate()
634 switch (asce.dt) { in guest_translate()
636 if (vaddr.rfx01 > asce.tl) in guest_translate()
643 if (vaddr.rsx01 > asce.tl) in guest_translate()
650 if (vaddr.rtx01 > asce.tl) in guest_translate()
657 if (vaddr.sx01 > asce.tl) in guest_translate()
662 switch (asce.dt) { in guest_translate()
710 if (rtte.cr && asce.p && edat2) in guest_translate()
738 if (ste.cs && asce.p) in guest_translate()
785 const union asce asce) in low_address_protection_enabled() argument
792 if (psw_bits(*psw).dat && asce.p) in low_address_protection_enabled()
799 const union asce asce, enum gacc_mode mode) in guest_page_range() argument
805 lap_enabled = low_address_protection_enabled(vcpu, asce); in guest_page_range()
813 rc = guest_translate(vcpu, ga, pages, asce, mode, &prot); in guest_page_range()
838 union asce asce; in access_guest() local
844 rc = get_vcpu_asce(vcpu, &asce, ga, ar, mode); in access_guest()
853 need_ipte_lock = psw_bits(*psw).dat && !asce.r; in access_guest()
856 rc = guest_page_range(vcpu, ga, ar, pages, nr_pages, asce, mode); in access_guest()
909 union asce asce; in guest_translate_address() local
913 rc = get_vcpu_asce(vcpu, &asce, gva, ar, mode); in guest_translate_address()
916 if (is_low_address(gva) && low_address_protection_enabled(vcpu, asce)) { in guest_translate_address()
922 if (psw_bits(*psw).dat && !asce.r) { /* Use DAT? */ in guest_translate_address()
923 rc = guest_translate(vcpu, gva, gpa, asce, mode, &prot); in guest_translate_address()
989 union asce asce; in kvm_s390_shadow_tables() local
998 asce.val = sg->orig_asce; in kvm_s390_shadow_tables()
999 ptr = asce.origin * PAGE_SIZE; in kvm_s390_shadow_tables()
1000 if (asce.r) { in kvm_s390_shadow_tables()
1003 asce.dt = ASCE_TYPE_REGION1; in kvm_s390_shadow_tables()
1005 switch (asce.dt) { in kvm_s390_shadow_tables()
1007 if (vaddr.rfx01 > asce.tl && !*fake) in kvm_s390_shadow_tables()
1013 if (vaddr.rsx01 > asce.tl) in kvm_s390_shadow_tables()
1019 if (vaddr.rtx01 > asce.tl) in kvm_s390_shadow_tables()
1025 if (vaddr.sx01 > asce.tl) in kvm_s390_shadow_tables()
1030 switch (asce.dt) { in kvm_s390_shadow_tables()
1102 if (rtte.cr && asce.p && sg->edat_level >= 2) in kvm_s390_shadow_tables()
1139 if (ste.cs && asce.p) in kvm_s390_shadow_tables()