Searched refs:vm_fd (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | guest_modes.c | 64 int kvm_fd, vm_fd; in guest_modes_append_default() local 68 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, NULL); in guest_modes_append_default() 69 kvm_device_attr_get(vm_fd, KVM_S390_VM_CPU_MODEL, in guest_modes_append_default() 71 close(vm_fd); in guest_modes_append_default()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | sev_migrate_tests.c | 25 static int __sev_ioctl(int vm_fd, int cmd_id, void *data, __u32 *fw_error) in __sev_ioctl() argument 34 ret = ioctl(vm_fd, KVM_MEMORY_ENCRYPT_OP, &cmd); in __sev_ioctl() 39 static void sev_ioctl(int vm_fd, int cmd_id, void *data) in sev_ioctl() argument 44 ret = __sev_ioctl(vm_fd, cmd_id, data, &fw_error); in sev_ioctl() 233 static void verify_mirror_allowed_cmds(int vm_fd) in verify_mirror_allowed_cmds() argument 259 ret = __sev_ioctl(vm_fd, cmd_id, NULL, &fw_error); in verify_mirror_allowed_cmds() 266 sev_ioctl(vm_fd, KVM_SEV_GUEST_STATUS, &status); in verify_mirror_allowed_cmds()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/aarch64/ |
D | processor.c | 467 int kvm_fd, vm_fd, vcpu_fd, err; in aarch64_get_supported_page_sizes() local 475 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, (void *)(unsigned long)ipa); in aarch64_get_supported_page_sizes() 476 TEST_ASSERT(vm_fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm_fd)); in aarch64_get_supported_page_sizes() 478 vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0); in aarch64_get_supported_page_sizes() 481 err = ioctl(vm_fd, KVM_ARM_PREFERRED_TARGET, &preferred_init); in aarch64_get_supported_page_sizes() 494 close(vm_fd); in aarch64_get_supported_page_sizes()
|
/linux-6.1.9/Documentation/virt/kvm/ |
D | api.rst | 164 vm_fd = ioctl(dev_fd, KVM_CREATE_VM, KVM_VM_TYPE_ARM_IPA_SIZE(48));
|