diff options
author | Denis V. Lunev <den@openvz.org> | 2015-08-01 19:08:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 01:30:44 -0400 |
commit | cc2dd4027a43bb36c846f195a764edabc0828602 (patch) | |
tree | 5e7d1fc796c9a11c6dd79645d3b06a6ae327b7ed /drivers/hv | |
parent | 4a54243fc08f0edda1303bb666f0da68c378c036 (diff) |
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>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/vmbus_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index b6114cc89aeb..e7b0bcd453e7 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c | |||
@@ -871,7 +871,7 @@ static int vmbus_bus_init(int irq) | |||
871 | /* | 871 | /* |
872 | * Only register if the crash MSRs are available | 872 | * Only register if the crash MSRs are available |
873 | */ | 873 | */ |
874 | if (ms_hyperv.features & HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE) { | 874 | if (ms_hyperv.misc_features & HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE) { |
875 | register_die_notifier(&hyperv_die_block); | 875 | register_die_notifier(&hyperv_die_block); |
876 | atomic_notifier_chain_register(&panic_notifier_list, | 876 | atomic_notifier_chain_register(&panic_notifier_list, |
877 | &hyperv_panic_block); | 877 | &hyperv_panic_block); |
@@ -1169,7 +1169,7 @@ static void __exit vmbus_exit(void) | |||
1169 | hv_remove_vmbus_irq(); | 1169 | hv_remove_vmbus_irq(); |
1170 | tasklet_kill(&msg_dpc); | 1170 | tasklet_kill(&msg_dpc); |
1171 | vmbus_free_channels(); | 1171 | vmbus_free_channels(); |
1172 | if (ms_hyperv.features & HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE) { | 1172 | if (ms_hyperv.misc_features & HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE) { |
1173 | unregister_die_notifier(&hyperv_die_block); | 1173 | unregister_die_notifier(&hyperv_die_block); |
1174 | atomic_notifier_chain_unregister(&panic_notifier_list, | 1174 | atomic_notifier_chain_unregister(&panic_notifier_list, |
1175 | &hyperv_panic_block); | 1175 | &hyperv_panic_block); |