KVM: Create an inode per virtual machine
authorAvi Kivity <avi@qumranet.com>
Wed, 21 Feb 2007 17:28:04 +0000 (19:28 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 4 Mar 2007 09:12:42 +0000 (11:12 +0200)
commitf17abe9a44425ff9c9858bc1806cc09d6b5dad1c
tree47b060818bbea16dfecf21b8008a99c978a5f0c3
parent37e29d906c6eb1ece907e509160518b2edc2c083
KVM: Create an inode per virtual machine

This avoids having filp->f_op and the corresponding inode->i_fop different,
which is a little unorthodox.

The ioctl list is split into two: global kvm ioctls and per-vm ioctls.  A new
ioctl, KVM_CREATE_VM, is used to create VMs and return the VM fd.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
include/linux/kvm.h