Home
last modified time | relevance | path

Searched refs:KVM_IOCTL_ERROR (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dvgic.c105 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO, ret)); in kvm_irq_set_level_info()
127 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_IRQ_LINE, ret)); in kvm_arm_irq_line()
Dprocessor.c555 TEST_ASSERT(vm_fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm_fd)); in aarch64_get_supported_page_sizes()
558 TEST_ASSERT(vcpu_fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VCPU, vcpu_fd)); in aarch64_get_supported_page_sizes()
561 TEST_ASSERT(err == 0, KVM_IOCTL_ERROR(KVM_ARM_PREFERRED_TARGET, err)); in aarch64_get_supported_page_sizes()
563 TEST_ASSERT(err == 0, KVM_IOCTL_ERROR(KVM_ARM_VCPU_INIT, err)); in aarch64_get_supported_page_sizes()
566 TEST_ASSERT(err == 0, KVM_IOCTL_ERROR(KVM_GET_ONE_REG, vcpu_fd)); in aarch64_get_supported_page_sizes()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dxss_msr_test.c48 TEST_ASSERT(!r || r == 1, KVM_IOCTL_ERROR(KVM_SET_MSRS, r)); in main()
Dprivate_mem_kvm_exits_test.c36 TEST_ASSERT(errno == EFAULT, KVM_IOCTL_ERROR(KVM_RUN, r)); in run_vcpu_get_exit_reason()
Dcpuid_test.c179 TEST_ASSERT(r && errno == E2BIG, KVM_IOCTL_ERROR(KVM_GET_CPUID2, r)); in test_get_cpuid2()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dkvm_util.h275 #define KVM_IOCTL_ERROR(_ioctl, _ret) __KVM_IOCTL_ERROR(#_ioctl, _ret) macro
563 TEST_ASSERT(fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_GUEST_MEMFD, fd)); in vm_create_guest_memfd()
772 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_GET_DEVICE_ATTR, ret)); in kvm_device_attr_get()
782 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_SET_DEVICE_ATTR, ret)); in kvm_device_attr_set()
828 TEST_ASSERT(fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_DEVICE, fd)); in kvm_create_device()
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c175 TEST_ASSERT(ret >= 0, KVM_IOCTL_ERROR(KVM_CHECK_EXTENSION, ret)); in kvm_check_cap()
198 TEST_ASSERT(vm->fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm->fd)); in vm_open()
1240 KVM_IOCTL_ERROR(KVM_GET_VCPU_MMAP_SIZE, ret)); in vcpu_mmap_sz()
1662 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_RUN, ret)); in vcpu_run()
1807 TEST_ASSERT(ret >= 0, KVM_IOCTL_ERROR(KVM_IRQ_LINE, ret)); in kvm_irq_line()
1857 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_SET_GSI_ROUTING, ret)); in kvm_gsi_routing_write()
/linux-6.12.1/tools/testing/selftests/kvm/
Dguest_print_test.c122 TEST_ASSERT(!r, KVM_IOCTL_ERROR(KVM_RUN, r)); in do_vcpu_run()
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Ducontrol_test.c99 TH_LOG(KVM_IOCTL_ERROR(KVM_GET_VCPU_MMAP_SIZE, self->kvm_run_size)); in FIXTURE_SETUP()
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c776 TEST_ASSERT(r == 1, KVM_IOCTL_ERROR(KVM_GET_MSRS, r)); in kvm_get_feature_msr()