Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/x86_64/
A 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()
58 static void guest_main(struct kvm_cpuid2 *guest_cpuid) in guest_main() argument
62 test_guest_cpuids(guest_cpuid); in guest_main()
[all …]
/linux/arch/x86/kvm/vmx/
A Dsgx.c428 struct kvm_cpuid_entry2 *guest_cpuid; in sgx_intercept_encls_ecreate() local
434 guest_cpuid = kvm_find_cpuid_entry(vcpu, 0x12, 0); in sgx_intercept_encls_ecreate()
435 if (!guest_cpuid) in sgx_intercept_encls_ecreate()
439 if (guest_cpuid->ebx != ebx || guest_cpuid->edx != edx) in sgx_intercept_encls_ecreate()
442 guest_cpuid = kvm_find_cpuid_entry(vcpu, 0x12, 1); in sgx_intercept_encls_ecreate()
443 if (!guest_cpuid) in sgx_intercept_encls_ecreate()
447 if (guest_cpuid->eax != eax || guest_cpuid->ebx != ebx || in sgx_intercept_encls_ecreate()
448 guest_cpuid->ecx != ecx || guest_cpuid->edx != edx) in sgx_intercept_encls_ecreate()

Completed in 4 milliseconds