]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: Make the supported cpuid list a host property rather than a vm property
authorAvi Kivity <avi@qumranet.com>
Mon, 11 Feb 2008 16:37:23 +0000 (18:37 +0200)
committerAvi Kivity <avi@qumranet.com>
Mon, 3 Mar 2008 09:22:25 +0000 (11:22 +0200)
commit674eea0fc4d1d693250b5d3ddad42ca931c87dfd
treea7995dd52f6715081cac74484a84351003e48480
parentd730616384211436cfc84e6c2c1aa45351706a96
KVM: Make the supported cpuid list a host property rather than a vm property

One of the use cases for the supported cpuid list is to create a "greatest
common denominator" of cpu capabilities in a server farm.  As such, it is
useful to be able to get the list without creating a virtual machine first.

Since the code does not depend on the vm in any way, all that is needed is
to move it to the device ioctl handler.  The capability identifier is also
changed so that binaries made against -rc1 will fail gracefully.

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