]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita15989a74137d05baa79d2d1b026eaf3b73a237d
tree47b060818bbea16dfecf21b8008a99c978a5f0c3
parent722f0bd7d42442ae757ca400fac73d013727ef77
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