diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-03 15:22:42 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2010-08-26 18:13:38 +0200 |
commit | 45024f094c223e8096f366520414cdf1a74dbff3 (patch) | |
tree | 6e2931a361a98ea331cf36aff8f2bb25572f3efa /hw/ppc.h | |
parent | 2446333cd5b5c985f6517dee7004e542ecacd21c (diff) | |
download | qemu-45024f094c223e8096f366520414cdf1a74dbff3.zip qemu-45024f094c223e8096f366520414cdf1a74dbff3.tar.gz qemu-45024f094c223e8096f366520414cdf1a74dbff3.tar.bz2 |
PPC: Add PV hypercall transport through fw_cfg
On KVM for PPC we need to tell the guest which instructions to use when
doing a hypercall. The clean way to do this is to go through an ioctl
from userspace and passing it on to the guest using the device tree.
So let's do the qemu part here: read out the hypercall and pass it on
to the guest's fw_cfg so openBIOS can read it out and expose it again.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc.h')
-rw-r--r-- | hw/ppc.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -47,5 +47,8 @@ enum { #define FW_CFG_PPC_HEIGHT (FW_CFG_ARCH_LOCAL + 0x01) #define FW_CFG_PPC_DEPTH (FW_CFG_ARCH_LOCAL + 0x02) #define FW_CFG_PPC_TBFREQ (FW_CFG_ARCH_LOCAL + 0x03) +#define FW_CFG_PPC_IS_KVM (FW_CFG_ARCH_LOCAL + 0x05) +#define FW_CFG_PPC_KVM_HC (FW_CFG_ARCH_LOCAL + 0x06) +#define FW_CFG_PPC_KVM_PID (FW_CFG_ARCH_LOCAL + 0x07) #define PPC_SERIAL_MM_BAUDBASE 399193 |