WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [Patch]Fix Linux smp guest hangs with complaint "BUG: soft l

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Patch]Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [Patch]Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0", Huang, Xinmei <=