Stopping and starting KVM partitions results in guest kernel softlockup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Chris J Arges |
Bug Description
[Impact]
Stop/continue via qemu monitor can easily trigger soft-lockups due to incorrect VM timekeeping.
[Test Case]
On a single CPU KVM guest:
yes > /dev/null &
Followed by
(qemu) stop
Wait a while, then:
(qemu) cont
[Fix]
The following commits upstream:
commit 545a2bf742fb41f
commit 4be1b29795d692d
--
== Comment: #0 - Cyril Bur <email address hidden> - 2015-02-23 18:03:41 ==
+++ This bug was initially created as a clone of Bug #108455 +++
I was investigating the cause of some ppc64le KVM guest softlockup warnings. On a single CPU KVM guest, I ran something to keep the guest busy:
yes > /dev/null &
Followed by
(qemu) stop
Wait a while, then:
(qemu) cont
We get a softlockup error:
BUG: soft lockup - CPU#0 stuck for 9220s! [yes:2389]
.__getnstimeofday
.getnstimeofday
.ktime_get_real
.netif_receive_skb
.ibmveth_poll
.net_rx_action
.__do_softirq
.irq_exit
.__do_irq
.call_do_irq
.do_IRQ
I was going to file it away in the "don't do that" bin, but I notice x86 have something to detect a paused VM and avoid spewing the soft lockup error. Do we need something like this on ppc64?
commit 5d1c0f4a80a6df7
Author: Eric B Munson <email address hidden>
Date: Sat Mar 10 14:37:28 2012 -0500
watchdog: add check for suspended vm in softlockup detector
A suspended VM can cause spurious soft lockup warnings. To avoid these, the
watchdog now checks if the kernel knows it was stopped by the host and skips
the warning if so. When the watchdog is reset successfully, clear the guest
paused flag.
== Comment: #1 - Cyril Bur <email address hidden> - 2015-02-23 18:03:55 ==
Hi,
I have been working on a fix for guest kernels. This requires two patches:
1/2
commit 545a2bf742fb41f
Author: Cyril Bur <email address hidden>
Date: Thu Feb 12 15:01:24 2015 -0800
kernel/
and 2/2
commit 4be1b29795d692d
Author: Cyril Bur <email address hidden>
Date: Thu Feb 12 15:01:28 2015 -0800
powerpc: add running_clock for powerpc to prevent spurious softlockup warnings
Both are in upstream.
tags: | added: architecture-ppc64le bugnameltc-122013 severity-medium targetmilestone-inin1504 |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → Chris J Arges (arges) |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Committed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1427075/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]