Home | History | Annotate | Download | only in libnvmm

Lines Matching defs:mach

73 reset_machine(struct nvmm_machine *mach, struct nvmm_vcpu *vcpu)
120 if (nvmm_vcpu_setstate(mach, vcpu, NVMM_X64_STATE_ALL) == -1)
125 map_pages(struct nvmm_machine *mach)
139 if (nvmm_hva_map(mach, (uintptr_t)instbuf, PAGE_SIZE) == -1)
141 if (nvmm_hva_map(mach, (uintptr_t)databuf, PAGE_SIZE) == -1)
143 ret = nvmm_gpa_map(mach, (uintptr_t)instbuf, 0x2000, PAGE_SIZE,
147 ret = nvmm_gpa_map(mach, (uintptr_t)databuf, 0x1000, PAGE_SIZE,
169 if (nvmm_hva_map(mach, (uintptr_t)L4, PAGE_SIZE) == -1)
171 if (nvmm_hva_map(mach, (uintptr_t)L3, PAGE_SIZE) == -1)
173 if (nvmm_hva_map(mach, (uintptr_t)L2, PAGE_SIZE) == -1)
175 if (nvmm_hva_map(mach, (uintptr_t)L1, PAGE_SIZE) == -1)
178 ret = nvmm_gpa_map(mach, (uintptr_t)L4, 0x3000, PAGE_SIZE,
182 ret = nvmm_gpa_map(mach, (uintptr_t)L3, 0x4000, PAGE_SIZE,
186 ret = nvmm_gpa_map(mach, (uintptr_t)L2, 0x5000, PAGE_SIZE,
190 ret = nvmm_gpa_map(mach, (uintptr_t)L1, 0x6000, PAGE_SIZE,
229 handle_io(struct nvmm_machine *mach, struct nvmm_vcpu *vcpu)
233 ret = nvmm_assist_io(mach, vcpu);
242 run_machine(struct nvmm_machine *mach, struct nvmm_vcpu *vcpu)
247 if (nvmm_vcpu_run(mach, vcpu) == -1)
259 handle_io(mach, vcpu);
284 run_test(struct nvmm_machine *mach, struct nvmm_vcpu *vcpu,
292 reset_machine(mach, vcpu);
305 run_machine(mach, vcpu);
371 struct nvmm_machine mach;
377 if (nvmm_machine_create(&mach) == -1)
379 if (nvmm_vcpu_create(&mach, 0, &vcpu) == -1)
381 nvmm_vcpu_configure(&mach, &vcpu, NVMM_VCPU_CONF_CALLBACKS, &callbacks);
382 map_pages(&mach);
385 run_test(&mach, &vcpu, &tests[i]);