]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix MAXPHYADDR calculation when cpuid does not support it
authorAvi Kivity <avi@redhat.com>
Sun, 11 Apr 2010 12:33:32 +0000 (15:33 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:36 +0000 (12:17 +0300)
commit5d6d142f09140c54723c5b5f9b9ed61702190eb4
tree69e0ea723f0a408c634af5dea10dcccdfe4aef35
parent4c44449546a4a204d0917c2e214f1885a46efb99
KVM: Fix MAXPHYADDR calculation when cpuid does not support it

MAXPHYADDR is derived from cpuid 0x80000008, but when that isn't present, we
get some random value.

Fix by checking first that cpuid 0x80000008 is supported.

Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c