]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/cpuid.c
KVM: fix cpuid eax for KVM leaf
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 2 May 2012 14:55:56 +0000 (17:55 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 6 May 2012 12:51:56 +0000 (15:51 +0300)
commit57c22e5f35aa4b9b2fe11f73f3e62bbf9ef36190
tree0ec4365a32d290c7e80d02bb67f7f28c188b39a2
parente726b1bd64b0b8945c171d2d4bf749fba9fc0800
KVM: fix cpuid eax for KVM leaf

cpuid eax should return the max leaf so that
guests can find out the valid range.
This matches Xen et al.
Update documentation to match.

Tested with -cpu host.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/virtual/kvm/cpuid.txt
arch/x86/kvm/cpuid.c