Lines Matching full:crosvm
13 #include "crosvm.h"
15 typedef int (*crosvm_function)(struct crosvm*, uint32_t,
22 crosvm_function crosvm; member
26 int test_cpuid(void* crosvm, union cpuid_function funct, const char* name) { in test_cpuid() argument
29 int ret = funct.crosvm(crosvm, 1, cpuids, &n_entries); in test_cpuid()
36 ret = funct.crosvm(crosvm, 100, cpuids, &n_entries); in test_cpuid()
58 struct crosvm* crosvm = NULL; in main() local
59 int ret = crosvm_connect(&crosvm); in main()
61 fprintf(stderr, "failed to connect to crosvm: %d\n", ret); in main()
66 ret = crosvm_get_vcpu(crosvm, 0, &vcpu); in main()
73 funct.crosvm = crosvm_get_supported_cpuid; in main()
74 if (test_cpuid(crosvm, funct, "crosvm_get_supported_cpuid")) { in main()
77 funct.crosvm = crosvm_get_emulated_cpuid; in main()
78 if (test_cpuid(crosvm, funct, "crosvm_get_emulated_cpuid")) { in main()
82 ret = crosvm_start(crosvm); in main()