/linux/tools/testing/selftests/kvm/lib/x86_64/ |
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 | 710 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 D | cpuid_test.c | 28 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 D | hyperv_cpuid.c | 44 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 D | hyperv_features.c | 132 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 D | state_test.c | 234 struct kvm_cpuid2 empty_cpuid = {}; in main()
|
/linux/arch/x86/kvm/ |
H A D | cpuid.h | 20 int kvm_dev_ioctl_get_cpuid(struct kvm_cpuid2 *cpuid, 27 struct kvm_cpuid2 *cpuid, 30 struct kvm_cpuid2 *cpuid,
|
H A D | hyperv.h | 193 int kvm_get_hv_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid,
|
H A D | cpuid.c | 535 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 D | x86.c | 4578 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 D | hyperv.c | 2761 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 D | processor.h | 912 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 D | hyperv.h | 358 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 D | kvm.h | 676 #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 D | kvm.h | 676 #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 D | kvm.h | 262 struct kvm_cpuid2 { struct
|
/linux/tools/arch/x86/include/uapi/asm/ |
H A D | kvm.h | 262 struct kvm_cpuid2 { struct
|
/linux/tools/testing/selftests/kvm/include/ |
H A D | kvm_util.h | 56 struct kvm_cpuid2 *cpuid;
|