KVM: PPC: Support SC1 hypercalls for PAPR in PR mode
authorAlexander Graf <agraf@suse.de>
Mon, 8 Aug 2011 15:26:24 +0000 (17:26 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:25 +0000 (19:52 +0300)
commita668f2bd3f14ce7f92e119f4b5d9b50cdc59e855
tree5ab8be22ed07e3b997c96d4393b25c8f5f2fca26
parentaacf9aa3a7762a878c40fddef6e68262b9f9f383
KVM: PPC: Support SC1 hypercalls for PAPR in PR mode

PAPR defines hypercalls as SC1 instructions. Using these, the guest modifies
page tables and does other privileged operations that it wouldn't be allowed
to do in supervisor mode.

This patch adds support for PR KVM to trap these instructions and route them
through the same PAPR hypercall interface that we already use for HV style
KVM.

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