]> git.proxmox.com Git - qemu.git/blame - target-ppc/kvm_ppc.h
PPC: KVM: Remove kvmppc_read_host_property
[qemu.git] / target-ppc / kvm_ppc.h
CommitLineData
d76d1650
AJ
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
12void kvmppc_init(void);
d76d1650 13
dc333cd6 14uint32_t kvmppc_get_tbfreq(void);
eadaada1 15uint64_t kvmppc_get_clockfreq(void);
45024f09 16int kvmppc_get_hypercall(CPUState *env, uint8_t *buf, int buf_len);
fc87e185
AG
17int kvmppc_set_interrupt(CPUState *env, int irq, int level);
18
b45d63b6
BH
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
fc87e185
AG
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
dc333cd6 41
d76d1650 42#endif /* __KVM_PPC_H__ */