Couldn't emulate instruction 0x7813427c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Tim Gardner | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Couldn't emulate instruction 0x7813427c
-------
Cannot boot nested VMs in Xenial or Yakkety w/ kvm accel.
It worked until Vivid (in spite of not being possible in x86)
TCG mode works fine, but very slow.
TCG full emulation is the mode in the x86 world for nested virt. However, in Power, we've been using in OpenStack CI w/ kvm accel (native virtualization) to speed up 2nd level VMs. It worked until Vivid.
Is the case that kvm accel isn't possible anymore for nested virt (aligned with x86 KVM) ? So full emulation TCG mode is the only possible mode in newer kernels ?
qemu-system-ppc64le -machine pseries,
lsmod |grep kvm
kvm_pr 96452 1
kvm 152984 4 kvm_pr
Nested VM console:
OF stdout device is: /vdevice/
Preparing to boot Linux version 4.4.0-28-generic (buildd@
Detected machine type: 0000000000000101
Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
Calling ibm,client-
command line: BOOT_IMAGE=
memory layout at init:
memory_limit : 0000000000000000 (16 MB aligned)
alloc_bottom : 0000000004210000
alloc_top : 0000000010000000
alloc_top_hi : 0000000040000000
rmo_top : 0000000010000000
ram_top : 0000000040000000
found display : /pci@8000000200
instantiating rtas at 0x000000000daf0
prom_hold_cpus: skipped
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x0000000004220000 -> 0x0000000004220aa9
Device tree struct 0x0000000004230000 -> 0x0000000004240000
Quiescing Open Firmware ...
Booting Linux via __start() ?
<The nested VM hangs here>
/var/log/syslog & /var/log/kern.log
Oct 13 14:07:38 patricia-ub16-10 kernel: [64072.186975] kvmppc_
Oct 13 14:07:38 patricia-ub16-10 kernel: [64072.187023] Couldn't emulate instruction 0x7813427c (op 30 xop 318)
Oct 13 14:07:38 patricia-ub16-10 kernel: [64072.187066] kvmppc_
Oct 13 14:07:38 patricia-ub16-10 kernel: [64072.187113] Couldn't emulate instruction 0x7813427c (op 30 xop 318)
Oct 13 14:07:38 patricia-ub16-10 kernel: [64072.187156] kvmppc_
<syslog and kern.log fills up with this error forever, until get the disk full>
Host:
cpu : POWER8E (raw), altivec supported
clock : 3690.000000MHz
revision : 2.1 (pvr 004b 0201)
timebase : 512000000
platform : PowerNV
model : 8247-22L
machine : PowerNV 8247-22L
firmware : OPAL v3
Guest: Xenial or Yakkety
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
Nested VM:
CirrOS
http://
This seems to be related
https:/
tags: | added: architecture-ppc64le bugnameltc-147569 severity-critical targetmilestone-inin16041 |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
------- Comment From <email address hidden> 2016-11-03 23:42 EDT-------
I think we probably need commit fa73c3b25bd8 ("KVM: PPC: Book3s PR: Allow access to unprivileged MMCR2 register", 2016-09-21). It has been back-ported to the 4.4.x stable series in 4.4.25 as commit 418fdccd410e.