]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: set the HYPERVISOR flag in cpuid
authorSasha Levin <levinsasha928@gmail.com>
Wed, 20 Jun 2012 07:37:39 +0000 (11:37 +0400)
committerPekka Enberg <penberg@kernel.org>
Wed, 20 Jun 2012 07:41:10 +0000 (10:41 +0300)
commit5fffd63db1260fb56a3ed37cf2bbc5f901fcbad4
tree5181bb2569c39f4cc62229624ad15b4f4f5c7767
parentf974d07ccf9a230f2fd5cffdb11e733a780b4663
kvm tools: set the HYPERVISOR flag in cpuid

We need to set the HYPERVISOR flag to let the kernel know we're running
under a hypervisor.

This makes the kernel enable all sorts of para-virtualization options
such as kvm-clock.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
[gorcunov@: Add comments on bits]
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/x86/cpuid.c