CPU hot plug kills the guest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Oneiric |
Won't Fix
|
Undecided
|
Unassigned | ||
qemu-kvm (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
=======
SRU Justification:
1. Impact: libvirt-qemu guest crashes
2. Development fix: refuse attempt to hotplug a new cpu
3. Stable fix: same as development fix
4. Test case:
a. create a vdisk: qemu-img create disk.img 1G
b. start a qemu instance: kvm -vnc :1 -monitor stdio -hda disk.img
c. in the monitor on stdio, add a cpu:
cpu_set 2 online
Without this patch, kvm will print an error and die. With the patch, it
will continue to run.
5. Regression potential: none
=======
I'm using a Natty host and an Oneiric guest (both fully up to date) to do some KVM testing. Hot plugging a CPU like this :
virsh setvcpus oneiric --count 2 --live
generates the following messages in /var/log/
kvm: /build/
2011-10-19 14:32:53.124: shutting down
From there, obviously the guest dies.
Host details :
$ apt-cache policy qemu-kvm
qemu-kvm:
Installed: 0.14.0+
Candidate: 0.14.0+
Version table:
*** 0.14.0+
500 http://
500 http://
100 /var/lib/
0.
500 http://
$ apt-cache policy libvirt-bin
libvirt-bin:
Installed: 0.8.8-1ubuntu6.6
Candidate: 0.8.8-1ubuntu6.6
Version table:
*** 0.8.8-1ubuntu6.6 0
500 http://
100 /var/lib/
0.
500 http://
500 http://
0.8.8-1ubuntu6 0
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: qemu-kvm 0.14.0+
ProcVersionSign
Uname: Linux 2.6.38-12-generic x86_64
Architecture: amd64
Date: Wed Oct 19 14:30:44 2011
KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
MachineType: LENOVO 2516CTO
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: qemu-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/20/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6IET78WW (1.38 )
dmi.board.name: 2516CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 2516CTO
dmi.product.
dmi.sys.vendor: LENOVO
Related branches
tags: | added: patch |
Changed in libvirt (Ubuntu): | |
status: | Confirmed → Invalid |
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Here is the guest definition extracted from "virsh dumpxml oneiric"