This is a note to let you know that I've just added the patch titled
x86: Hyper-V: register clocksource only if its advertised
to the 3.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
x86-hyper-v-register-clocksource-only-if-its-advertised.patch
and it can be found in the queue-3.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 32068f6527b8f1822a30671dedaf59c567325026 Mon Sep 17 00:00:00 2001
From: Olaf Hering <[mailto:[email protected]]>
Date: Sun, 3 Feb 2013 17:22:37 -0800
Subject: x86: Hyper-V: register clocksource only if its advertised
From: Olaf Hering <[mailto:[email protected]]>
commit 32068f6527b8f1822a30671dedaf59c567325026 upstream.
Enable hyperv_clocksource only if its advertised as a feature.
XenServer 6 returns the signature which is checked in
ms_hyperv_platform(), but it does not offer all features. Currently the
clocksource is enabled unconditionally in ms_hyperv_init_platform(), and
the result is a hanging guest.
Hyper-V spec Bit 1 indicates the availability of Partition Reference
Counter. Register the clocksource only if this bit is set.
The guest in question prints this in dmesg:
[ 0.000000] Hypervisor detected: Microsoft HyperV
[ 0.000000] HyperV: features 0x70, hints 0x0
This bug can be reproduced easily be setting 'viridian=1' in a HVM domU
.cfg file. A workaround without this patch is to boot the HVM guest with
'clocksource=jiffies'.
Signed-off-by: Olaf Hering <[email protected]>
Link:
http://lkml.kernel.org/r/[email protected]
Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
arch/x86/kernel/cpu/mshyperv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/arch/x86/kernel/cpu/mshyperv.c
+++ b/arch/x86/kernel/cpu/mshyperv.c
@@ -68,7 +68,8 @@ static void __init ms_hyperv_init_platfo
printk(KERN_INFO "HyperV: features 0x%x, hints 0x%x\n",
ms_hyperv.features, ms_hyperv.hints);
- clocksource_register_hz(&hyperv_cs, NSEC_PER_SEC/100);
+ if (ms_hyperv.features & HV_X64_MSR_TIME_REF_COUNT_AVAILABLE)
+ clocksource_register_hz(&hyperv_cs, NSEC_PER_SEC/100);
}
const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = {
Patches currently in stable-queue which might be from [mailto:[email protected]]
are
queue-3.8/hrtimer-prevent-hrtimer_enqueue_reprogram-race.patch
queue-3.8/workqueue-un-gpl-function-delayed_work_timer_fn.patch
queue-3.8/alsa-rme32.c-irq-enabling-after-spin_lock_irq.patch
queue-3.8/perf-tools-fix-build-with-bison-2.3-and-older.patch
queue-3.8/genirq-avoid-deadlock-in-spurious-handling.patch
queue-3.8/series
queue-3.8/perf-hists-fix-period-symbol_conf.field_sep-display.patch
queue-3.8/alsa-aloop-fix-oops-while-pm-resume.patch
queue-3.8/timeconst.pl-eliminate-perl-warning.patch
queue-3.8/x86-32-mm-rip-out-x86_32-numa-remapping-code.patch
queue-3.8/alsa-ali5451-remove-irq-enabling-in-pointer-callback.patch
queue-3.8/x86-hyper-v-register-clocksource-only-if-its-advertised.patch
queue-3.8/x86-32-mm-remove-reference-to-alloc_remap.patch
queue-3.8/posix-cpu-timers-fix-nanosleep-task_struct-leak.patch
queue-3.8/x86-32-mm-remove-reference-to-resume_map_numa_kva.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html