/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-asid.c | 56 struct pt_asid asid; in from_user_default() local 59 errcode = pt_asid_from_user(&asid, NULL); in from_user_default() 61 ptu_uint_eq(asid.size, sizeof(asid)); in from_user_default() 62 ptu_uint_eq(asid.cr3, pt_asid_no_cr3); in from_user_default() 63 ptu_uint_eq(asid.vmcs, pt_asid_no_vmcs); in from_user_default() 70 struct pt_asid asid, user; in from_user_small() local 75 errcode = pt_asid_from_user(&asid, &user); in from_user_small() 77 ptu_uint_eq(asid.size, sizeof(asid)); in from_user_small() 78 ptu_uint_eq(asid.cr3, pt_asid_no_cr3); in from_user_small() 79 ptu_uint_eq(asid.vmcs, pt_asid_no_vmcs); in from_user_small() [all …]
|
H A D | ptunit-image.c | 109 struct pt_asid asid[3]; member 394 const struct pt_asid *asid, in image_readmem_callback() argument 400 (void) asid; in image_readmem_callback() 462 struct pt_asid asid; in fini() local 465 pt_asid_init(&asid); in fini() 469 errcode = pt_image_add(&image, §ion, &asid, 0x0ull, 0); in fini() 535 struct pt_asid asid; in read_empty() local 539 pt_asid_init(&asid); in read_empty() 543 &asid, 0x1000ull); in read_empty() 557 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_front() [all …]
|
H A D | ptunit-mapped_section.c | 92 static struct ptunit_result asid(void) in asid() function 95 struct pt_asid asid; in asid() local 98 pt_asid_init(&asid); in asid() 99 asid.cr3 = 0xa00000ull; in asid() 100 asid.vmcs = 0xb00000ull; in asid() 102 pt_msec_init(&msec, NULL, &asid, 0x2000ull, 0x100ull, 0x1000ull); in asid() 106 ptu_uint_eq(pasid->cr3, asid.cr3); in asid() 107 ptu_uint_eq(pasid->vmcs, asid.vmcs); in asid() 190 ptu_run(suite, asid); in main()
|
H A D | ptunit-msec_cache.c | 140 const struct pt_asid *asid, uint64_t vaddr) in pt_image_find() argument 146 if (!image || !msec || !asid) in pt_image_find() 228 struct pt_asid asid; in fill_null() local 233 status = pt_msec_cache_fill(NULL, &msec, &image, &asid, 0ull); in fill_null() 236 status = pt_msec_cache_fill(&mcache, NULL, &image, &asid, 0ull); in fill_null() 239 status = pt_msec_cache_fill(&mcache, &msec, NULL, &asid, 0ull); in fill_null() 299 struct pt_asid asid; in fill_nomap() local 305 status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, in fill_nomap() 323 struct pt_asid asid; in fill() local 326 status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, in fill()
|
H A D | ptunit-block_decoder.c | 271 struct pt_asid asid; in asid_null() local 274 errcode = pt_blk_asid(NULL, &asid, sizeof(asid)); in asid_null() 277 errcode = pt_blk_asid(&decoder, NULL, sizeof(asid)); in asid_null()
|
H A D | ptunit-insn_decoder.c | 271 struct pt_asid asid; in asid_null() local 274 errcode = pt_insn_asid(NULL, &asid, sizeof(asid)); in asid_null() 277 errcode = pt_insn_asid(&decoder, NULL, sizeof(asid)); in asid_null()
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_asid.c | 36 int pt_asid_from_user(struct pt_asid *asid, const struct pt_asid *user) in pt_asid_from_user() argument 38 if (!asid) in pt_asid_from_user() 41 pt_asid_init(asid); in pt_asid_from_user() 48 /* Ignore fields in the user's asid we don't know. */ in pt_asid_from_user() 49 if (sizeof(*asid) < size) in pt_asid_from_user() 50 size = sizeof(*asid); in pt_asid_from_user() 52 /* Copy (portions of) the user's asid. */ in pt_asid_from_user() 53 memcpy(asid, user, size); in pt_asid_from_user() 56 asid->size = sizeof(*asid); in pt_asid_from_user() 62 int pt_asid_to_user(struct pt_asid *user, const struct pt_asid *asid, in pt_asid_to_user() argument [all …]
|
H A D | pt_image.c | 59 const struct pt_asid *asid, in pt_mk_section_list() argument 77 pt_msec_init(&list->section, section, asid, vaddr, offset, size); in pt_mk_section_list() 156 const struct pt_asid *asid, uint64_t vaddr, int isid) in pt_image_add() argument 169 next = pt_mk_section_list(section, asid, begin, 0ull, size, isid); in pt_image_add() 189 errcode = pt_asid_match(masid, asid); in pt_image_add() 268 const struct pt_asid *asid, uint64_t vaddr) in pt_image_remove() argument 287 errcode = pt_asid_match(masid, asid); in pt_image_remove() 312 struct pt_asid asid; in pt_image_add_file() local 318 errcode = pt_asid_from_user(&asid, uasid); in pt_image_add_file() 327 errcode = pt_image_add(image, section, &asid, vaddr, 0); in pt_image_add_file() [all …]
|
H A D | pt_insn.c | 229 const struct pt_asid *asid) in pt_insn_decode_retry() argument 247 size = pt_image_read(image, &isid, &insn->raw[isize], remaining, asid, in pt_insn_decode_retry() 289 return pt_insn_decode_retry(insn, iext, image, asid); in pt_insn_decode_retry() 310 struct pt_image *image, const struct pt_asid *asid) in pt_insn_decode() argument 319 asid, insn->ip); in pt_insn_decode() 339 return pt_insn_decode_retry(insn, iext, image, asid); in pt_insn_decode() 347 const struct pt_asid *asid, size_t steps) in pt_insn_range_is_contiguous() argument 363 errcode = pt_insn_decode(&insn, &iext, image, asid); in pt_insn_range_is_contiguous()
|
H A D | pt_insn_decoder.c | 63 pt_asid_init(&decoder->asid); in pt_insn_reset() 434 int pt_insn_asid(const struct pt_insn_decoder *decoder, struct pt_asid *asid, in pt_insn_asid() argument 437 if (!decoder || !asid) in pt_insn_asid() 440 return pt_asid_to_user(asid, &decoder->asid, size); in pt_insn_asid() 479 errcode = pt_insn_decode(&insn, &iext, decoder->image, &decoder->asid); in check_erratum_skd022() 990 &decoder->asid, bdm64_max_steps); in handle_erratum_bdm64() 1233 &decoder->asid); in pt_insn_decode_cached() 1241 &decoder->asid); in pt_insn_decode_cached() 1255 &decoder->asid); in pt_insn_decode_cached() 1282 &decoder->asid, ip); in pt_insn_msec_lookup() [all …]
|
H A D | pt_msec_cache.c | 101 struct pt_image *image, const struct pt_asid *asid, in pt_msec_cache_fill() argument 117 isid = pt_image_find(image, msec, asid, vaddr); in pt_msec_cache_fill()
|
/freebsd/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_image.h | 80 * Add @section identified by @isid to @image at @vaddr in @asid. If @section 86 * Returns -pte_internal if @image, @section, or @asid is NULL. 89 const struct pt_asid *asid, uint64_t vaddr, int isid); 94 * Returns -pte_internal if @image, @section, or @asid is NULL. 98 const struct pt_asid *asid, uint64_t vaddr); 102 * Reads at most @size bytes from @image at @addr in @asid into @buffer. 105 * Returns -pte_internal if @image, @isid, @buffer, or @asid is NULL. 109 uint16_t size, const struct pt_asid *asid, 114 * Find the section containing @vaddr in @asid and provide it in @msec. On 119 * Returns -pte_internal if @image, @msec, or @asid is NULL. [all …]
|
H A D | pt_asid.h | 37 /* Read an asid provided by our user. 39 * Translate a user-provided asid in @user into @asid. This uses default values 47 * Returns -pte_internal, if @asid is NULL. 49 extern int pt_asid_from_user(struct pt_asid *asid, const struct pt_asid *user); 51 /* Provide an asid to the user. 53 * Translate @asid into a potentially older or newer version in @user. 56 * Returns -pte_internal, if @user or @asid is NULL. 59 extern int pt_asid_to_user(struct pt_asid *user, const struct pt_asid *asid,
|
H A D | pt_mapped_section.h | 44 struct pt_asid asid; member 67 const struct pt_asid *asid, in pt_msec_init() argument 78 if (asid) in pt_msec_init() 79 msec->asid = *asid; in pt_msec_init() 81 pt_asid_init(&msec->asid); in pt_msec_init() 142 return &msec->asid; in pt_msec_asid() 161 * The caller must check @msec->asid.
|
H A D | pt_msec_cache.h | 68 * @*pmsec->asid, provide a pointer to the cached section in @pmsec and return 81 * Look up @vaddr in @asid in @image and cache as well as provide the found 93 const struct pt_asid *asid, uint64_t vaddr);
|
H A D | pt_insn.h | 196 struct pt_image *image, const struct pt_asid *asid); 200 * Try to proceed from IP @begin to IP @end in @asid without using trace. 209 const struct pt_asid *asid,
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | v3_asid.c | 113 ASIdentifiers *asid = ext; in i2r_ASIdentifiers() local 114 return (i2r_ASIdentifierChoice(out, asid->asnum, indent, in i2r_ASIdentifiers() 116 i2r_ASIdentifierChoice(out, asid->rdi, indent, in i2r_ASIdentifiers() 154 int X509v3_asid_add_inherit(ASIdentifiers *asid, int which) in X509v3_asid_add_inherit() argument 157 if (asid == NULL) in X509v3_asid_add_inherit() 161 choice = &asid->asnum; in X509v3_asid_add_inherit() 164 choice = &asid->rdi; in X509v3_asid_add_inherit() 185 int X509v3_asid_add_id_or_range(ASIdentifiers *asid, in X509v3_asid_add_id_or_range() argument 190 if (asid == NULL) in X509v3_asid_add_id_or_range() 194 choice = &asid->asnum; in X509v3_asid_add_id_or_range() [all …]
|
/freebsd/sys/amd64/vmm/amd/ |
H A D | svm.c | 86 #define AMD_CPUID_SVM_FLUSH_BY_ASID BIT(6) /* Flush by ASID */ 123 /* Current ASID generation for each host cpu */ 124 static struct asid asid[MAXCPU]; variable 263 * The next ASID allocation will rollover both 'gen' and 'num' in svm_modinit() 266 asid[cpu].gen = ~0UL; in svm_modinit() 267 asid[cpu].num = nasid - 1; in svm_modinit() 524 * The ASID will be set to a non-zero value just before VMRUN. in vmcb_init() 526 ctrl->asid = 0; in vmcb_init() 1939 * The TLB entries associated with the vcpu's ASID are not valid in svm_pmap_activate() 1942 * 1. The vcpu's ASID generation is different than the host cpu's in svm_pmap_activate() [all …]
|
H A D | svm_softc.h | 45 struct asid { struct 60 struct asid asid; member
|
/freebsd/sys/arm64/include/ |
H A D | pmap.h | 88 long pm_cookie; /* encodes the pmap's ASID */ 89 struct asid_set *pm_asid_set; /* The ASID/VMID set to use */ 120 #define ASID_TO_OPERAND(asid) ({ \ argument 121 KASSERT((asid) != -1, ("invalid ASID")); \ 122 (uint64_t)(asid) << TTBR_ASID_SHIFT; \
|
/freebsd/sys/arm64/iommu/ |
H A D | smmu.c | 50 * level 0 of page tables, ASID, etc. 486 cmd[0] |= (uint64_t)entry->tlbi.asid << TLBI_0_ASID_S; in make_cmd() 498 cmd[0] |= (uint64_t)entry->tlbi.asid << TLBI_0_ASID_S; in make_cmd() 648 smmu_tlbi_asid(struct smmu_softc *sc, uint16_t asid) in smmu_tlbi_asid() argument 652 /* Invalidate TLB for an ASID. */ in smmu_tlbi_asid() 654 cmd.tlbi.asid = asid; in smmu_tlbi_asid() 660 smmu_tlbi_va(struct smmu_softc *sc, vm_offset_t va, uint16_t asid) in smmu_tlbi_va() argument 666 cmd.tlbi.asid = asid; in smmu_tlbi_va() 859 val |= (uint64_t)domain->asid << CD0_ASID_S; in smmu_init_cd() 1425 device_printf(sc->dev, "ASID bits %d\n", sc->asid_bits); in smmu_check_features() [all …]
|
/freebsd/contrib/processor-trace/libipt/include/ |
H A D | intel-pt.h | 1681 static inline void pt_asid_init(struct pt_asid *asid) in pt_asid_init() argument 1683 asid->size = sizeof(*asid); in pt_asid_init() 1684 asid->cr3 = pt_asid_no_cr3; in pt_asid_init() 1685 asid->vmcs = pt_asid_no_vmcs; in pt_asid_init() 1797 * loaded at the virtual address \@vaddr in the address space \@asid. 1799 * The \@asid may be NULL or (partially) invalid. In that case only the valid 1816 const struct pt_asid *asid, 1821 * Add the section from \@iscache identified by \@isid in address space \@asid. 1832 int isid, const struct pt_asid *asid); 1849 * Removes all sections loaded from \@filename from the address space \@asid. [all …]
|
H A D | intel-pt.h.in | 1681 static inline void pt_asid_init(struct pt_asid *asid) argument 1683 asid->size = sizeof(*asid); 1684 asid->cr3 = pt_asid_no_cr3; 1685 asid->vmcs = pt_asid_no_vmcs; 1797 * loaded at the virtual address \@vaddr in the address space \@asid. 1799 * The \@asid may be NULL or (partially) invalid. In that case only the valid 1816 const struct pt_asid *asid, 1821 * Add the section from \@iscache identified by \@isid in address space \@asid. 1832 int isid, const struct pt_asid *asid); 1849 * Removes all sections loaded from \@filename from the address space \@asid. [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | sbi.c | 246 u_long asid) in sbi_hsm_hart_start() 254 size, asid); in sbi_hsm_hart_stop() 258 (uint64_t)hart_mask, start, size, asid); 227 sbi_remote_sfence_vma_asid(const u_long * hart_mask,u_long start,u_long size,u_long asid) sbi_remote_sfence_vma_asid() argument
|
/freebsd/sys/riscv/vmm/ |
H A D | vmm_sbi.c | 68 uint64_t asid __unused; in vmm_sbi_handle_rfnc() 75 asid = hypctx->guest_regs.hyp_a[4]; in vmm_sbi_handle_rfnc()
|