Lines Matching defs:kvm
2 * Check decoding of KVM_* commands of ioctl syscall using /dev/kvm API.
43 # include <linux/kvm.h>
57 static const char dev[] = "/dev/kvm";
58 static const char vm_dev[] = "anon_inode:kvm-vm";
59 static const char vcpu_dev[] = "anon_inode:kvm-vcpu";
173 int kvm = open(dev, O_RDWR);
174 if (kvm < 0)
178 int ret = KVM_IOCTL(kvm, KVM_GET_API_VERSION, 0);
182 kvm, KVM_API_VERSION);
184 kvm, dev, ret);
186 int vm_fd = KVM_IOCTL(kvm, KVM_CREATE_VM, 0);
188 kvm, dev, vm_fd, vm_dev);
215 ret = KVM_IOCTL(kvm, KVM_GET_VCPU_MMAP_SIZE, NULL);
221 kvm, dev, ret);