]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: PR: Enable alternative instruction for SC 1
authorAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 22:42:05 +0000 (23:42 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 10 Jan 2013 12:15:08 +0000 (13:15 +0100)
commit434692645e2883b6ffb82bda5f14f5983d3e16b7
treee3cdb57befb40b314f2ccceece50d9ab2477f2f9
parent5a8b34d526a653493765c55e691e479bc1bfc914
KVM: PPC: Book3S: PR: Enable alternative instruction for SC 1

When running on top of pHyp, the hypercall instruction "sc 1" goes
straight into pHyp without trapping in supervisor mode.

So if we want to support PAPR guest in this configuration we need to
add a second way of accessing PAPR hypercalls, preferably with the
exact same semantics except for the instruction.

So let's overlay an officially reserved instruction and emulate PAPR
hypercalls whenever we hit that one.

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