I have run into this again.
I've read that it works for you, but here is all I have and as I said before - 
what would you want me to report to look at?

---


On power you can never load the usual kvm_hv module in a guest.
 $ sudo modprobe kvm_hv
 modprobe: ERROR: could not insert 'kvm_hv': No such device

That is normal and expected.
But on a Power9 system I can neither load kvm_pr which was usually the way to 
go for nested KVM.

$ sudo modprobe kvm_pr
modprobe: ERROR: could not insert 'kvm_pr': Input/output error

There is no error whatsoever in dmesg when triggering this.
>From libvirt the guest is defined with all defaults - see 
>http://paste.ubuntu.com/p/2r34SG6pq6/

That gives the guest CPU this guest view:
cat /proc/cpuinfo
processor : 0
cpu : POWER9 (architected), altivec supported
clock : 2134.000000MHz
revision : 2.2 (pvr 004e 1202)

timebase : 512000000
platform : pSeries
model : IBM pSeries (emulated by qemu)
machine : CHRP IBM pSeries (emulated by qemu)
MMU : Radix

Nothing obvious here, also the module exists and seems normal to me:
$ modinfo kvm_pr
filename: /lib/modules/4.17.0-6-generic/kernel/arch/powerpc/kvm/kvm-pr.ko
alias: devname:kvm
alias: char-major-10-232
license: GPL
srcversion: 2472883ADEEBC51508B6BF4
depends: kvm
intree: Y
name: kvm_pr
vermagic: 4.17.0-6-generic SMP mod_unload mprofile-kernel relocatable
sig_id: PKCS#7
signer:
sig_key:
sig_hashalgo: md4
signature: 30:82...

Current kernel is From Cosmic (as that is what I test for atm):
4.17.0-6-generic

If I start the guest with the "least virtual" cpu via
  <cpu mode='host-passthrough' check='none'/>

I get no difference in /proc/cpuinfo from the guest nor does the problem
change.


FYI Host CPU reports as (this is already with smt off)
[...]
processor       : 156
cpu             : POWER9, altivec supported
clock           : 3800.000000MHz
revision        : 2.2 (pvr 004e 1202)

timebase        : 512000000
platform        : PowerNV
model           : 9006-12C        
machine         : PowerNV 9006-12C        
firmware        : OPAL
MMU             : Radix

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

Title:
  kvm_pr on power9 not loadable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1778854/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to