]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea3f4ba449cf290247018405fcc9c67527c4039c
tree5ab8be22ed07e3b997c96d4393b25c8f5f2fca26
parent17eaef93444fd694b7a3d14c51f6a55bb509f28b
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