All of lore.kernel.org
 help / color / mirror / Atom feed
* Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
@ 2007-12-18 17:20 ` Avi Kivity
  0 siblings, 0 replies; 28+ messages in thread
From: Avi Kivity @ 2007-12-18 17:20 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner; +Cc: kvm-devel, linux-kernel

Booting RHEL 5 i386 in kvm with -no-kvm-irqchip -smp 4 will hang in 
udev.  I bisected this to a change in the _guest_ kernel:

> commit 95492e4646e5de8b43d9a7908d6177fb737b61f0
> Author: Ingo Molnar <mingo@elte.hu>
> Date:   Fri Feb 16 01:27:34 2007 -0800
>
>     [PATCH] x86: rewrite SMP TSC sync code
>
>     make the TSC synchronization code more robust, and unify it 
> between x86_64 and
>     i386.
>
>     The biggest change is the removal of the 'fix up TSCs' code on 
> x86_64 and
>     i386, in some rare cases it was /causing/ time-warps on SMP systems.
>
>     The new code only checks for TSC asynchronity - and if it can prove a
>     time-warp (if it can observe the TSC going backwards when going 
> from one CPU
>     to another within a critical section), then the TSC clock-source 
> is turned
>     off.
>
>     The TSC synchronization-checking code also got moved into a 
> separate file.

So, guest kernels prior to this commit will hang in kvm smp; after this 
commit they will boot fine.

While the change mentions that it fixes a time warp bug, it also says it 
should be rare.  So clearly kvm smp tsc handing is buggy.  Ingo/Thomas, 
(or anybody else), do you have any insight as to what kvm can be doing 
wrong to trigger this behavior?


-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2007-12-20 10:34 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 17:20 Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup Avi Kivity
2007-12-18 17:20 ` Avi Kivity
2007-12-18 22:19 ` Ingo Molnar
2007-12-18 22:19   ` Ingo Molnar
2007-12-19  6:33   ` Avi Kivity
2007-12-19  6:33     ` Avi Kivity
2007-12-19 11:19     ` [kvm-devel] " Avi Kivity
2007-12-19 11:19       ` Avi Kivity
2007-12-19 11:39       ` [kvm-devel] " Avi Kivity
2007-12-19 14:06         ` Ingo Molnar
2007-12-19 14:06           ` Ingo Molnar
2007-12-19 14:27           ` [kvm-devel] " Avi Kivity
2007-12-19 15:32             ` Glauber de Oliveira Costa
2007-12-19 15:32               ` Glauber de Oliveira Costa
2007-12-19 15:41               ` [kvm-devel] " Avi Kivity
2007-12-20 10:34                 ` Glauber de Oliveira Costa
2007-12-20 10:34                   ` Glauber de Oliveira Costa
2007-12-19 16:55               ` [kvm-devel] " Amit Shah
2007-12-19 16:55                 ` Amit Shah
2007-12-19 17:04                 ` [kvm-devel] Guest kernel hangs in smp kvm for older kernelsprior " Dor Laor
2007-12-19 17:04                   ` Dor Laor
2007-12-19 17:09                   ` [kvm-devel] " Avi Kivity
2007-12-19 17:09                     ` Avi Kivity
2007-12-19 14:53           ` [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior " Avi Kivity
2007-12-19 14:53             ` Avi Kivity
2007-12-19 15:09             ` [kvm-devel] " Ingo Molnar
2007-12-19 15:21               ` Avi Kivity
2007-12-19 15:21                 ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.