Lines Matching defs:eax

42 		        u32 eax, ebx, ecx, edx, offset;
43 cpuid_count(0xD, feature_bit, &eax, &ebx, &ecx, &edx);
45 ret = max(ret, offset + eax);
84 int vaddr_bits = (best->eax & 0xff00) >> 8;
104 vcpu->arch.pv_cpuid.features = best->eax;
138 (best->eax & (1 << KVM_FEATURE_PV_UNHALT)))
139 best->eax &= ~(1 << KVM_FEATURE_PV_UNHALT);
170 (best->eax | ((u64)best->edx << 32)) & supported_xcr0;
216 if (!best || best->eax < 0x80000008)
220 return best->eax & 0xff;
250 e2[i].eax = e[i].eax;
342 &entry.eax, &entry.ebx, &entry.ecx, &entry.edx);
538 &entry->eax, &entry->ebx, &entry->ecx, &entry->edx);
574 entry->eax = 7;
583 entry->eax = 0;
611 entry->eax = min(entry->eax, 0x1fU);
633 WARN_ON_ONCE((entry->eax & 0xff) > 1);
642 for (i = 1; entry->eax & 0x1f; ++i) {
649 entry->eax = 0x4; /* allow ARAT */
656 entry->eax = min(entry->eax, 1u);
662 if (entry->eax == 1) {
675 union cpuid10_eax eax;
679 entry->eax = entry->ebx = entry->ecx = entry->edx = 0;
692 eax.split.version_id = min(cap.version, 2);
693 eax.split.num_counters = cap.num_counters_gp;
694 eax.split.bit_width = cap.bit_width_gp;
695 eax.split.mask_length = cap.events_mask_len;
704 entry->eax = eax.full;
716 entry->eax = entry->ebx = entry->ecx = 0;
719 entry->eax &= supported_xcr0;
731 if (entry->eax & (F(XSAVES)|F(XSAVEC)))
762 if (WARN_ON_ONCE(!entry->eax || (entry->ecx & 0x1) != s_state)) {
772 entry->eax = entry->ebx = entry->ecx = entry->edx = 0;
776 for (i = 1, max_idx = entry->eax; i <= max_idx; ++i) {
784 entry->eax = KVM_CPUID_FEATURES;
791 entry->eax = (1 << KVM_FEATURE_CLOCKSOURCE) |
806 entry->eax |= (1 << KVM_FEATURE_STEAL_TIME);
813 entry->eax = min(entry->eax, 0x8000001f);
829 entry->eax = entry->ebx = entry->ecx = 0;
832 unsigned g_phys_as = (entry->eax >> 16) & 0xff;
833 unsigned virt_as = max((entry->eax >> 8) & 0xff, 48U);
834 unsigned phys_as = entry->eax & 0xff;
844 entry->eax = g_phys_as | (virt_as << 8);
852 entry->eax = entry->ebx = entry->ecx = entry->edx = 0;
855 entry->eax = 1; /* SVM revision 1 */
865 entry->eax &= GENMASK(2, 0);
870 entry->eax = entry->ebx = entry->ecx = 0;
876 entry->eax = entry->ebx = entry->ecx = entry->edx = 0;
881 entry->eax = min(entry->eax, 0xC0000004);
892 entry->eax = entry->ebx = entry->ecx = entry->edx = 0;
929 limit = array->entries[array->nent - 1].eax;
1067 if (class && function <= class->eax)
1076 *fn_ptr = basic->eax;
1083 return kvm_find_cpuid_entry(vcpu, basic->eax, index);
1086 bool kvm_cpuid(struct kvm_vcpu *vcpu, u32 *eax, u32 *ebx,
1089 u32 orig_function = *eax, function = *eax, index = *ecx;
1102 *eax = entry->eax;
1113 *eax = *ebx = *ecx = *edx = 0;
1129 trace_kvm_cpuid(orig_function, index, *eax, *ebx, *ecx, *edx, exact,
1137 u32 eax, ebx, ecx, edx;
1142 eax = kvm_rax_read(vcpu);
1144 kvm_cpuid(vcpu, &eax, &ebx, &ecx, &edx, false);
1145 kvm_rax_write(vcpu, eax);