Files
linux/arch/powerpc/include/asm
Bharat Bhushan 09000adb86 KVM: PPC: Fix issue clearing exit timing counters
Following dump is observed on host when clearing the exit timing counters

[root@p1021mds kvm]# echo -n 'c' > vm1200_vcpu0_timing
INFO: task echo:1276 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
echo          D 0ff5bf94     0  1276   1190 0x00000000
Call Trace:
[c2157e40] [c0007908] __switch_to+0x9c/0xc4
[c2157e50] [c040293c] schedule+0x1b4/0x3bc
[c2157e90] [c04032dc] __mutex_lock_slowpath+0x74/0xc0
[c2157ec0] [c00369e4] kvmppc_init_timing_stats+0x20/0xb8
[c2157ed0] [c0036b00] kvmppc_exit_timing_write+0x84/0x98
[c2157ef0] [c00b9f90] vfs_write+0xc0/0x16c
[c2157f10] [c00ba284] sys_write+0x4c/0x90
[c2157f40] [c000e320] ret_from_syscall+0x0/0x3c

        The vcpu->mutex is used by kvm_ioctl_* (KVM_RUN etc) and same was
used when clearing the stats (in kvmppc_init_timing_stats()). What happens
is that when the guest is idle then it held the vcpu->mutx. While the
exiting timing process waits for guest to release the vcpu->mutex and
a hang state is reached.

        Now using seprate lock for exit timing stats.

Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
2011-05-11 07:57:04 -04:00
..
2010-08-04 10:26:03 +10:00
…
2011-03-31 11:26:23 -03:00
…
…
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
…
…
…
…
…
…
…
…
2010-11-29 15:48:22 +11:00
…
…
…
2009-12-10 20:08:15 -06:00
…
2010-10-26 16:52:08 -07:00
2011-03-31 11:26:23 -03:00
2011-03-02 16:50:24 +11:00
…
…
…
…
…
…
…
2010-08-14 22:26:51 +02:00
…
2011-03-31 11:26:23 -03:00
2010-05-17 12:18:23 +03:00
2010-05-17 12:18:21 +03:00
2010-03-01 12:36:06 -03:00
…
2010-06-09 11:12:36 +02:00
2011-03-31 11:26:23 -03:00
…
2010-05-05 09:11:10 -04:00
2010-11-29 15:48:21 +11:00
…
…
…
…
…
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-03-05 03:04:08 -06:00
2010-10-26 16:52:08 -07:00
2010-10-26 16:52:08 -07:00
2011-03-02 16:50:24 +11:00
2011-03-31 11:26:23 -03:00
…
…
…
2009-04-07 15:18:58 +10:00
…
2009-12-09 17:10:37 +11:00
…
2011-03-31 11:26:23 -03:00
2010-03-05 03:04:08 -06:00
…
…
…
…
…
…
…
…
2010-06-28 12:41:33 -07:00
…
…
2011-03-31 11:26:23 -03:00
…
…
…
…
2009-04-01 08:59:16 -07:00
2009-08-28 14:24:10 +10:00
2011-03-30 10:44:11 +11:00
…
…
…
2011-03-23 19:47:18 -07:00
…
…
…
2011-03-30 10:44:11 +11:00
…
2011-03-31 11:26:23 -03:00
…
…
…
…