mshyperv: fix recognition of Hyper-V guest crash MSR's
authorDenis V. Lunev <den@openvz.org>
Sat, 1 Aug 2015 23:08:20 +0000 (16:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 05:30:44 +0000 (22:30 -0700)
commitcc2dd4027a43bb36c846f195a764edabc0828602
tree5e7d1fc796c9a11c6dd79645d3b06a6ae327b7ed
parent4a54243fc08f0edda1303bb666f0da68c378c036
mshyperv: fix recognition of Hyper-V guest crash MSR's

Hypervisor Top Level Functional Specification v3.1/4.0 notes that cpuid
(0x40000003) EDX's 10th bit should be used to check that Hyper-V guest
crash MSR's functionality available.

This patch should fix this recognition. Currently the code checks EAX
register instead of EDX.

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/mshyperv.h
arch/x86/kernel/cpu/mshyperv.c
drivers/hv/vmbus_drv.c