Re: [kvm-devel] soft lockup after stop/cont

2007-10-11 Thread Jan Glauber1
Carsten Otte/Germany/[EMAIL PROTECTED] wrote on 10/11/2007 12:57:38 PM: > Dong, Eddie wrote: > > [EMAIL PROTECTED] wrote: > >> Jim Paris wrote: > >>> If I stop KVM in the monitor with "stop", wait a minute, and do > >>> "cont", a Linux guest gives me a "BUG: soft lockup detected on > >>> CPU#0". I

Re: [kvm-devel] soft lockup after stop/cont

2007-10-11 Thread Carsten Otte
Dong, Eddie wrote: > [EMAIL PROTECTED] wrote: >> Jim Paris wrote: >>> If I stop KVM in the monitor with "stop", wait a minute, and do >>> "cont", a Linux guest gives me a "BUG: soft lockup detected on >>> CPU#0". Is that expected behavior? >> We have the same behavior on s390 when running in a virt

Re: [kvm-devel] soft lockup after stop/cont

2007-10-11 Thread Dong, Eddie
[EMAIL PROTECTED] wrote: > Jim Paris wrote: >> If I stop KVM in the monitor with "stop", wait a minute, and do >> "cont", a Linux guest gives me a "BUG: soft lockup detected on >> CPU#0". Is that expected behavior? > We have the same behavior on s390 when running in a virtual > environment. The iss

Re: [kvm-devel] soft lockup after stop/cont

2007-10-11 Thread Carsten Otte
Jim Paris wrote: > If I stop KVM in the monitor with "stop", wait a minute, and do > "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". > Is that expected behavior? We have the same behavior on s390 when running in a virtual environment. The issue is, that the guest physical

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
Avi Kivity wrote: > cpu_save (qemu/hw/pc.c) has this: > > #ifdef USE_KVM >if (kvm_allowed) { >for (i = 0; i < NR_IRQ_WORDS ; i++) { >qemu_put_be32s(f, &env->kvm_interrupt_bitmap[i]);} >qemu_put_be64s(f, &env->tsc); >} > #endif Mmm, so this is not the ro

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Jim Paris
Avi Kivity wrote: > Jim Paris wrote: > > If I stop KVM in the monitor with "stop", wait a minute, and do > > "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". > > Is that expected behavior? > > No. > > > What isn't virtualized that allows it to > > detect that? The host is

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: >> Or is the timer saved in absolute time? if so you are right, and yes, >> your solution is needed. >> >> > Looks like current live migration, also save/restore, doesn't migrate > guest time. (do I miss something?) So the new guest will > see a totally different TSC and

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
>Or is the timer saved in absolute time? if so you are right, and yes, >your solution is needed. > Looks like current live migration, also save/restore, doesn't migrate guest time. (do I miss something?) So the new guest will see a totally different TSC and OS feel stranger or many lost ticks

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > Avi Kivity wrote: > >> Dong, Eddie wrote: >> >>> [EMAIL PROTECTED] wrote: >>> >>> It may be that the timer correction code detects that zillions of timer interrupts have not been serviced by the guest so it floods the guest with these interrupts.

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
Avi Kivity wrote: > Dong, Eddie wrote: >> [EMAIL PROTECTED] wrote: >> >>> It may be that the timer correction code detects that zillions of >>> timer interrupts have not been serviced by the guest so it floods >>> the guest with these interrupts. Does -no-kvm-irqchip help? >>> >>> >> In Xen, we

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > [EMAIL PROTECTED] wrote: > >> It may be that the timer correction code detects that zillions of >> timer interrupts have not been serviced by the guest so it floods the >> guest with these interrupts. Does -no-kvm-irqchip help? >> >> > In Xen, we decide to froze the gu

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
[EMAIL PROTECTED] wrote: > > It may be that the timer correction code detects that zillions of > timer interrupts have not been serviced by the guest so it floods the > guest with these interrupts. Does -no-kvm-irqchip help? > In Xen, we decide to froze the guest time after save/restore. In this

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Jim Paris wrote: > If I stop KVM in the monitor with "stop", wait a minute, and do > "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". > Is that expected behavior? No. > What isn't virtualized that allows it to > detect that? The host is a core 2 duo. > > It may be tha

[kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Jim Paris
If I stop KVM in the monitor with "stop", wait a minute, and do "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". Is that expected behavior? What isn't virtualized that allows it to detect that? The host is a core 2 duo. I have bigger problems in the guest after migrating to