Lines Matching full:crosvm
21 #include "crosvm.h"
75 * crosvm being halted. in vcpu_thread()
78 fprintf(stderr, "failed to send stop to crosvm\n"); in vcpu_thread()
82 printf("get regs query on crosvm\n"); in vcpu_thread()
85 * The failure mode for this test is that crosvm remains in vcpu_thread()
87 * crosvm_vcpu_[g|s]et_regs() to resume crosvm) and in vcpu_thread()
94 printf("set regs query on crosvm\n"); in vcpu_thread()
100 printf("get sregs query on crosvm\n"); in vcpu_thread()
105 printf("set sregs query on crosvm\n"); in vcpu_thread()
111 printf("get debugregs query on crosvm\n"); in vcpu_thread()
116 printf("set debugregs query on crosvm\n"); in vcpu_thread()
125 fprintf(stderr, "failed to send continue to crosvm\n"); in vcpu_thread()
167 struct crosvm *crosvm; in main() local
168 int ret = crosvm_connect(&crosvm); in main()
170 fprintf(stderr, "failed to connect to crosvm: %d\n", ret); in main()
178 struct crosvm *extra_crosvm; in main()
179 ret = crosvm_new_connection(crosvm, &extra_crosvm); in main()
186 g_kill_evt = crosvm_get_shutdown_eventfd(crosvm); in main()
192 ret = crosvm_reserve_range(crosvm, CROSVM_ADDRESS_SPACE_IOPORT, in main()
199 ret = crosvm_reserve_range(crosvm, CROSVM_ADDRESS_SPACE_IOPORT, in main()
219 ret = crosvm_set_hypercall_hint(crosvm, 1, &hint); in main()
247 ret = crosvm_create_memory(crosvm, mem_fd, 0x1000, 0x1000, 0x1000, false, in main()
250 fprintf(stderr, "failed to create memory in crosvm: %d\n", ret); in main()
259 ret = crosvm_get_vcpu(crosvm, vcpu_count, &vcpus[vcpu_count]); in main()
273 fprintf(stderr, "failed to tell crosvm to start: %d\n", ret); in main()
277 /* Wait for crosvm to request that we exit otherwise we will be killed. */ in main()
281 ret = crosvm_destroy_memory(crosvm, &mem_obj); in main()
283 fprintf(stderr, "failed to destroy memory in crosvm: %d\n", ret); in main()
287 ret = crosvm_set_hypercall_hint(crosvm, 0, NULL); in main()
293 ret = crosvm_reserve_range(crosvm, CROSVM_ADDRESS_SPACE_IOPORT, in main()
300 ret = crosvm_reserve_range(crosvm, CROSVM_ADDRESS_SPACE_IOPORT, in main()