Searched refs:kvm_cpuid2 (Results 1 – 11 of 11) sorted by relevance
| /linux/tools/testing/selftests/kvm/lib/x86/ |
| H A D | hyperv.c | 11 const struct kvm_cpuid2 *kvm_get_supported_hv_cpuid(void) in kvm_get_supported_hv_cpuid() 13 static struct kvm_cpuid2 *cpuid; in kvm_get_supported_hv_cpuid() 30 static struct kvm_cpuid2 *cpuid_full; in vcpu_set_hv_cpuid() 31 const struct kvm_cpuid2 *cpuid_sys, *cpuid_hv; in vcpu_set_hv_cpuid() 61 const struct kvm_cpuid2 *vcpu_get_supported_hv_cpuid(struct kvm_vcpu *vcpu) in vcpu_get_supported_hv_cpuid() 63 struct kvm_cpuid2 *cpuid = allocate_kvm_cpuid2(MAX_NR_CPUID_ENTRIES); in vcpu_get_supported_hv_cpuid()
|
| H A D | processor.c | 906 const struct kvm_cpuid2 *kvm_get_supported_cpuid(void) in __kvm_cpu_has() 917 (struct kvm_cpuid2 *)kvm_supported_cpuid); in __kvm_cpu_has() 923 static u32 __kvm_cpu_has(const struct kvm_cpuid2 *cpuid, in __kvm_cpu_has() 945 bool kvm_cpuid_has(const struct kvm_cpuid2 *cpuid, in kvm_get_feature_msr() 952 u32 kvm_cpuid_property(const struct kvm_cpuid2 *cpuid, in kvm_get_feature_msr() 1016 void vcpu_init_cpuid(struct kvm_vcpu *vcpu, const struct kvm_cpuid2 *cpuid) in vcpu_set_cpuid_property() 1342 const struct kvm_cpuid_entry2 *get_cpuid_entry(const struct kvm_cpuid2 *cpuid,
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | cpuid_test.c | 27 static void test_guest_cpuids(struct kvm_cpuid2 *guest_cpuid) in test_guest_cpuids() 45 static void guest_main(struct kvm_cpuid2 *guest_cpuid) in guest_main() 83 static void compare_cpuids(const struct kvm_cpuid2 *cpuid1, in compare_cpuids() 84 const struct kvm_cpuid2 *cpuid2) in compare_cpuids() 143 struct kvm_cpuid2 *vcpu_alloc_cpuid(struct kvm_vm *vm, gva_t *p_gva, struct kvm_cpuid2 *cpuid) in vcpu_alloc_cpuid() 147 struct kvm_cpuid2 *guest_cpuids = addr_gva2hva(vm, gva); in vcpu_alloc_cpuid() 200 struct kvm_cpuid2 *cpuid = allocate_kvm_cpuid2(vcpu->cpuid->nent + 1); in test_get_cpuid2()
|
| H A D | hyperv_cpuid.c | 28 const struct kvm_cpuid2 *hv_cpuid_entries; in test_hv_cpuid() 117 static struct kvm_cpuid2 cpuid = {.nent = 0}; in test_hv_cpuid_e2big()
|
| H A D | hyperv_features.c | 133 struct kvm_cpuid2 *prev_cpuid = NULL; in guest_test_msrs_access() 526 struct kvm_cpuid2 *prev_cpuid = NULL; in guest_test_hcalls_access()
|
| H A D | state_test.c | 255 struct kvm_cpuid2 empty_cpuid = {}; in check_nested_state()
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 1023 const struct kvm_cpuid_entry2 *get_cpuid_entry(const struct kvm_cpuid2 *cpuid, 1025 const struct kvm_cpuid2 *kvm_get_supported_cpuid(void); in kvm_cpu_supported_xcr0() 1042 bool kvm_cpuid_has(const struct kvm_cpuid2 *cpuid, 1050 u32 kvm_cpuid_property(const struct kvm_cpuid2 *cpuid, in allocate_kvm_cpuid2() 1103 return sizeof(struct kvm_cpuid2) + 1108 * Allocate a "struct kvm_cpuid2* instance, with the 0-length arrary of 1112 static inline struct kvm_cpuid2 *allocate_kvm_cpuid2(int nr_entries) in vcpu_cpuid_has() 1114 struct kvm_cpuid2 *cpuid; in vcpu_cpuid_has() 1117 TEST_ASSERT(cpuid, "-ENOMEM when allocating kvm_cpuid2"); in vcpu_cpuid_has() 1124 void vcpu_init_cpuid(struct kvm_vcpu *vcpu, const struct kvm_cpuid2 *cpui [all...] |
| H A D | hyperv.h | 355 const struct kvm_cpuid2 *kvm_get_supported_hv_cpuid(void); 356 const struct kvm_cpuid2 *vcpu_get_supported_hv_cpuid(struct kvm_vcpu *vcpu);
|
| /linux/tools/include/uapi/linux/ |
| H A D | kvm.h | 729 #define KVM_GET_SUPPORTED_CPUID _IOWR(KVMIO, 0x05, struct kvm_cpuid2) 730 #define KVM_GET_EMULATED_CPUID _IOWR(KVMIO, 0x09, struct kvm_cpuid2) 1371 #define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2) 1372 #define KVM_GET_CPUID2 _IOWR(KVMIO, 0x91, struct kvm_cpuid2) 1461 #define KVM_GET_SUPPORTED_HV_CPUID _IOWR(KVMIO, 0xc1, struct kvm_cpuid2)
|
| /linux/tools/arch/x86/include/uapi/asm/ |
| H A D | kvm.h | 267 struct kvm_cpuid2 { struct 1019 struct kvm_cpuid2 cpuid; 1042 struct kvm_cpuid2 cpuid;
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_util.h | 66 struct kvm_cpuid2 *cpuid;
|