45024f094c
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>
21 lines
537 B
C
21 lines
537 B
C
/*
|
|
* Copyright 2008 IBM Corporation.
|
|
* Authors: Hollis Blanchard <hollisb@us.ibm.com>
|
|
*
|
|
* This work is licensed under the GNU GPL license version 2 or later.
|
|
*
|
|
*/
|
|
|
|
#ifndef __KVM_PPC_H__
|
|
#define __KVM_PPC_H__
|
|
|
|
void kvmppc_init(void);
|
|
void kvmppc_fdt_update(void *fdt);
|
|
int kvmppc_read_host_property(const char *node_path, const char *prop,
|
|
void *val, size_t len);
|
|
|
|
uint32_t kvmppc_get_tbfreq(void);
|
|
int kvmppc_get_hypercall(CPUState *env, uint8_t *buf, int buf_len);
|
|
|
|
#endif /* __KVM_PPC_H__ */
|