Searched refs:KVM_IOCTL_ERROR (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/ |
D | vgic.c | 105 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()
|
D | processor.c | 555 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/ |
D | xss_msr_test.c | 48 TEST_ASSERT(!r || r == 1, KVM_IOCTL_ERROR(KVM_SET_MSRS, r)); in main()
|
D | private_mem_kvm_exits_test.c | 36 TEST_ASSERT(errno == EFAULT, KVM_IOCTL_ERROR(KVM_RUN, r)); in run_vcpu_get_exit_reason()
|
D | cpuid_test.c | 179 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/ |
D | kvm_util.h | 275 #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/ |
D | kvm_util.c | 175 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/ |
D | guest_print_test.c | 122 TEST_ASSERT(!r, KVM_IOCTL_ERROR(KVM_RUN, r)); in do_vcpu_run()
|
/linux-6.12.1/tools/testing/selftests/kvm/s390x/ |
D | ucontrol_test.c | 99 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/ |
D | processor.c | 776 TEST_ASSERT(r == 1, KVM_IOCTL_ERROR(KVM_GET_MSRS, r)); in kvm_get_feature_msr()
|