| /hypervisor/arch/x86/guest/ |
| A D | vcpuid.c | 330 entry.eax = (entry.eax & ~0x1F) | (vcbm_len - 1U); in set_vcpuid_vcat_10h_subleaf_res() 392 *eax = entry.eax; in guest_cpuid_04h() 829 *eax = 0U; in guest_cpuid_0dh() 847 *eax = 0U; in guest_cpuid_0dh() 869 *eax = 0U; in guest_cpuid_19h() 901 *eax = 0U; in guest_cpuid_80000001h() 916 *eax = 2U; in guest_limit_cpuid() 918 *eax = 0U; in guest_limit_cpuid() 938 *eax = entry->eax; in guest_cpuid() 943 *eax = 0U; in guest_cpuid() [all …]
|
| A D | hyperv.c | 267 entry->eax = 0x31237648U; /* "Hv#1" */ in hyperv_init_vcpuid_entry() 273 entry->eax = 0U; in hyperv_init_vcpuid_entry() 279 entry->eax = CPUID3A_HYPERCALL_MSR | CPUID3A_VP_INDEX_MSR | in hyperv_init_vcpuid_entry() 287 entry->eax = 0U; in hyperv_init_vcpuid_entry() 293 entry->eax = MAX_VCPUS_PER_VM; in hyperv_init_vcpuid_entry() 299 entry->eax = 0U; in hyperv_init_vcpuid_entry() 310 __func__, leaf, subleaf, flags, entry->eax, entry->ebx, entry->ecx, entry->edx); in hyperv_init_vcpuid_entry()
|
| A D | ucode.c | 24 uint32_t eax, ebx, ecx, edx; in get_microcode_version() local 27 cpuid_subleaf(CPUID_FEATURES, 0x0U, &eax, &ebx, &ecx, &edx); in get_microcode_version()
|
| A D | vmx_asm.S | 234 movl $0x1,%eax 245 movl $0x1,%eax 258 movl $0x2,%eax
|
| A D | vmexit.c | 357 uint32_t eax, ebx, ecx, edx; in cpuid_vmexit_handler() local 359 eax = (uint32_t)vcpu_get_gpreg(vcpu, CPU_REG_RAX); in cpuid_vmexit_handler() 363 TRACE_2L(TRACE_VMEXIT_CPUID, (uint64_t)eax, (uint64_t)ecx); in cpuid_vmexit_handler() 364 guest_cpuid(vcpu, &eax, &ebx, &ecx, &edx); in cpuid_vmexit_handler() 365 vcpu_set_gpreg(vcpu, CPU_REG_RAX, (uint64_t)eax); in cpuid_vmexit_handler()
|
| A D | vmsr.c | 608 uint32_t eax, ecx, unused; in get_perf_status() local 614 cpuid_subleaf(0x16U, 0U, &eax, &unused, &ecx, &unused); in get_perf_status() 615 return (uint64_t)(((eax/ecx) & 0xFFU) << 8); in get_perf_status() 623 uint32_t eax = 0x19U, ebx = 0U, ecx = 0U, edx = 0U; in is_iwkey_backup_support() local 625 guest_cpuid(vcpu, &eax, &ebx, &ecx, &edx); in is_iwkey_backup_support() 634 uint32_t eax = 0x6U, ebx = 0U, ecx = 0U, edx = 0U; in is_ecmd_supported() local 636 guest_cpuid(vcpu, &eax, &ebx, &ecx, &edx); in is_ecmd_supported() 637 return (eax & CPUID_EAX_ECMD) == CPUID_EAX_ECMD; in is_ecmd_supported()
|
| /hypervisor/arch/x86/boot/ |
| A D | trampoline.S | 90 movl $0x00000668, %eax 91 mov %eax, %cr4 96 mov (%ebx), %eax 97 mov %eax, %cr3 105 orl $0x00000100, %eax 143 movl $0x0010, %eax 144 mov %eax, %ss 145 mov %eax, %ds 146 mov %eax, %es 147 mov %eax, %fs [all …]
|
| A D | cpu_primary.S | 141 movl %eax, boot_regs(%esi) 157 test $0x400, %eax 171 movl $0x00000668, %eax 172 mov %eax, %cr4 192 orl $0x00000100, %eax 209 movl $jmpbuf_32, %eax 210 addl %esi, %eax 211 addl %esi, (%eax) 212 ljmp *(%eax) 254 movl $0x10,%eax [all …]
|
| /hypervisor/include/arch/x86/asm/lib/ |
| A D | spinlock.h | 69 movl $1, % eax 71 lock xaddl % eax, SYNC_SPINLOCK_HEAD_OFFSET(%rbx) 72 cmpl % eax, SYNC_SPINLOCK_TAIL_OFFSET(%rbx) 76 cmpl % eax, SYNC_SPINLOCK_TAIL_OFFSET(%rbx)
|
| /hypervisor/arch/x86/ |
| A D | cpu_caps.c | 114 uint32_t eax = 0U, ebx = 0U, ecx = 0U, edx = 0U; in disable_host_monitor_wait() local 116 cpuid_subleaf(0x1U, 0x0U, &eax, &ebx, &ecx, &edx); in disable_host_monitor_wait() 130 cpuid_subleaf(CPUID_FEATURES, 0x0U, &eax, &ebx, in disable_host_monitor_wait() 326 uint32_t eax, unused; in init_pcpu_capabilities() local 333 cpuid_subleaf(CPUID_FEATURES, 0x0U, &eax, &unused, in init_pcpu_capabilities() 338 family_id = (eax >> 8U) & 0xfU; in init_pcpu_capabilities() 341 displayfamily += ((eax >> 20U) & 0xffU); in init_pcpu_capabilities() 345 model_id = (eax >> 4U) & 0xfU; in init_pcpu_capabilities() 348 displaymodel += ((eax >> 16U) & 0xfU) << 4U; in init_pcpu_capabilities() 377 cpuid_subleaf(CPUID_EXTEND_ADDRESS_SIZE, 0x0U, &eax, in init_pcpu_capabilities() [all …]
|
| A D | sgx.c | 25 uint32_t eax = 0U, ebx = 0U, ecx = 0U, edx = 0U, type; in get_epc_section() local 28 cpuid_subleaf(CPUID_SGX_LEAF, sec_id + CPUID_SGX_EPC_SUBLEAF_BASE, &eax, &ebx, &ecx, &edx); in get_epc_section() 29 type = eax & CPUID_SGX_EPC_TYPE_MASK; in get_epc_section() 32 ((uint64_t)eax & CPUID_SGX_EPC_LOW_MASK); in get_epc_section()
|
| A D | cpu.c | 543 inline void asm_mwait(uint64_t eax, uint64_t ecx) in asm_mwait() argument 545 asm volatile("mwait\n" : : "a" (eax), "c" (ecx)); in asm_mwait() 571 uint32_t eax, ecx, unused, xsave_area_size; in init_pcpu_xsave() local 597 &eax, in init_pcpu_xsave()
|
| /hypervisor/dm/ |
| A D | vpic.c | 711 *eax = 0x80U | pin; in vpic_read() 713 *eax = 0U; in vpic_read() 718 *eax = i8259->mask; in vpic_read() 722 *eax = i8259->service; in vpic_read() 725 *eax = i8259->request; in vpic_read() 743 val = (uint8_t)*eax; in vpic_write() 786 size_t bytes, uint32_t *eax) in vpic_primary_handler() argument 838 size_t bytes, uint32_t *eax) in vpic_secondary_handler() argument 889 uint32_t *eax) in vpic_elc_handler() argument 903 *eax = vpic->i8259[0].elc; in vpic_elc_handler() [all …]
|
| /hypervisor/include/arch/x86/asm/guest/ |
| A D | vcpuid.h | 17 uint32_t eax; member 29 uint32_t *eax, uint32_t *ebx,
|
| /hypervisor/include/arch/x86/asm/ |
| A D | cpuid.h | 198 uint32_t *eax, uint32_t *ebx, in cpuid_subleaf() argument 202 asm volatile("cpuid":"=a"(*eax), "=b"(*ebx), in cpuid_subleaf()
|
| A D | cpu.h | 767 static inline void asm_loadiwkey(uint32_t eax) in asm_loadiwkey() argument 769 asm volatile(".byte 0xf3, 0x0f, 0x38, 0xdc, 0xd1;": : "a" (eax)); in asm_loadiwkey()
|
| /hypervisor/common/ |
| A D | hypercall.c | 155 uint32_t eax, ebx, ecx, edx; in get_cache_shift() local 158 cpuid_subleaf(0x4U, subleaf, &eax, &ebx, &ecx, &edx); in get_cache_shift() 160 cache_type = eax & 0x1fU; in get_cache_shift() 161 cache_level = (eax >> 5U) & 0x7U; in get_cache_shift() 162 id = (eax >> 14U) & 0xfffU; in get_cache_shift()
|
| /hypervisor/include/debug/ |
| A D | profiling_internal.h | 94 uint32_t eax; member
|
| /hypervisor/debug/ |
| A D | shell.c | 1509 uint32_t eax, ebx, ecx, edx; in shell_cpuid() local 1522 cpuid_subleaf(leaf, subleaf, &eax, &ebx, &ecx, &edx); in shell_cpuid() 1525 leaf, subleaf, eax, ebx, ecx, edx); in shell_cpuid()
|
| A D | profiling.c | 1217 cpuid_subleaf(pcpuid.leaf, pcpuid.subleaf, &pcpuid.eax, in profiling_get_pcpu_id()
|