Lines Matching defs:best
138 struct kvm_cpuid_entry2 *best;
145 best = kvm_find_cpuid_entry(vcpu, 0x80000008);
146 if (best) {
147 int vaddr_bits = (best->eax & 0xff00) >> 8;
157 best = kvm_find_cpuid_entry_index(vcpu, 0xd, 0);
158 if (!best)
161 xfeatures = best->eax | ((u64)best->edx << 32);
235 struct kvm_cpuid_entry2 *best;
241 best = kvm_find_cpuid_entry(vcpu, kvm_cpuid.base | KVM_CPUID_FEATURES);
242 if (!best)
246 best->eax &= ~(1 << KVM_FEATURE_PV_UNHALT);
248 return best->eax;
257 struct kvm_cpuid_entry2 *best;
259 best = kvm_find_cpuid_entry_index(vcpu, 0xd, 0);
260 if (!best)
263 return (best->eax | ((u64)best->edx << 32)) & kvm_caps.supported_xcr0;
277 struct kvm_cpuid_entry2 *best;
281 best = kvm_find_cpuid_entry(vcpu, 1);
282 if (best) {
283 kvm_update_feature_runtime(vcpu, best, X86_FEATURE_OSXSAVE,
286 kvm_update_feature_runtime(vcpu, best, X86_FEATURE_APIC,
290 kvm_update_feature_runtime(vcpu, best, X86_FEATURE_MWAIT,
295 best = kvm_find_cpuid_entry_index(vcpu, 7, 0);
296 if (best)
297 kvm_update_feature_runtime(vcpu, best, X86_FEATURE_OSPKE,
301 best = kvm_find_cpuid_entry_index(vcpu, 0xD, 0);
302 if (best)
303 best->ebx = xstate_required_size(vcpu->arch.xcr0, false);
305 best = kvm_find_cpuid_entry_index(vcpu, 0xD, 1);
306 if (best && (cpuid_entry_has(best, X86_FEATURE_XSAVES) ||
307 cpuid_entry_has(best, X86_FEATURE_XSAVEC)))
308 best->ebx = xstate_required_size(vcpu->arch.xcr0, true);
363 struct kvm_cpuid_entry2 *best;
416 best = kvm_find_cpuid_entry(vcpu, 1);
417 if (best && apic) {
418 if (cpuid_entry_has(best, X86_FEATURE_TSC_DEADLINE_TIMER))
455 struct kvm_cpuid_entry2 *best;
457 best = kvm_find_cpuid_entry(vcpu, 0x80000000);
458 if (!best || best->eax < 0x80000008)
460 best = kvm_find_cpuid_entry(vcpu, 0x80000008);
461 if (best)
462 return best->eax & 0xff;
469 struct kvm_cpuid_entry2 *best;
471 best = kvm_find_cpuid_entry(vcpu, 0x80000000);
472 if (!best || best->eax < 0x80000008)
474 best = kvm_find_cpuid_entry(vcpu, 0x80000008);
475 if (best)
476 return (best->eax >> 16) & 0xff;