Searched refs:vm_fd (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/kvm/s390x/ |
H A D | ucontrol_test.c | 122 int vm_fd; in FIXTURE_SETUP() 136 self->vm_fd = ioctl(self->kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL); in FIXTURE_SETUP() 137 ASSERT_GE(self->vm_fd, 0); in FIXTURE_SETUP() 139 kvm_device_attr_get(self->vm_fd, KVM_S390_VM_CPU_MODEL, in FIXTURE_SETUP() 143 self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0); in FIXTURE_TEARDOWN() 196 close(self->vm_fd); in TEST() 217 rc = ioctl(self->vm_fd, KVM_GET_DEVICE_ATTR, &attr); in TEST() 222 rc = ioctl(self->vm_fd, KVM_SET_DEVICE_ATTR, &attr); in TEST() 232 rc = ioctl(self->vm_fd, KVM_GET_DIRTY_LOG, &dlog); in uc_handle_sieic() 242 int rc, kvm_fd, vm_fd, vcpu_f in uc_handle_sieic() 73 int vm_fd; FIXTURE() local 193 int rc, kvm_fd, vm_fd, vcpu_fd; TEST() local [all...] |
/linux/tools/testing/selftests/kvm/lib/ |
H A D | guest_modes.c | 60 int kvm_fd, vm_fd; in guest_modes_append_default() local 64 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, NULL); in guest_modes_append_default() 65 kvm_device_attr_get(vm_fd, KVM_S390_VM_CPU_MODEL, in guest_modes_append_default() 67 close(vm_fd); in guest_modes_append_default()
|
/linux/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | processor.c | 545 int kvm_fd, vm_fd, vcpu_fd, err; in aarch64_get_supported_page_sizes() local 554 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, (void *)(unsigned long)ipa); in aarch64_get_supported_page_sizes() 555 TEST_ASSERT(vm_fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm_fd)); in aarch64_get_supported_page_sizes() 557 vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0); in aarch64_get_supported_page_sizes() 560 err = ioctl(vm_fd, KVM_ARM_PREFERRED_TARGET, &preferred_init); in aarch64_get_supported_page_sizes() 581 close(vm_fd); in aarch64_get_supported_page_sizes()
|
/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | sev_init2_tests.c | 32 static int __sev_ioctl(int vm_fd, int cmd_id, void *data) in __sev_ioctl() argument 41 ret = ioctl(vm_fd, KVM_MEMORY_ENCRYPT_OP, &cmd); in __sev_ioctl()
|