From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq9e8-0002ft-Mv for qemu-devel@nongnu.org; Tue, 12 Apr 2016 21:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aq9e5-0005WH-EL for qemu-devel@nongnu.org; Tue, 12 Apr 2016 21:31:08 -0400 Received: from indium.canonical.com ([91.189.90.7]:34193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq9e5-0005Vz-5m for qemu-devel@nongnu.org; Tue, 12 Apr 2016 21:31:05 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aq9e3-00022k-RP for ; Wed, 13 Apr 2016 01:31:03 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id CC9832E80C0 for ; Wed, 13 Apr 2016 01:31:03 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Apr 2016 01:22:27 -0000 From: Ryan Harper <1563887@bugs.launchpad.net> Reply-To: Bug 1563887 <1563887@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160330141641.3353.24299.malonedeb@chaenomeles.canonical.com> Message-Id: <20160413012227.31743.68831.malone@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1563887] Re: qemu-system-ppc64 freezes on starting image on ppc64le List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Here's an update. The Xenial kernel doesn;t like the emulated POWER7 cpu that the command line being used generates by default. processor : 0 cpu : POWER7 (raw), altivec supported clock : 1000.000000MHz revision : 2.3 (pvr 003f 0203) timebase : 512000000 platform : pSeries model : IBM pSeries (emulated by qemu) machine : CHRP IBM pSeries (emulated by qemu) We can boot a Wily image (kernel 4.2.0-35) just fine with the POWER7 cpu. When booting Xenial's kernel with POWER7 cpu, it produces a stacktrace duri= ng module load: [ 9.885165] Loaded X.509 cert 'Build time autogenerated kernel key: 6687= eed33bf99302166296c3e5cafe31ef38ad41' [ 9.886507] zswap: loaded using pool lzo/zbud [ 9.916000] modprobe[74]: unhandled signal 4 at 00003fffb5a4d03c nip 000= 03fffb5a4d03c lr 00003fffb5a25e24 code 30001 [ 9.925819] modprobe[76]: unhandled signal 4 at 00003fff85b9d03c nip 000= 03fff85b9d03c lr 00003fff85b75e24 code 30001 [ 9.928401] Key type trusted registered [ 9.930762] modprobe[79]: unhandled signal 4 at 00003fff7d05d03c nip 000= 03fff7d05d03c lr 00003fff7d035e24 code 30001 [ 9.933360] modprobe[80]: unhandled signal 4 at 00003fff8820d03c nip 000= 03fff8820d03c lr 00003fff881e5e24 code 30001 [ 9.936240] modprobe[83]: unhandled signal 4 at 00003fffb4fbd03c nip 000= 03fffb4fbd03c lr 00003fffb4f95e24 code 30001 [ 9.938873] modprobe[84]: unhandled signal 4 at 00003fff92d4d03c nip 000= 03fff92d4d03c lr 00003fff92d25e24 code 30001 [ 9.940335] Key type encrypted registered [ 9.940461] AppArmor: AppArmor sha1 policy hashing enabled [ 9.941005] ima: No TPM chip found, activating TPM-bypass! [ 9.942985] evm: HMAC attrs: 0x1 [ 9.947081] hctosys: unable to open rtc device (rtc0) [ 9.987867] Freeing unused kernel memory: 6144K (c000000000ea0000 - c000= 0000014a0000) [ 9.991123] init[1]: unhandled signal 4 at 00003fff8edfd03c nip 00003fff= 8edfd03c lr 00003fff8edd5e24 code 30001 [ 9.994581] Kernel panic - not syncing: Attempted to kill init! exitcode= =3D0x00000004 [ 9.994581] = [ 9.994889] CPU: 0 PID: 1 Comm: init Not tainted 4.4.0-18-generic #34-Ub= untu [ 9.995054] Call Trace: [ 9.995216] [c00000001e4c3a50] [c000000000aed6fc] dump_stack+0xb0/0xf0 (= unreliable) [ 9.995336] [c00000001e4c3a90] [c000000000ae9930] panic+0x100/0x2c0 [ 9.995398] [c00000001e4c3b20] [c0000000000bd554] do_exit+0xc24/0xc30 [ 9.995443] [c00000001e4c3be0] [c0000000000bd644] do_group_exit+0x64/0x1= 00 [ 9.995490] [c00000001e4c3c20] [c0000000000ceaac] get_signal+0x55c/0x7b0 [ 9.995534] [c00000001e4c3d10] [c000000000017424] do_signal+0x54/0x2b0 [ 9.995578] [c00000001e4c3e00] [c00000000001787c] do_notify_resume+0xbc/= 0xd0 [ 9.995677] [c00000001e4c3e30] [c000000000009838] ret_from_except_lite+0= x64/0x68 [ 10.011069] ---[ end Kernel panic - not syncing: Attempted to kill init!= exitcode=3D0x00000004 [ 10.011069] = When we use -enable-kvm, this bypasses the tcg POWER7 cpu, and uses the hos= t cpu type (POWER8) which is why we can boot the Xenial kernel with KVM. We need to open a linux task to help track down that issue; also if someone is testing Xenial on POWER7 hardware, that may help determine if there is a lurking qemu tcg issue, though given that Wily kernels boot fine in tcg mode; it's more likely there's something that changed/broke in the kernels since 4.2.0-35. I'm marking the qemu task invalid, and will open the linux task. ** Changed in: qemu (Ubuntu) Status: Confirmed =3D> Invalid -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1563887 Title: qemu-system-ppc64 freezes on starting image on ppc64le Status in QEMU: Confirmed Status in linux package in Ubuntu: Confirmed Status in livecd-rootfs package in Ubuntu: Invalid Status in qemu package in Ubuntu: Invalid Bug description: qemu-system-ppc64 running on Ubuntu 16.04 beta-2 fails to start an image as part of the certification process. This on an IBM ppc64le in PowerVM mode running Ubuntu 16.04 beta-2 deployed by MAAS 1.9.1. There is no error output. ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -m 256 -display none -nographic = -net nic -net user,net=3D10.0.0.0/8,host=3D10.0.0.1,hostfwd=3Dtcp::2222-:22= -machine pseries -drive file=3Dxenial-server-cloudimg-ppc64el-disk1.img,if= =3Dvirtio -drive file=3Dseed.iso,if=3Dvirtio WARNING: Image format was not specified for 'seed.iso' and probing guesse= d raw. =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Automatically detec= ting the format is dangerous for raw images, write operations on block 0 wi= ll be restricted. =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Specify the 'raw' f= ormat explicitly to remove the restrictions. SLOF ********************************************************************= ** QEMU Starting =C2=A0Build Date =3D Jan 29 2016 18:58:37 =C2=A0FW Version =3D buildd@ release 20151103 =C2=A0Press "s" to enter Open Firmware. Populating /vdevice methods Populating /vdevice/vty@71000000 Populating /vdevice/nvram@71000001 Populating /vdevice/l-lan@71000002 Populating /vdevice/v-scsi@71000003 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SCSI: Looking for devices =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A08200000000000= 000 CD-ROM : "QEMU QEMU CD-ROM 2.5+" Populating /pci@800000020000000 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A000 1800 (D) : 1af4 10= 01 virtio [ block ] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A000 1000 (D) : 1af4 10= 01 virtio [ block ] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A000 0800 (D) : 106b 00= 3f serial bus [ usb-ohci ] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A000 0000 (D) : 1234 11= 11 qemu vga No NVRAM common partition, re-initializing... Installing QEMU fb Scanning USB =C2=A0=C2=A0OHCI: initializing =C2=A0=C2=A0=C2=A0=C2=A0USB Keyboard =C2=A0=C2=A0=C2=A0=C2=A0USB mouse No console specified using screen & keyboard =C2=A0=C2=A0Welcome to Open Firmware =C2=A0=C2=A0Copyright (c) 2004, 2011 IBM Corporation All rights reserved. =C2=A0=C2=A0This program and the accompanying materials are made available =C2=A0=C2=A0under the terms of the BSD License available at =C2=A0=C2=A0http://www.opensource.org/licenses/bsd-license.php Trying to load: from: /pci@800000020000000/scsi@3 ... E3404: Not a bootable device! Trying to load: from: /pci@800000020000000/scsi@2 ... Successfully loa= ded Linux ppc64le #31-Ubuntu SMP F ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: qemu-system-ppc 1:2.5+dfsg-5ubuntu6 ProcVersionSignature: Ubuntu 4.4.0-16.32-generic 4.4.6 Uname: Linux 4.4.0-16-generic ppc64le ApportVersion: 2.20-0ubuntu3 Architecture: ppc64el Date: Wed Mar 30 14:10:01 2016 KvmCmdLine: =C2=A0COMMAND STAT EUID RUID PID PPID %CPU COMMAND =C2=A0kvm-irqfd-clean S< 0 0 1172 2 0.0 [kvm-irqfd-clean] =C2=A0qemu-nbd Ssl 0 0 13467 1 0.0 qemu-nbd -c /dev/= nbd0 xenial-server-cloudimg-ppc64el-disk1.img =C2=A0qemu-system-ppc Sl+ 1000 1000 18973 18896 101 qemu-system-ppc64= -m 256 -display none -nographic -net nic -net user,net=3D10.0.0.0/8,host= =3D10.0.0.1,hostfwd=3Dtcp::2222-:22 -machine pseries -drive file=3Dxenial-s= erver-cloudimg-ppc64el-disk1.img,if=3Dvirtio -drive file=3Dseed.iso,if=3Dvi= rtio Lsusb: Error: command ['lsusb'] failed with exit code 1: ProcEnviron: =C2=A0TERM=3Dxterm =C2=A0PATH=3D(custom, no user) =C2=A0LANG=3Den_US.UTF-8 =C2=A0SHELL=3D/bin/bash ProcKernelCmdLine: BOOT_IMAGE=3D/boot/vmlinux-4.4.0-16-generic root=3DUUI= D=3D92d820c8-ab25-497b-9b1e-f1435992bbf3 ro ProcLoadAvg: 1.08 0.94 0.58 2/616 19571 ProcLocks: =C2=A01: POSIX ADVISORY WRITE 886 00:13:381 0 EOF =C2=A02: POSIX ADVISORY WRITE 1339 00:13:528 0 EOF =C2=A03: FLOCK ADVISORY WRITE 1284 00:13:522 0 EOF =C2=A04: POSIX ADVISORY WRITE 2281 00:13:563 0 EOF =C2=A05: POSIX ADVISORY WRITE 1331 00:13:536 0 EOF ProcSwaps: =C2=A0Filename Type Size Used Priority =C2=A0/swap.img file 8388544 0 -1 ProcVersion: Linux version 4.4.0-16-generic (buildd@bos01-ppc64el-001) (g= cc version 5.3.1 20160320 (Ubuntu/Linaro/IBM 5.3.1-12ubuntu4) ) #32-Ubuntu = SMP Thu Mar 24 22:31:14 UTC 2016 SourcePackage: qemu UpgradeStatus: No upgrade log present (probably fresh install) bootlist: =C2=A0/pci@800000020000011/pci1014,034A@0/sas/disk@4068402c40 =C2=A0/pci@800000020000018/ethernet@0:speed=3Dauto,duplex=3Dauto,csarch,0= 00.000.000.000,,000.000.000.000,000.000.000.000,5,5,000.000.000.000,512 =C2=A0/pci@800000020000018/ethernet@0,1:speed=3Dauto,duplex=3Dauto,csarch= ,000.000.000.000,,000.000.000.000,000.000.000.000,5,5,000.000.000.000,512 =C2=A0/pci@800000020000018/ethernet@0,2:speed=3Dauto,duplex=3Dauto,csarch= ,000.000.000.000,,000.000.000.000,000.000.000.000,5,5,000.000.000.000,512 =C2=A0/pci@800000020000018/ethernet@0,3:speed=3Dauto,duplex=3Dauto,csarch= ,000.000.000.000,,000.000.000.000,000.000.000.000,5,5,000.000.000.000,512 cpu_cores: Number of cores present =3D 8 cpu_coreson: Number of cores online =3D 8 cpu_smt: SMT=3D8 lscfg_vp: Error: [Errno 2] No such file or directory: 'lscfg' lsmcode: Error: [Errno 2] No such file or directory: 'lsmcode' To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1563887/+subscriptions