[RFC PATCH 00/11 Allow PR and HV KVM to coexist in one kernel

Aneesh Kumar K.V aneesh.kumar at linux.vnet.ibm.com
Fri Sep 27 20:03:42 EST 2013


Hi All,

This patch series support enabling HV and PR KVM together in the same kernel. We
extend machine property with new property "kvm_type". A value of 1 will force HV
KVM and 2 PR KVM. The default value is 0 which will select the fastest KVM mode.
ie, HV if that is supported otherwise PR.

With Qemu command line having

 -machine pseries,accel=kvm,kvm_type=1

[root at llmp24l02 qemu]# bash ../qemu
failed to initialize KVM: Invalid argument
[root at llmp24l02 qemu]# modprobe kvm-pr
[root at llmp24l02 qemu]# bash ../qemu
failed to initialize KVM: Invalid argument
[root at llmp24l02 qemu]# modprobe  kvm-hv
[root at llmp24l02 qemu]# bash ../qemu

now with

 -machine pseries,accel=kvm,kvm_type=2

[root at llmp24l02 qemu]# rmmod kvm-pr
[root at llmp24l02 qemu]# bash ../qemu
failed to initialize KVM: Invalid argument
[root at llmp24l02 qemu]#
[root at llmp24l02 qemu]# modprobe kvm-pr
[root at llmp24l02 qemu]# bash ../qemu

if don't specify kvm_type machine property, it will take a default value 0,
which means fastest supported.

-aneesh



More information about the Linuxppc-dev mailing list