Searched refs:KVM_IOCTL_ERROR (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | mmio_warning_test.c | 63 TEST_ASSERT(kvmvm > 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, kvmvm)); in test() 65 TEST_ASSERT(kvmcpu != -1, KVM_IOCTL_ERROR(KVM_CREATE_VCPU, kvmcpu)); in test()
|
D | xss_msr_test.c | 50 TEST_ASSERT(!r || r == 1, KVM_IOCTL_ERROR(KVM_SET_MSRS, r)); in main()
|
/linux-6.1.9/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 193 #define KVM_IOCTL_ERROR(_ioctl, _ret) __KVM_IOCTL_ERROR(#_ioctl, _ret) macro 260 TEST_ASSERT(ret >= 0, KVM_IOCTL_ERROR(KVM_CHECK_EXTENSION, ret)); in vm_check_cap() 319 TEST_ASSERT(fd >= 0, KVM_IOCTL_ERROR(KVM_GET_STATS_FD, fd)); in vm_get_stats_fd() 523 TEST_ASSERT(fd >= 0, KVM_IOCTL_ERROR(KVM_GET_STATS_FD, fd)); in vcpu_get_stats_fd() 543 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_GET_DEVICE_ATTR, ret)); in kvm_device_attr_get() 553 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_SET_DEVICE_ATTR, ret)); in kvm_device_attr_set() 599 TEST_ASSERT(fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_DEVICE, fd)); in kvm_create_device()
|
/linux-6.1.9/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 | 476 TEST_ASSERT(vm_fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm_fd)); in aarch64_get_supported_page_sizes() 479 TEST_ASSERT(vcpu_fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VCPU, vcpu_fd)); in aarch64_get_supported_page_sizes() 482 TEST_ASSERT(err == 0, KVM_IOCTL_ERROR(KVM_ARM_PREFERRED_TARGET, err)); in aarch64_get_supported_page_sizes() 484 TEST_ASSERT(err == 0, KVM_IOCTL_ERROR(KVM_ARM_VCPU_INIT, err)); in aarch64_get_supported_page_sizes() 487 TEST_ASSERT(err == 0, KVM_IOCTL_ERROR(KVM_GET_ONE_REG, vcpu_fd)); in aarch64_get_supported_page_sizes()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 115 TEST_ASSERT(ret >= 0, KVM_IOCTL_ERROR(KVM_CHECK_EXTENSION, ret)); in kvm_check_cap() 138 TEST_ASSERT(vm->fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm->fd)); in vm_open() 1081 KVM_IOCTL_ERROR(KVM_GET_VCPU_MMAP_SIZE, ret)); in vcpu_mmap_sz() 1118 TEST_ASSERT(vcpu->fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VCPU, vcpu->fd)); in __vm_vcpu_add() 1472 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_RUN, ret)); in vcpu_run() 1617 TEST_ASSERT(ret >= 0, KVM_IOCTL_ERROR(KVM_IRQ_LINE, ret)); in kvm_irq_line() 1667 TEST_ASSERT(!ret, KVM_IOCTL_ERROR(KVM_SET_GSI_ROUTING, ret)); in kvm_gsi_routing_write()
|
/linux-6.1.9/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 723 TEST_ASSERT(r == 1, KVM_IOCTL_ERROR(KVM_SET_MSRS, r)); in vcpu_set_msr()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 738 TEST_ASSERT(r == 1, KVM_IOCTL_ERROR(KVM_GET_MSRS, r)); in kvm_get_feature_msr()
|