x86/xen: enable PVHVM-only builds
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 14 Mar 2017 17:35:55 +0000 (18:35 +0100)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:10:16 +0000 (11:10 +0200)
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>
arch/x86/xen/Kconfig
arch/x86/xen/Makefile

index 3bcb091ef298384aac245da3a498363da7a01b50..027987638e9800cc4cf651a352e6718c9ac26eb4 100644 (file)
@@ -22,6 +22,10 @@ config XEN_PV
        help
          Support running as a Xen PV guest.
 
        help
          Support running as a Xen PV guest.
 
+config XEN_PV_SMP
+       def_bool y
+       depends on XEN_PV && SMP
+
 config XEN_DOM0
        bool "Xen PV Dom0 support"
        default y
 config XEN_DOM0
        bool "Xen PV Dom0 support"
        default y
index f610651aec4d8c035337acbbde2ad41625d73ad9..fffb0a16f9e33b6905ca16615555fd0c4145a0e7 100644 (file)
@@ -12,16 +12,17 @@ CFLAGS_mmu_pv.o             := $(nostackp)
 
 obj-y          := enlighten.o multicalls.o mmu.o irq.o \
                        time.o xen-asm.o xen-asm_$(BITS).o \
 
 obj-y          := enlighten.o multicalls.o mmu.o irq.o \
                        time.o xen-asm.o xen-asm_$(BITS).o \
-                       grant-table.o suspend.o platform-pci-unplug.o \
-                       p2m.o enlighten_pv.o mmu_pv.o
+                       grant-table.o suspend.o platform-pci-unplug.o
 
 obj-$(CONFIG_XEN_PVHVM)                += enlighten_hvm.o mmu_hvm.o suspend_hvm.o
 
 obj-$(CONFIG_XEN_PVHVM)                += enlighten_hvm.o mmu_hvm.o suspend_hvm.o
-obj-$(CONFIG_XEN_PV)                   += setup.o apic.o pmu.o suspend_pv.o
+obj-$(CONFIG_XEN_PV)                   += setup.o apic.o pmu.o suspend_pv.o \
+                                               p2m.o enlighten_pv.o mmu_pv.o
 obj-$(CONFIG_XEN_PVH)                  += enlighten_pvh.o
 
 obj-$(CONFIG_EVENT_TRACING) += trace.o
 
 obj-$(CONFIG_XEN_PVH)                  += enlighten_pvh.o
 
 obj-$(CONFIG_EVENT_TRACING) += trace.o
 
-obj-$(CONFIG_SMP)              += smp.o smp_pv.o
+obj-$(CONFIG_SMP)              += smp.o
+obj-$(CONFIG_XEN_PV_SMP)       += smp_pv.o
 obj-$(CONFIG_XEN_PVHVM_SMP)    += smp_hvm.o
 obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
 obj-$(CONFIG_XEN_DEBUG_FS)     += debugfs.o
 obj-$(CONFIG_XEN_PVHVM_SMP)    += smp_hvm.o
 obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
 obj-$(CONFIG_XEN_DEBUG_FS)     += debugfs.o