Note can be tested in LXD on PPC64EL with an additional LXD profile like:
config:
  boot.autostart: "true"
  linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,kvm
  raw.apparmor: mount,
  raw.lxc: |-
    lxc.cgroup.devices.allow = c 10:237 rwm
    lxc.cgroup.devices.allow = b 7:* rwm
    lxc.cgroup.devices.allow = b 259:* rwm
    lxc.cgroup.devices.allow = b 230:* rw
  security.nesting: "true"
  security.privileged: "true"
description: ""
devices:
  eth0:
    mtu: "9000"
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  kvm:
    path: /dev/kvm
    type: unix-char
  mapper:
    path: /dev/mapper/control
    type: unix-char
  mem:
    path: /dev/mem
    type: unix-char
  tun:
    path: /dev/net/tun
    type: unix-char
name: kvm


Before upgrade the test hung at:
[...]
[    0.000639] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 
0x761537d007, max_idle_ns: 440795202126 ns
[    0.001298] clocksource: timebase mult[1f40000] shift[24] registered


Upgrading from Proposed:
root@b2:~# apt install qemu-system-ppc qemu-block-extra qemu-system-common 
qemu-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  samba vde2 openbios-ppc openhackware debootstrap
The following packages will be upgraded:
  qemu-block-extra qemu-system-common qemu-system-ppc qemu-utils
4 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
Need to get 8428 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main ppc64el 
qemu-utils ppc64el 1:2.11+dfsg-1ubuntu7.5 [787 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main ppc64el 
qemu-system-common ppc64el 1:2.11+dfsg-1ubuntu7.5 [662 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main ppc64el 
qemu-block-extra ppc64el 1:2.11+dfsg-1ubuntu7.5 [38.0 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main ppc64el 
qemu-system-ppc ppc64el 1:2.11+dfsg-1ubuntu7.5 [6942 kB]
Fetched 8428 kB in 1s (10.2 MB/s)         
(Reading database ... 65433 files and directories currently installed.)
Preparing to unpack .../qemu-utils_1%3a2.11+dfsg-1ubuntu7.5_ppc64el.deb ...
Unpacking qemu-utils (1:2.11+dfsg-1ubuntu7.5) over (1:2.11+dfsg-1ubuntu7.4) ...
Preparing to unpack .../qemu-system-common_1%3a2.11+dfsg-1ubuntu7.5_ppc64el.deb 
...
Unpacking qemu-system-common (1:2.11+dfsg-1ubuntu7.5) over 
(1:2.11+dfsg-1ubuntu7.4) ...
Preparing to unpack .../qemu-block-extra_1%3a2.11+dfsg-1ubuntu7.5_ppc64el.deb 
...
Unpacking qemu-block-extra:ppc64el (1:2.11+dfsg-1ubuntu7.5) over 
(1:2.11+dfsg-1ubuntu7.4) ...
Preparing to unpack .../qemu-system-ppc_1%3a2.11+dfsg-1ubuntu7.5_ppc64el.deb ...
Unpacking qemu-system-ppc (1:2.11+dfsg-1ubuntu7.5) over 
(1:2.11+dfsg-1ubuntu7.4) ...
Setting up qemu-block-extra:ppc64el (1:2.11+dfsg-1ubuntu7.5) ...
Setting up qemu-utils (1:2.11+dfsg-1ubuntu7.5) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up qemu-system-common (1:2.11+dfsg-1ubuntu7.5) ...
Setting up qemu-system-ppc (1:2.11+dfsg-1ubuntu7.5) ...
root@b2:~# echo $?
0


Testing from proposed:
$ qemu-system-ppc64 -nographic -vga none -M pseries,cap-htm=off -cpu POWER9 -m 
1G -kernel /boot/vmlinux-4.15.0-33-generic -initrd rootfs-le.cpio.xz
SLOF **********************************************************************
QEMU Starting
 Build Date = Dec 13 2017 13:46:58
[...]
# now working
[...]
[    2.901677] Freeing unused kernel memory: 4800K
[    2.901802] This architecture does not have kernel memory protection.
Starting logging: OK
Initializing random number generator... [    4.109516] random: dd: 
uninitialized urandom read (512 bytes read)
done.
Starting network...

Welcome to Buildroot
buildroot login: 

Per that test setting verification ok.

** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1787408

Title:
  qemu 1:2.11+dfsg-1ubuntu7.4 hangs when -cpu POWER9 is specified

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1787408/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to