system_powerdown causes SMP OpenBSD guest to freeze
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
system_powerdown causes an SMP OpenBSD guest to freeze. I can reproduce it with the following systems/versions:
- Debian 6: QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5)
- Fedora 20:
qemu-
qemu-1.7.0 (latest release version)
qemu-1.7.50 (latest development snapshot, "git cloned" today, 20140212)
all of the above hosts are running x86_64 linux.
The first OpenBSD version that I ran as a VM, v5.1, experienced the problem. All subsequent versions experience the problem. The above tests were performed using OpenBSD v5.4 (amd64).
I will open an OpenBSD bug report for this problem as well, and update this report with the OpenBSD bug ID.
There's an interesting RedHat bug report concerning this problem:
URL: https:/
Here an excerpt:
-snip-
Gleb Natapov 2009-12-23 10:37:44 EST
I posted patch to provide correct PCI irq routing info in mptable to kvm
mailing list. It works for all devices except for SCI interrupt. BIOS
programs SCI interrupt to be 9 as spec requires, but OpenBSD thinks that
it is smarter and moves it to interrupts 10. Qemu will still send it on
vector 9 and OpenBSD will enter the same infinity recursion. This can
be triggered by issuing system_powerdown on qemu monitor.
-snip-
Michael Tokarev reported this problem on the kvm mailing list in 2011:
URL: http://
I compiled qemu as follows:
-snip-
cd qemu-src-dir
mkdir -p bin/native
cd bin/native
../../configure \
--prefix=
--target-
--enable-kvm \
--enable-spice \
--with-
--audio-
--extra-
-snip-
I'm running OpenBSD with the following command:
-snip-
#!/bin/bash
DEF=/usr/
QEMU_LATEST=
QEMU_DEV=
$QEMU_DEV \
-machine accel=kvm \
-name obsdtest-v54 \
-S \
-machine pc-i440fx-
-boot c \
-m 2048 \
-realtime mlock=off \
-smp 2,sockets=
-uuid 8b685793-
-no-user-config \
-monitor stdio \
-rtc base=utc,
-global kvm-pit.
-no-hpet \
-drive file=/guest_
-device virtio-
-drive if=none,
-device ide-cd,
-chardev pty,id=charserial0 \
-device isa-serial,
-k en-us \
-device cirrus-
-device virtio-
-net nic \
-net user
-snip-
The OpenBSD disk image I used for testing is 143MB compressed, 10G uncompressed. It can be found here:
http://
The root password is "x".
Rob Urban
I opened an OpenBSD bug. OpenBSD does not use a bug-tracking database, AFAICT, but rather the mailing-list <email address hidden>. I will post any replies to the OpenBSD bug report in comments here.