Home
last modified time | relevance | path

Searched refs:kvm_cpuid2 (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dhyperv.c11 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 Dprocessor.c710 const struct kvm_cpuid2 *kvm_get_supported_cpuid(void) in kvm_get_supported_cpuid()
721 (struct kvm_cpuid2 *)kvm_supported_cpuid); in kvm_get_supported_cpuid()
727 static uint32_t __kvm_cpu_has(const struct kvm_cpuid2 *cpuid, in __kvm_cpu_has()
749 bool kvm_cpuid_has(const struct kvm_cpuid2 *cpuid, in kvm_cpuid_has()
756 uint32_t kvm_cpuid_property(const struct kvm_cpuid2 *cpuid, in kvm_cpuid_property()
820 void vcpu_init_cpuid(struct kvm_vcpu *vcpu, const struct kvm_cpuid2 *cpuid) in vcpu_init_cpuid()
1146 const struct kvm_cpuid_entry2 *get_cpuid_entry(const struct kvm_cpuid2 *cpuid, in get_cpuid_entry()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dcpuid_test.c28 static void test_guest_cpuids(struct kvm_cpuid2 *guest_cpuid) in test_guest_cpuids()
46 static void guest_main(struct kvm_cpuid2 *guest_cpuid) in guest_main()
72 static void compare_cpuids(const struct kvm_cpuid2 *cpuid1, in compare_cpuids()
73 const struct kvm_cpuid2 *cpuid2) in compare_cpuids()
126 struct kvm_cpuid2 *vcpu_alloc_cpuid(struct kvm_vm *vm, vm_vaddr_t *p_gva, struct kvm_cpuid2 *cpuid) in vcpu_alloc_cpuid()
130 struct kvm_cpuid2 *guest_cpuids = addr_gva2hva(vm, gva); in vcpu_alloc_cpuid()
168 struct kvm_cpuid2 *cpuid = allocate_kvm_cpuid2(vcpu->cpuid->nent + 1); in test_get_cpuid2()
H A Dhyperv_cpuid.c44 static void test_hv_cpuid(const struct kvm_cpuid2 *hv_cpuid_entries, in test_hv_cpuid()
116 static struct kvm_cpuid2 cpuid = {.nent = 0}; in test_hv_cpuid_e2big()
132 const struct kvm_cpuid2 *hv_cpuid_entries; in main()
H A Dhyperv_features.c132 struct kvm_cpuid2 *prev_cpuid = NULL; in guest_test_msrs_access()
521 struct kvm_cpuid2 *prev_cpuid = NULL; in guest_test_hcalls_access()
H A Dstate_test.c234 struct kvm_cpuid2 empty_cpuid = {}; in main()
/linux/arch/x86/kvm/
H A Dcpuid.h20 int kvm_dev_ioctl_get_cpuid(struct kvm_cpuid2 *cpuid,
27 struct kvm_cpuid2 *cpuid,
30 struct kvm_cpuid2 *cpuid,
H A Dhyperv.h193 int kvm_get_hv_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid,
H A Dcpuid.c535 struct kvm_cpuid2 *cpuid, in kvm_vcpu_ioctl_set_cpuid2()
558 struct kvm_cpuid2 *cpuid, in kvm_vcpu_ioctl_get_cpuid2()
1473 int kvm_dev_ioctl_get_cpuid(struct kvm_cpuid2 *cpuid, in kvm_dev_ioctl_get_cpuid()
H A Dx86.c4578 struct kvm_cpuid2 __user *cpuid_arg) in kvm_ioctl_get_supported_hv_cpuid()
4580 struct kvm_cpuid2 cpuid; in kvm_ioctl_get_supported_hv_cpuid()
4894 struct kvm_cpuid2 __user *cpuid_arg = argp; in kvm_arch_dev_ioctl()
4895 struct kvm_cpuid2 cpuid; in kvm_arch_dev_ioctl()
5933 struct kvm_cpuid2 __user *cpuid_arg = argp; in kvm_arch_vcpu_ioctl()
5934 struct kvm_cpuid2 cpuid; in kvm_arch_vcpu_ioctl()
5944 struct kvm_cpuid2 __user *cpuid_arg = argp; in kvm_arch_vcpu_ioctl()
5945 struct kvm_cpuid2 cpuid; in kvm_arch_vcpu_ioctl()
H A Dhyperv.c2761 int kvm_get_hv_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid, in kvm_get_hv_cpuid()
/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h912 const struct kvm_cpuid_entry2 *get_cpuid_entry(const struct kvm_cpuid2 *cpuid,
914 const struct kvm_cpuid2 *kvm_get_supported_cpuid(void);
931 bool kvm_cpuid_has(const struct kvm_cpuid2 *cpuid,
939 uint32_t kvm_cpuid_property(const struct kvm_cpuid2 *cpuid,
992 return sizeof(struct kvm_cpuid2) + in kvm_cpuid2_size()
1001 static inline struct kvm_cpuid2 *allocate_kvm_cpuid2(int nr_entries) in allocate_kvm_cpuid2()
1003 struct kvm_cpuid2 *cpuid; in allocate_kvm_cpuid2()
1013 void vcpu_init_cpuid(struct kvm_vcpu *vcpu, const struct kvm_cpuid2 *cpuid);
H A Dhyperv.h358 const struct kvm_cpuid2 *kvm_get_supported_hv_cpuid(void);
359 const struct kvm_cpuid2 *vcpu_get_supported_hv_cpuid(struct kvm_vcpu *vcpu);
/linux/include/uapi/linux/
H A Dkvm.h676 #define KVM_GET_SUPPORTED_CPUID _IOWR(KVMIO, 0x05, struct kvm_cpuid2)
677 #define KVM_GET_EMULATED_CPUID _IOWR(KVMIO, 0x09, struct kvm_cpuid2)
1280 #define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
1281 #define KVM_GET_CPUID2 _IOWR(KVMIO, 0x91, struct kvm_cpuid2)
1370 #define KVM_GET_SUPPORTED_HV_CPUID _IOWR(KVMIO, 0xc1, struct kvm_cpuid2)
/linux/tools/include/uapi/linux/
H A Dkvm.h676 #define KVM_GET_SUPPORTED_CPUID _IOWR(KVMIO, 0x05, struct kvm_cpuid2)
677 #define KVM_GET_EMULATED_CPUID _IOWR(KVMIO, 0x09, struct kvm_cpuid2)
1280 #define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
1281 #define KVM_GET_CPUID2 _IOWR(KVMIO, 0x91, struct kvm_cpuid2)
1370 #define KVM_GET_SUPPORTED_HV_CPUID _IOWR(KVMIO, 0xc1, struct kvm_cpuid2)
/linux/arch/x86/include/uapi/asm/
H A Dkvm.h262 struct kvm_cpuid2 { struct
/linux/tools/arch/x86/include/uapi/asm/
H A Dkvm.h262 struct kvm_cpuid2 { struct
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util.h56 struct kvm_cpuid2 *cpuid;