Revision 1c14f162 kvm.h
b/kvm.h | ||
---|---|---|
14 | 14 |
#ifndef QEMU_KVM_H |
15 | 15 |
#define QEMU_KVM_H |
16 | 16 |
|
17 |
#include "config.h" |
|
17 |
#include "config-host.h"
|
|
18 | 18 |
#include "qemu-queue.h" |
19 | 19 |
|
20 |
#ifdef CONFIG_KVM |
|
21 | 20 |
extern int kvm_allowed; |
22 | 21 |
|
22 |
#ifdef CONFIG_KVM |
|
23 | 23 |
#define kvm_enabled() (kvm_allowed) |
24 | 24 |
#else |
25 | 25 |
#define kvm_enabled() (0) |
... | ... | |
31 | 31 |
|
32 | 32 |
int kvm_init(int smp_cpus); |
33 | 33 |
|
34 |
#ifdef NEED_CPU_H |
|
34 | 35 |
int kvm_init_vcpu(CPUState *env); |
35 | 36 |
|
36 | 37 |
int kvm_cpu_exec(CPUState *env); |
... | ... | |
160 | 161 |
kvm_cpu_synchronize_post_init(env); |
161 | 162 |
} |
162 | 163 |
} |
163 |
|
|
164 |
#endif |
|
164 | 165 |
#endif |
Also available in: Unified diff