Home
last modified time | relevance | path

Searched refs:kvm_cpu_caps (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/arch/x86/kvm/
Dcpuid.h11 extern u32 kvm_cpu_caps[NR_KVM_CPU_CAPS] __read_mostly;
71 BUILD_BUG_ON(leaf >= ARRAY_SIZE(kvm_cpu_caps)); in cpuid_entry_override()
72 *reg = kvm_cpu_caps[leaf]; in cpuid_entry_override()
196 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
204 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
212 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()
Dcpuid.c33 u32 kvm_cpu_caps[NR_KVM_CPU_CAPS] __read_mostly; variable
34 EXPORT_SYMBOL_GPL(kvm_cpu_caps);
542 kvm_cpu_caps[leaf] &= *__cpuid_entry_get_reg(&entry, cpuid.reg); in __kvm_cpu_cap_mask()
551 kvm_cpu_caps[leaf] = mask; in kvm_cpu_cap_init_scattered()
561 kvm_cpu_caps[leaf] &= mask; in kvm_cpu_cap_mask()
577 memset(kvm_cpu_caps, 0, sizeof(kvm_cpu_caps)); in kvm_set_cpu_caps()
579 BUILD_BUG_ON(sizeof(kvm_cpu_caps) - (NKVMCAPINTS * sizeof(*kvm_cpu_caps)) > in kvm_set_cpu_caps()
582 memcpy(&kvm_cpu_caps, &boot_cpu_data.x86_capability, in kvm_set_cpu_caps()
583 sizeof(kvm_cpu_caps) - (NKVMCAPINTS * sizeof(*kvm_cpu_caps))); in kvm_set_cpu_caps()