]> 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)
commit1a0db00327cc7ecdb116f4236f5acf8dbcf03073
tree06d382a5fd5a4811c00deeda261eca70975c445e
parentbe691915fe575bea634d8be846b207fabe7630b1
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