aboutsummaryrefslogtreecommitdiffstats
path: root/include/sysemu/whpx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sysemu/whpx.h')
-rw-r--r--include/sysemu/whpx.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/sysemu/whpx.h b/include/sysemu/whpx.h
new file mode 100644
index 000000000..2889fa227
--- /dev/null
+++ b/include/sysemu/whpx.h
@@ -0,0 +1,32 @@
+/*
+ * QEMU Windows Hypervisor Platform accelerator (WHPX) support
+ *
+ * Copyright Microsoft, Corp. 2017
+ *
+ * Authors:
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#ifndef QEMU_WHPX_H
+#define QEMU_WHPX_H
+
+#ifdef NEED_CPU_H
+
+#ifdef CONFIG_WHPX
+
+int whpx_enabled(void);
+bool whpx_apic_in_platform(void);
+
+#else /* CONFIG_WHPX */
+
+#define whpx_enabled() (0)
+#define whpx_apic_in_platform() (0)
+
+#endif /* CONFIG_WHPX */
+
+#endif /* NEED_CPU_H */
+
+#endif /* QEMU_WHPX_H */