]> git.baikalelectronics.ru Git - kernel.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)
commitae46d28d199e86975fec004ead817e9e00eb122a
treea7995dd52f6715081cac74484a84351003e48480
parentc929b7334ddb4f6177ec1087bc98a38ed518a0d3
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