AnsweredAssumed Answered

Enabling KVM on QEMU running on a T4240-RDB.

Question asked by Jacob Lara on Oct 24, 2019
Latest reply on Oct 29, 2019 by Yiping Wang

My goal is to run qemu-system-ppc64 with KVM enabled. I got the qemu-system-ppc64 executable in my path after I enabled KVM on my T4240rdb-64b image build. The version of qemu-system-ppc64 I have is:


root@t4240rdb:~# qemu-system-ppc64 --version
QEMU emulator version 2.4.0, Copyright (c) 2003-2008 Fabrice Bellard

So when I run qemu-system-ppc64 without KVM enabled using the following qemu command line:


qemu-system-ppc64 -prom-env "auto-boot?=false" –nographic


The QEMU monitor shows progress and the serial port outputs show: 


SLOF **********************************************************************

QEMU Starting
Build Date = May 7 2015 17:07:10
FW Version = git-7d766a3ac9b2474f
Press "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
SCSI: Looking for devices
8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.4."
Populating /pci@800000020000000
00 0800 (D) : 106b 003f serial bus [ usb-ohci ]
00 0000 (D) : 1234 1111 qemu vga
No NVRAM common partition, re-initializing...
Installing QEMU fb
Scanning USB
OHCI: initializing
USB Keyboard
USB mouse
No console specified using screen & keyboard
Welcome to Open Firmware
Copyright (c) 2004, 2011 IBM Corporation All rights reserved.
This program and the accompanying materials are made available
under the terms of the BSD License available at
Trying to load: from: disk ...
E3405: No such device
Trying to load: from: cdrom ... No medium !
E3405: No such device
Trying to load: from: net ...
E3010 (net) TFTP access violation
E3407: Load failed
..`. .. ....... .. ...... .......
..`...`''.`'. .''``````..''. .`''```''`. `''``````
.`` .:' ': `''..... .''. ''` .''..''.......
``.':.';. ``````''`.''. .''. ''``''`````'`
``.':':` .....`''.`'`...... `'`.....`''.`'`
.`.`'`` .'`'`````. ``'''''' ``''`'''`. `'`
Type 'boot' and press return to continue booting the system.
Type 'reset-all' and press return to reboot the system.
0 >


Now if I add the --enable-kvm option to that command, I don't see anything show up in the serial port outputs and the QEMU monitor shows no progress. If, however, I specify the machine and cpu in the command line like so:


qemu-system-ppc64 -prom-env "auto-boot?=false" -nographic -enable-kvm -machine ppce500 -cpu e6500


I still don't see anything in the serial port outputs or STDOUT, but the QEMU monitor does show progress (i.e. the next instruction pointer progresses forward).


QEMU then exits with an error saying "Missing PVR setting capability." I've been tweaking the machine and cpu arguments to various different options that I think might work. But I always get the same behavior and it always exits either with an error saying "Missing PVR setting capability." or an error saying "This KVM version does not support PAPR".


Anyway, is there a certain combination of arguments for machine and cpu that will work? Am I missing an important flag? Am I running QEMU wrong? What are your thoughts?