]> git.proxmox.com Git - qemu.git/commit
pseries: Allow KVM Book3S-HV on PPC970 CPUS
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 29 Sep 2011 21:39:11 +0000 (21:39 +0000)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Oct 2011 16:11:53 +0000 (17:11 +0100)
commit354ac20a36a82a5ee09b0a6c8ba8655358a7597f
tree1728b384c00b412a329179b72fc5f3bc69c90e06
parente97c363638b32943afc4bd2845f4081496fabfbc
pseries: Allow KVM Book3S-HV on PPC970 CPUS

At present, using the hypervisor aware Book3S-HV KVM will only work
with qemu on POWER7 CPUs.  PPC970 CPUs also have hypervisor
capability, but they lack the VRMA feature which makes assigning guest
memory easier.

In order to allow KVM Book3S-HV on PPC970, we need to specially
allocate the first chunk of guest memory (the "Real Mode Area" or
RMA), so that it is physically contiguous.

Sufficiently recent host kernels allow such contiguous RMAs to be
allocated, with a kvm capability advertising whether the feature is
available and/or necessary on this hardware.  This patch enables qemu
to use this support, thus allowing kvm acceleration of pseries qemu
machines on PPC970 hardware.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
---

agraf: fix to use memory api
hw/spapr.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h