Lines Matching refs:vcpu_fd
71 int vcpu_fd; in FIXTURE() local
94 self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0); in FIXTURE_SETUP()
95 ASSERT_GE(self->vcpu_fd, 0); in FIXTURE_SETUP()
101 PROT_READ | PROT_WRITE, MAP_SHARED, self->vcpu_fd, 0); in FIXTURE_SETUP()
111 self->vcpu_fd, KVM_S390_SIE_PAGE_OFFSET << PAGE_SHIFT); in FIXTURE_SETUP()
130 rc = ioctl(self->vcpu_fd, KVM_S390_UCAS_MAP, &map); in FIXTURE_SETUP()
135 rc = ioctl(self->vcpu_fd, KVM_S390_VCPU_FAULT, self->base_gpa); in FIXTURE_SETUP()
146 close(self->vcpu_fd); in FIXTURE_TEARDOWN()
193 int rc, kvm_fd, vm_fd, vcpu_fd; in TEST() local
214 vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0); in TEST()
215 ASSERT_GE(vcpu_fd, 0); in TEST()
220 close(vcpu_fd); in TEST()
271 rc = ioctl(self->vcpu_fd, KVM_RUN, NULL); in uc_run_once()
315 ASSERT_EQ(0, ioctl(self->vcpu_fd, KVM_GET_REGS, ®s)); in TEST_F()
327 ASSERT_EQ(0, ioctl(self->vcpu_fd, KVM_GET_REGS, ®s)); in TEST_F()