Lines Matching refs:vm_fd
122 int vm_fd;
136 self->vm_fd = ioctl(self->kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL);
137 ASSERT_GE(self->vm_fd, 0);
139 kvm_device_attr_get(self->vm_fd, KVM_S390_VM_CPU_MODEL,
143 self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0);
196 close(self->vm_fd);
217 rc = ioctl(self->vm_fd, KVM_GET_DEVICE_ATTR, &attr);
222 rc = ioctl(self->vm_fd, KVM_SET_DEVICE_ATTR, &attr);
232 rc = ioctl(self->vm_fd, KVM_GET_DIRTY_LOG, &dlog);
242 int rc, kvm_fd, vm_fd, vcpu_fd;
250 vm_fd = ioctl(kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL);
251 ASSERT_GE(vm_fd, 0);
254 rc = ioctl(vm_fd, KVM_CHECK_EXTENSION, KVM_CAP_S390_HPAGE_1M);
258 rc = ioctl(vm_fd, KVM_ENABLE_CAP, cap);
263 vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0);
265 rc = ioctl(vm_fd, KVM_ENABLE_CAP, cap);
270 close(vm_fd);
458 ASSERT_EQ(-1, ioctl(self->vm_fd, KVM_SET_USER_MEMORY_REGION, ®ion));
461 ASSERT_EQ(-1, ioctl(self->vm_fd, KVM_SET_USER_MEMORY_REGION2, ®ion2));