]>
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 uint32_t kvmppc_get_tbfreq(void);
15 uint64_t kvmppc_get_clockfreq(void);
16 int kvmppc_get_hypercall(CPUState
*env
, uint8_t *buf
, int buf_len
);
17 int kvmppc_set_interrupt(CPUState
*env
, int irq
, int level
);
20 #define kvmppc_eieio() do { } while (0)
22 #define kvmppc_eieio() \
24 if (kvm_enabled()) { \
25 asm volatile("eieio" : : : "memory"); \
30 #ifndef KVM_INTERRUPT_SET
31 #define KVM_INTERRUPT_SET -1
34 #ifndef KVM_INTERRUPT_UNSET
35 #define KVM_INTERRUPT_UNSET -2
38 #ifndef KVM_INTERRUPT_SET_LEVEL
39 #define KVM_INTERRUPT_SET_LEVEL -3
42 #endif /* __KVM_PPC_H__ */