aboutsummaryrefslogtreecommitdiffstats
path: root/kvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvm.h b/kvm.h
index f5f5a55..e1fc986 100644
--- a/kvm.h
+++ b/kvm.h
@@ -18,6 +18,8 @@
#include "qemu-queue.h"
#ifdef CONFIG_KVM
+
+#ifdef TARGET_I386
extern int kvm_allowed;
#define kvm_enabled() (kvm_allowed)
@@ -25,6 +27,10 @@ extern int kvm_allowed;
#define kvm_enabled() (0)
#endif
+#else
+#define kvm_enabled() (0)
+#endif
+
struct kvm_run;
/* external API */