]> 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)
commitf40171162bd0bb44b4491f8b70fa4428ce6ac638
tree5ab8be22ed07e3b997c96d4393b25c8f5f2fca26
parent41ccc2d3f33da8ee4180ee3f3255e1a9ec44ab3d
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