aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2017-03-14 13:35:55 -0400
committerJuergen Gross <jgross@suse.com>2017-05-02 05:10:16 -0400
commit33af746985699001c1122c2d5e9dbece28f18272 (patch)
tree78a98cc255e94e24bcdae023ba33ff4f2c75dd4e
parent16624390816c4c40df3d777b34665d3fd01e693d (diff)
x86/xen: enable PVHVM-only builds
Now everything is in place and we can move PV-only code under CONFIG_XEN_PV. CONFIG_XEN_PV_SMP is created to support the change. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
-rw-r--r--arch/x86/xen/Kconfig4
-rw-r--r--arch/x86/xen/Makefile9
2 files changed, 9 insertions, 4 deletions
diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
index 3bcb091ef298..027987638e98 100644
--- a/arch/x86/xen/Kconfig
+++ b/arch/x86/xen/Kconfig
@@ -22,6 +22,10 @@ config XEN_PV
22 help 22 help
23 Support running as a Xen PV guest. 23 Support running as a Xen PV guest.
24 24
25config XEN_PV_SMP
26 def_bool y
27 depends on XEN_PV && SMP
28
25config XEN_DOM0 29config XEN_DOM0
26 bool "Xen PV Dom0 support" 30 bool "Xen PV Dom0 support"
27 default y 31 default y
diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile
index f610651aec4d..fffb0a16f9e3 100644
--- a/arch/x86/xen/Makefile
+++ b/arch/x86/xen/Makefile
@@ -12,16 +12,17 @@ CFLAGS_mmu_pv.o := $(nostackp)
12 12
13obj-y := enlighten.o multicalls.o mmu.o irq.o \ 13obj-y := enlighten.o multicalls.o mmu.o irq.o \
14 time.o xen-asm.o xen-asm_$(BITS).o \ 14 time.o xen-asm.o xen-asm_$(BITS).o \
15 grant-table.o suspend.o platform-pci-unplug.o \ 15 grant-table.o suspend.o platform-pci-unplug.o
16 p2m.o enlighten_pv.o mmu_pv.o
17 16
18obj-$(CONFIG_XEN_PVHVM) += enlighten_hvm.o mmu_hvm.o suspend_hvm.o 17obj-$(CONFIG_XEN_PVHVM) += enlighten_hvm.o mmu_hvm.o suspend_hvm.o
19obj-$(CONFIG_XEN_PV) += setup.o apic.o pmu.o suspend_pv.o 18obj-$(CONFIG_XEN_PV) += setup.o apic.o pmu.o suspend_pv.o \
19 p2m.o enlighten_pv.o mmu_pv.o
20obj-$(CONFIG_XEN_PVH) += enlighten_pvh.o 20obj-$(CONFIG_XEN_PVH) += enlighten_pvh.o
21 21
22obj-$(CONFIG_EVENT_TRACING) += trace.o 22obj-$(CONFIG_EVENT_TRACING) += trace.o
23 23
24obj-$(CONFIG_SMP) += smp.o smp_pv.o 24obj-$(CONFIG_SMP) += smp.o
25obj-$(CONFIG_XEN_PV_SMP) += smp_pv.o
25obj-$(CONFIG_XEN_PVHVM_SMP) += smp_hvm.o 26obj-$(CONFIG_XEN_PVHVM_SMP) += smp_hvm.o
26obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o 27obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
27obj-$(CONFIG_XEN_DEBUG_FS) += debugfs.o 28obj-$(CONFIG_XEN_DEBUG_FS) += debugfs.o