From: Andrew Cooper <andrew.coop...@citrix.com>

Introduce two options. One to detect whether the binary is running on
Xen, the other enables PVH ABI support.

The former will be useful to PV in HVM approach. Both will be used by
PV in PVH approach.

Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Signed-off-by: Wei Liu <wei.l...@citrix.com>
---
v2:
Write commit message. Didn't change the config option value as it
requires a lot of changes in later patches.
---
 xen/arch/x86/Kconfig | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
index 7c4582922f..c0b0bcdcb3 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -117,6 +117,23 @@ config TBOOT
          Technology (TXT)
 
          If unsure, say Y.
+
+config XEN_GUEST
+       def_bool n
+       prompt "Xen Guest"
+       ---help---
+         Support for Xen detecting when it is running under Xen.
+
+         If unsure, say N.
+
+config PVH_GUEST
+       def_bool n
+       prompt "PVH Guest"
+       depends on XEN_GUEST
+       ---help---
+         Support booting using the PVH ABI.
+
+         If unsure, say N.
 endmenu
 
 source "common/Kconfig"
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to