aboutsummaryrefslogtreecommitdiff
path: root/target-i386/hyperv.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386/hyperv.h')
-rw-r--r--target-i386/hyperv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/target-i386/hyperv.h b/target-i386/hyperv.h
index 15467bf397..bacb1d4373 100644
--- a/target-i386/hyperv.h
+++ b/target-i386/hyperv.h
@@ -14,7 +14,9 @@
#define QEMU_HW_HYPERV_H 1
#include "qemu-common.h"
+#ifdef CONFIG_KVM
#include <asm/hyperv.h>
+#endif
#ifndef HYPERV_SPINLOCK_NEVER_RETRY
#define HYPERV_SPINLOCK_NEVER_RETRY 0xFFFFFFFF
@@ -24,7 +26,7 @@
#define KVM_CPUID_SIGNATURE_NEXT 0x40000100
#endif
-#ifndef CONFIG_USER_ONLY
+#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_KVM)
void hyperv_enable_vapic_recommended(bool val);
void hyperv_enable_relaxed_timing(bool val);
void hyperv_set_spinlock_retries(int val);