diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2015-02-20 15:58:52 +1100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2015-03-09 15:00:08 +0100 |
commit | ee954280da8d9ea7afd28b4c288da15fb8b4efca (patch) | |
tree | ea712f94e24f1f3a97727eb23aa3cfd5c86fe7e8 /iohandler.c | |
parent | d7586dc426472b5ad0f5c01b5c7c551eeb5a6003 (diff) |
sPAPR: Implement EEH RTAS calls
The emulation for EEH RTAS requests from guest isn't covered
by QEMU yet and the patch implements them.
The patch defines constants used by EEH RTAS calls and adds
callbacks sPAPRPHBClass::{eeh_set_option, eeh_get_state, eeh_reset,
eeh_configure}, which are going to be used as follows:
* RTAS calls are received in spapr_pci.c, sanity check is done
there.
* RTAS handlers handle what they can. If there is something it
cannot handle and the corresponding sPAPRPHBClass callback is
defined, it is called.
* Those callbacks are only implemented for VFIO now. They do ioctl()
to the IOMMU container fd to complete the calls. Error codes from
that ioctl() are transferred back to the guest.
[aik: defined RTAS tokens for EEH RTAS calls]
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'iohandler.c')
0 files changed, 0 insertions, 0 deletions