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