Lines Matching refs:best
137 struct kvm_cpuid_entry2 *best;
144 best = cpuid_entry2_find(entries, nent, 0x80000008,
146 if (best) {
147 int vaddr_bits = (best->eax & 0xff00) >> 8;
157 best = cpuid_entry2_find(entries, nent, 0xd, 0);
158 if (!best)
161 xfeatures = best->eax | ((u64)best->edx << 32);
240 struct kvm_cpuid_entry2 *best = kvm_find_kvm_cpuid_features(vcpu);
246 if (best)
247 vcpu->arch.pv_cpuid.features = best->eax;
256 struct kvm_cpuid_entry2 *best;
258 best = cpuid_entry2_find(entries, nent, 0xd, 0);
259 if (!best)
262 return (best->eax | ((u64)best->edx << 32)) & kvm_caps.supported_xcr0;
268 struct kvm_cpuid_entry2 *best;
270 best = cpuid_entry2_find(entries, nent, 1, KVM_CPUID_INDEX_NOT_SIGNIFICANT);
271 if (best) {
274 cpuid_entry_change(best, X86_FEATURE_OSXSAVE,
277 cpuid_entry_change(best, X86_FEATURE_APIC,
281 best = cpuid_entry2_find(entries, nent, 7, 0);
282 if (best && boot_cpu_has(X86_FEATURE_PKU) && best->function == 0x7)
283 cpuid_entry_change(best, X86_FEATURE_OSPKE,
286 best = cpuid_entry2_find(entries, nent, 0xD, 0);
287 if (best)
288 best->ebx = xstate_required_size(vcpu->arch.xcr0, false);
290 best = cpuid_entry2_find(entries, nent, 0xD, 1);
291 if (best && (cpuid_entry_has(best, X86_FEATURE_XSAVES) ||
292 cpuid_entry_has(best, X86_FEATURE_XSAVEC)))
293 best->ebx = xstate_required_size(vcpu->arch.xcr0, true);
295 best = __kvm_find_kvm_cpuid_features(vcpu, entries, nent);
296 if (kvm_hlt_in_guest(vcpu->kvm) && best &&
297 (best->eax & (1 << KVM_FEATURE_PV_UNHALT)))
298 best->eax &= ~(1 << KVM_FEATURE_PV_UNHALT);
301 best = cpuid_entry2_find(entries, nent, 0x1, KVM_CPUID_INDEX_NOT_SIGNIFICANT);
302 if (best)
303 cpuid_entry_change(best, X86_FEATURE_MWAIT,
327 struct kvm_cpuid_entry2 *best;
350 best = kvm_find_cpuid_entry(vcpu, 1);
351 if (best && apic) {
352 if (cpuid_entry_has(best, X86_FEATURE_TSC_DEADLINE_TIMER))
387 struct kvm_cpuid_entry2 *best;
389 best = kvm_find_cpuid_entry(vcpu, 0x80000000);
390 if (!best || best->eax < 0x80000008)
392 best = kvm_find_cpuid_entry(vcpu, 0x80000008);
393 if (best)
394 return best->eax & 0xff;