summaryrefslogtreecommitdiff
path: root/kvm.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-29 19:23:47 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-29 19:23:47 +0000
commit1c14f162dd92c0448948791531dc82ac277330ae (patch)
tree6d3acf8ca007935e6289ad82b744f97af1f4dafe /kvm.h
parent54fc6ea92bdd698498706d3cd8e10afd78680bed (diff)
Allow various header files to be included from non-CPU code
Allow balloon.h, gdbstub.h and kvm.h to be included from non-CPU code. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kvm.h b/kvm.h
index fd8d0c16c8..4f77188e26 100644
--- a/kvm.h
+++ b/kvm.h
@@ -14,12 +14,12 @@
#ifndef QEMU_KVM_H
#define QEMU_KVM_H
-#include "config.h"
+#include "config-host.h"
#include "qemu-queue.h"
-#ifdef CONFIG_KVM
extern int kvm_allowed;
+#ifdef CONFIG_KVM
#define kvm_enabled() (kvm_allowed)
#else
#define kvm_enabled() (0)
@@ -31,6 +31,7 @@ struct kvm_run;
int kvm_init(int smp_cpus);
+#ifdef NEED_CPU_H
int kvm_init_vcpu(CPUState *env);
int kvm_cpu_exec(CPUState *env);
@@ -160,5 +161,5 @@ static inline void cpu_synchronize_post_init(CPUState *env)
kvm_cpu_synchronize_post_init(env);
}
}
-
+#endif
#endif