]>
git.proxmox.com Git - mirror_qemu.git/blob - target-ppc/kvm_ppc.h
2 * Copyright 2008 IBM Corporation.
3 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
5 * This work is licensed under the GNU GPL license version 2 or later.
12 void kvmppc_init(void);
14 static inline int kvmppc_read_host_property(const char *node_path
, const char *prop
,
15 void *val
, size_t len
)
21 int kvmppc_read_host_property(const char *node_path
, const char *prop
,
22 void *val
, size_t len
);
25 uint32_t kvmppc_get_tbfreq(void);
26 int kvmppc_get_hypercall(CPUState
*env
, uint8_t *buf
, int buf_len
);
27 int kvmppc_set_interrupt(CPUState
*env
, int irq
, int level
);
30 #define kvmppc_eieio() do { } while (0)
32 #define kvmppc_eieio() \
34 if (kvm_enabled()) { \
35 asm volatile("eieio" : : : "memory"); \
40 #ifndef KVM_INTERRUPT_SET
41 #define KVM_INTERRUPT_SET -1
44 #ifndef KVM_INTERRUPT_UNSET
45 #define KVM_INTERRUPT_UNSET -2
48 #ifndef KVM_INTERRUPT_SET_LEVEL
49 #define KVM_INTERRUPT_SET_LEVEL -3
52 #endif /* __KVM_PPC_H__ */