Skip to contentSkip to conversation

x86/kconfig: Introduce CONFIG_PV and CONFIG_HVM

PATCH In review Andrew Cooper 3 participants 3 messages Mar 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/kconfig: Introduce CONFIG_PV and CONFIG_HVM

Making PV and HVM guests individually compilable is useful as a reduction in hypervisor size, and as an aid to enforcing clean API boundaries.

Introduce CONFIG_PV and CONFIG_HVM, although there is a lot of work to do until either can actually be disabled.

---
CC: Jan Beulich <[email protected]>

v2:
* Reduce to silent forms. For build testing, manually invert the def_bool.

---
 xen/arch/x86/Kconfig  | 6 ++++++
 xen/arch/x86/Makefile | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
xen/arch/x86/Kconfig +6 -0
index 96ca2bf..30c2769 100644
@@ -32,6 +32,12 @@ menu "Architecture Features"
 
 source "arch/Kconfig"
 
+config PV
+	def_bool y
+
+config HVM
+	def_bool y
+
 config SHADOW_PAGING
         bool "Shadow Paging"
         default y
xen/arch/x86/Makefile +2 -2
index d6980b5..f75eca0 100644
@@ -1,10 +1,10 @@
 subdir-y += acpi
 subdir-y += cpu
 subdir-y += genapic
-subdir-y += hvm
+subdir-$(CONFIG_HVM) += hvm
 subdir-y += mm
 subdir-$(CONFIG_XENOPROF) += oprofile
-subdir-y += pv
+subdir-$(CONFIG_PV) += pv
 subdir-y += x86_64
 
 alternative-y := alternative.init.o
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v2 1/1
#1 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 03.03.17 at 12:22, <[email protected]> wrote:

Making PV and HVM guests individually compilable is useful as a reduction in hypervisor size, and as an aid to enforcing clean API boundaries.

Introduce CONFIG_PV and CONFIG_HVM, although there is a lot of work to do until either can actually be disabled.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reviewed-by on v2 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 7 lines · Andrew Cooper

Making PV and HVM guests individually compilable is useful as a reduction in hypervisor size, and as an aid to enforcing clean API boundaries.

Introduce CONFIG_PV and CONFIG_HVM, although there is a lot of work to do until either can actually be disabled.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel