[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [Patch]Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Huang, Xinmei" <xinmei.huang@xxxxxxxxx>
  • Date: Mon, 13 Nov 2006 17:03:32 +0800
  • Delivery-date: Mon, 13 Nov 2006 01:05:25 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AccEC2k/wddlUL1wQMms+4Bo9aXgLAC3WTHgAAHqI5A=
  • Thread-topic: [Patch]Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"

Fix Linux smp guest hangs with complaint "BUG: soft lock detected on
CPU#0" when console=ttyS0 in guest grub configuration and serial='pty'
in vmx configure file.
The root cause to this bug is the characteristic of PTY emulator in
Qemu. PTY has write/read end with some buffer. Write to a buffer will be
failed after the buffer is full until read end reads the data from
buffer,
Previous to changeset 12026, write to serial port would fail quietly
when buffer for pty is full. With changeset 12026, write to serial port
would retry 3 times in 300ms if failed, even without notifying guest
using serial irq. Smp guest will hang, waiting for an interrupt. For SMP
guest, a watchdog thread should be executed periodically, otherwise soft
lockup is detected.
With this patch, an upper threshold of total consecutive retries is
added and serial interrupt would be sent after retry 3 times for each
write request, even if failed.

Signed-off-by: Xinmei Huang <xinmei.huang@xxxxxxxxx>

Attachment: bug862-3.patch
Description: bug862-3.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.