Home
last modified time | relevance | path

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

/Linux-v5.15/tools/testing/selftests/kvm/x86_64/
Dget_cpuid_test.c30 static void test_guest_cpuids(struct kvm_cpuid2 *guest_cpuid) in test_guest_cpuids() argument
35 for (i = 0; i < guest_cpuid->nent; i++) { in test_guest_cpuids()
36 eax = guest_cpuid->entries[i].function; in test_guest_cpuids()
37 ecx = guest_cpuid->entries[i].index; in test_guest_cpuids()
41 GUEST_ASSERT(eax == guest_cpuid->entries[i].eax && in test_guest_cpuids()
42 ebx == guest_cpuid->entries[i].ebx && in test_guest_cpuids()
43 ecx == guest_cpuid->entries[i].ecx && in test_guest_cpuids()
44 edx == guest_cpuid->entries[i].edx); in test_guest_cpuids()
49 static void test_cpuid_40000000(struct kvm_cpuid2 *guest_cpuid) in test_cpuid_40000000() argument
58 static void guest_main(struct kvm_cpuid2 *guest_cpuid) in guest_main() argument
[all …]
/Linux-v5.15/arch/x86/kvm/vmx/
Dsgx.c434 struct kvm_cpuid_entry2 *guest_cpuid; in sgx_intercept_encls_ecreate() local
440 guest_cpuid = kvm_find_cpuid_entry(vcpu, 0x12, 0); in sgx_intercept_encls_ecreate()
441 if (!guest_cpuid) in sgx_intercept_encls_ecreate()
445 if (guest_cpuid->ebx != ebx || guest_cpuid->edx != edx) in sgx_intercept_encls_ecreate()
448 guest_cpuid = kvm_find_cpuid_entry(vcpu, 0x12, 1); in sgx_intercept_encls_ecreate()
449 if (!guest_cpuid) in sgx_intercept_encls_ecreate()
453 if (guest_cpuid->eax != eax || guest_cpuid->ebx != ebx || in sgx_intercept_encls_ecreate()
454 guest_cpuid->ecx != ecx || guest_cpuid->edx != edx) in sgx_intercept_encls_ecreate()