spapr-rtas: add CPU argument to RTAS calls
commit210b580b106fa798149e28aa13c66b325a43204e
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 19 Jun 2013 20:40:30 +0000 (19 15:40 -0500)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Jun 2013 23:11:16 +0000 (1 01:11 +0200)
treeec7bc9e868e6f622dadebe8633f5b60da0c33de4
parent159f8286b760deace1008f5f68a46cadba337780
spapr-rtas: add CPU argument to RTAS calls

RTAS is a hypervisor provided binary blob that a guest loads and
calls into to execute certain functions.  It's similar to the
vsyscall page in Linux or the short lived VMCI paravirt interface
from VMware.

The QEMU implementation of the RTAS blob is simply a passthrough
that proxies all RTAS calls to the hypervisor via an hypercall.

While we pass a CPU argument for hypercall handling in QEMU, we
don't pass it for RTAS calls.  Since some RTAs calls require
making hypercalls (normally RTAS is implemented as guest code) we
have nasty hacks to allow that.

Add a CPU argument to RTAS call handling so we can more easily
invoke hypercalls just as guest code would.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/nvram/spapr_nvram.c
hw/ppc/spapr_events.c
hw/ppc/spapr_hcall.c
hw/ppc/spapr_pci.c
hw/ppc/spapr_rtas.c
hw/ppc/spapr_vio.c
hw/ppc/xics.c
include/hw/ppc/spapr.h