]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Add support for explicit HIOR setting
authorAlexander Graf <agraf@suse.de>
Mon, 8 Aug 2011 15:17:09 +0000 (17:17 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:23 +0000 (19:52 +0300)
commit6c01fb571f8ad5aae9fe96a668bf11b1325aa866
tree06d382a5fd5a4811c00deeda261eca70975c445e
parente78a8b24a6dde5d4dd910f8430ceb69db64907c7
KVM: PPC: Add support for explicit HIOR setting

Until now, we always set HIOR based on the PVR, but this is just wrong.
Instead, we should be setting HIOR explicitly, so user space can decide
what the initial HIOR value is - just like on real hardware.

We keep the old PVR based way around for backwards compatibility, but
once user space uses the SREGS based method, we drop the PVR logic.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm.h
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h