aboutsummaryrefslogtreecommitdiff
path: root/slof/ofw.S
AgeCommit message (Collapse)AuthorFilesLines
2013-12-17Work around missing sc 1 traps on pHypAlexander Graf1-0/+10
When running a pseries guest in PR KVM on top of pHyp, sc 1 instructions are handled directly by pHyp, so we don't get to see them. That means we need to get inventive. Invent a new instruction that behaves like sc 1, but really is a reserved instruction that traps. This instruction can be used by KVM to emulate sc 1 behavior. This patch adds the SLOF support for it. With this, SLOF detects whether it's running on such a broken setup and if so patches itself to execute the fake sc 1 instruction instead of the real one. Furthermore, we also hook into "quiesce" which Linux calls when it boots. This gives us the chance to also patch Linux when it boots up, so it uses the fake sc 1 too. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2011-10-12Pass IMA to Paflof and fix the memory regions which have to be CLAIMedThomas Huth1-1/+6
Provide a IMA (initially mapped area) value to Paflof so that the Forth code can properly claim the memory regions which are used by Paflof. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Initial qemu/KVM board supportBenjamin Herrenschmidt1-0/+2
Added a new board for SLOF running on KVM/qemu. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2010-12-01Initial import of slof-JX-1.7.0-4Benjamin Herrenschmidt1-0/+42
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>