]> git.proxmox.com Git - mirror_qemu.git/blob - target-ppc/kvm_ppc.h
PPC: KVM: Remove kvmppc_read_host_property
[mirror_qemu.git] / target-ppc / kvm_ppc.h
1 /*
2 * Copyright 2008 IBM Corporation.
3 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
4 *
5 * This work is licensed under the GNU GPL license version 2 or later.
6 *
7 */
8
9 #ifndef __KVM_PPC_H__
10 #define __KVM_PPC_H__
11
12 void kvmppc_init(void);
13
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);
18
19 #ifndef CONFIG_KVM
20 #define kvmppc_eieio() do { } while (0)
21 #else
22 #define kvmppc_eieio() \
23 do { \
24 if (kvm_enabled()) { \
25 asm volatile("eieio" : : : "memory"); \
26 } \
27 } while (0)
28 #endif
29
30 #ifndef KVM_INTERRUPT_SET
31 #define KVM_INTERRUPT_SET -1
32 #endif
33
34 #ifndef KVM_INTERRUPT_UNSET
35 #define KVM_INTERRUPT_UNSET -2
36 #endif
37
38 #ifndef KVM_INTERRUPT_SET_LEVEL
39 #define KVM_INTERRUPT_SET_LEVEL -3
40 #endif
41
42 #endif /* __KVM_PPC_H__ */