]> www.infradead.org Git - users/dwmw2/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, 11 Feb 2008 16:37:23 +0000 (18:37 +0200)
commitd3581426e289fb84c661c92c72bb84a907c175d6
tree493e95a5ade0c2849e9d59755b2669c388403229
parent7d1b8d285ccb5bb14daabe0d2f908c9d981bc3de
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