PPC: Enable to use PAPR with PR style KVM
commitf61b4bedaf3508b0dffa2e4b277af1f6646c3418
authorAlexander Graf <agraf@suse.de>
Tue, 9 Aug 2011 15:57:37 +0000 (9 17:57 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:48:02 +0000 (6 09:48 +0200)
tree9000ecd71e53f67f9bf6a3cf083ecb4979f2be3a
parent7c6da3deb8b8670043f2ea5b21da939436ce41c3
PPC: Enable to use PAPR with PR style KVM

When running PR style KVM, we need to tell the kernel that we want
to run in PAPR mode now. This means that we need to pass some more
register information down and enable papr mode. We also need to align
the HTAB to htab_size boundary.

Using this patch, -M pseries works with kvm even on non-hv kvm
implementations, as long as the preceding kernel patches are in.

Signed-off-by: Alexander Graf <agraf@suse.de>
---

v1 -> v2:

  - match on CONFIG_PSERIES

v2 -> v3:

  - remove HIOR pieces from PAPR patch (ABI breakage)
hw/spapr.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h