Home
last modified time | relevance | path

Searched refs:__vm_ioctl (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dmax_vcpuid_cap_test.c48 ret = __vm_ioctl(vm, KVM_CREATE_VCPU, (void *)MAX_VCPU_ID); in main()
52 ret = __vm_ioctl(vm, KVM_CREATE_VCPU, (void *)(1L << 32)); in main()
56 ret = __vm_ioctl(vm, KVM_CREATE_VCPU, (void *)0); in main()
Dset_boot_cpu_id.c42 r = __vm_ioctl(vm, KVM_SET_BOOT_CPU_ID, (void *)(max_vcpu_id + 1)); in test_set_invalid_bsp()
46 r = __vm_ioctl(vm, KVM_SET_BOOT_CPU_ID, (void *)(1L << 32)); in test_set_invalid_bsp()
52 int r = __vm_ioctl(vcpu->vm, KVM_SET_BOOT_CPU_ID, in test_set_bsp_busy()
Dxen_shinfo_test.c423 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_activate_gfn); in juggle_shinfo_state()
425 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_deactivate_gfn); in juggle_shinfo_state()
428 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_activate_hva); in juggle_shinfo_state()
430 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_deactivate_hva); in juggle_shinfo_state()
924 __vm_ioctl(vm, KVM_XEN_HVM_EVTCHN_SEND, &uxe); in main()
Duserspace_msr_exit_test.c690 int r = __vm_ioctl(vm, cmd, arg); \
Dpmu_event_filter_test.c665 return __vm_ioctl(vcpu->vm, KVM_SET_PMU_EVENT_FILTER, f); in set_pmu_event_filter()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dkvm_util.h295 #define __vm_ioctl(vm, cmd, arg) \ macro
319 __vm_ioctl(vm, KVM_CHECK_EXTENSION, (void *)KVM_CAP_USER_MEMORY) < 0) { \
332 int ret = __vm_ioctl(vm, cmd, arg); \
358 int ret = __vm_ioctl(vm, KVM_CHECK_EXTENSION, (void *)cap); in vm_check_cap()
368 return __vm_ioctl(vm, KVM_ENABLE_CAP, &enable_cap); in __vm_enable_cap()
458 return __vm_ioctl(vm, KVM_RESET_DIRTY_RINGS, NULL); in kvm_vm_reset_dirty_ring()
489 int fd = __vm_ioctl(vm, KVM_GET_STATS_FD, NULL); in vm_get_stats_fd()
555 return __vm_ioctl(vm, KVM_CREATE_GUEST_MEMFD, &guest_memfd); in __vm_create_guest_memfd()
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/
Dsev.h60 r = __vm_ioctl(vm, KVM_MEMORY_ENCRYPT_OP, &sev_cmd.raw); \
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c1056 ret = __vm_ioctl(vm, KVM_SET_USER_MEMORY_REGION2, &region->region); in vm_mem_add()
1148 ret = __vm_ioctl(vm, KVM_SET_USER_MEMORY_REGION2, &region->region); in vm_mem_region_set_flags()
1178 ret = __vm_ioctl(vm, KVM_SET_USER_MEMORY_REGION2, &region->region); in vm_mem_region_move()
1276 vcpu->fd = __vm_ioctl(vm, KVM_CREATE_VCPU, (void *)(unsigned long)vcpu_id); in __vm_vcpu_add()
1748 return __vm_ioctl(vm, KVM_CREATE_DEVICE, &create_dev); in __kvm_test_create_device()
1760 err = __vm_ioctl(vm, KVM_CREATE_DEVICE, &create_dev); in __kvm_create_device()
1800 return __vm_ioctl(vm, KVM_IRQ_LINE, &irq_level); in _kvm_irq_line()
1846 ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing); in _kvm_gsi_routing_write()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvgic_lpi_stress.c239 TEST_ASSERT(__vm_ioctl(vm, KVM_SIGNAL_MSI, &msi) == 1, in signal_lpi()
Dset_id_regs.c409 ret = __vm_ioctl(vcpu->vm, KVM_ARM_GET_REG_WRITABLE_MASKS, &range); in test_vm_ftr_id_regs()
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Dcmma_test.c221 rc = __vm_ioctl(vm, KVM_S390_GET_CMMA_BITS, &args); in vm_get_cmma_bits()
Dmemop.c171 return __vm_ioctl(info.vm, KVM_S390_MEM_OP, ksmo); in err_memop_ioctl()
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c634 r = __vm_ioctl(vm, KVM_GET_TSC_KHZ, NULL); in kvm_arch_vm_post_create()