Lines Matching full:crosvm
23 #include "crosvm.h"
117 static int signal_pause(struct crosvm *crosvm) { in signal_pause() argument
122 return crosvm_pause_vcpus(crosvm, 1, NULL); in signal_pause()
125 static void signal_unpause(struct crosvm *crosvm, bool exit_loop) { in signal_unpause() argument
159 struct crosvm *crosvm; in main() local
160 int ret = crosvm_connect(&crosvm); in main()
162 fprintf(stderr, "failed to connect to crosvm: %d\n", ret); in main()
167 g_kill_evt = crosvm_get_shutdown_eventfd(crosvm); in main()
173 ret = crosvm_reserve_range(crosvm, CROSVM_ADDRESS_SPACE_IOPORT, in main()
202 ret = crosvm_create_memory(crosvm, mem_fd, 0x1000, 0x1000, 0x1000, in main()
205 fprintf(stderr, "failed to create memory in crosvm: %d\n", ret); in main()
211 ret = crosvm_get_vcpu(crosvm, 0, &vcpu); in main()
224 ret = crosvm_start(crosvm); in main()
226 fprintf(stderr, "failed to tell crosvm to start: %d\n", ret); in main()
234 ret = signal_pause(crosvm); in main()
244 ret = signal_pause(crosvm); in main()
250 signal_unpause(crosvm, false); in main()
259 ret = signal_pause(crosvm); in main()
265 signal_unpause(crosvm, true); in main()
267 /* Wait for crosvm to request that we exit otherwise we will be killed. */ in main()
270 ret = crosvm_destroy_memory(crosvm, &mem_obj); in main()
272 fprintf(stderr, "failed to destroy memory in crosvm: %d\n", ret); in main()
276 ret = crosvm_reserve_range(crosvm, CROSVM_ADDRESS_SPACE_IOPORT, in main()