]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xen/pvh: Move PVH entry code out of Xen specific tree
authorMaran Wilson <maran.wilson@oracle.com>
Mon, 10 Dec 2018 19:07:55 +0000 (11:07 -0800)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 13 Dec 2018 18:41:49 +0000 (13:41 -0500)
Once hypervisors other than Xen start using the PVH entry point for
starting VMs, we would like the option of being able to compile PVH entry
capable kernels without enabling CONFIG_XEN and all the code that comes
along with that. To allow that, we are moving the PVH code out of Xen and
into files sitting at a higher level in the tree.

This patch is not introducing any code or functional changes, just moving
files from one location to another.

Signed-off-by: Maran Wilson <maran.wilson@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
MAINTAINERS
arch/x86/Kbuild
arch/x86/platform/pvh/Makefile [new file with mode: 0644]
arch/x86/platform/pvh/enlighten.c [moved from arch/x86/xen/enlighten_pvh.c with 100% similarity]
arch/x86/platform/pvh/head.S [moved from arch/x86/xen/xen-pvh.S with 100% similarity]
arch/x86/xen/Makefile

index 8119141a926f3a577b0a351caa71bd39a894f65f..fc9fe92bfa68710b706c5e40168e2be7e176e3a8 100644 (file)
@@ -16470,6 +16470,7 @@ L:      xen-devel@lists.xenproject.org (moderated for non-subscribers)
 T:     git git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git
 S:     Supported
 F:     arch/x86/xen/
+F:     arch/x86/platform/pvh/
 F:     drivers/*/xen-*front.c
 F:     drivers/xen/
 F:     arch/x86/include/asm/xen/
index 0038a2d10a7a575f1aa24aa6485fd277503d1753..2089e44143003c1f413b744fca0440048e7d8ebf 100644 (file)
@@ -7,6 +7,8 @@ obj-$(CONFIG_KVM) += kvm/
 # Xen paravirtualization support
 obj-$(CONFIG_XEN) += xen/
 
+obj-$(CONFIG_XEN_PVH) += platform/pvh/
+
 # Hyper-V paravirtualization support
 obj-$(subst m,y,$(CONFIG_HYPERV)) += hyperv/
 
diff --git a/arch/x86/platform/pvh/Makefile b/arch/x86/platform/pvh/Makefile
new file mode 100644 (file)
index 0000000..9fd25ef
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+OBJECT_FILES_NON_STANDARD_head.o := y
+
+obj-$(CONFIG_XEN_PVH) += enlighten.o
+obj-$(CONFIG_XEN_PVH) += head.o
index dd2550d33b388e3fc3b434e50c27ce135408c94b..b239922f6c6c3e764b1760306a4b1b0db26a9c3e 100644 (file)
@@ -1,6 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 OBJECT_FILES_NON_STANDARD_xen-asm_$(BITS).o := y
-OBJECT_FILES_NON_STANDARD_xen-pvh.o := y
 
 ifdef CONFIG_FUNCTION_TRACER
 # Do not profile debug and lowlevel utilities
@@ -37,9 +36,6 @@ obj-$(CONFIG_XEN_PV)          += multicalls.o
 obj-$(CONFIG_XEN_PV)           += xen-asm.o
 obj-$(CONFIG_XEN_PV)           += xen-asm_$(BITS).o
 
-obj-$(CONFIG_XEN_PVH)          += enlighten_pvh.o
-obj-$(CONFIG_XEN_PVH)          += xen-pvh.o
-
 obj-$(CONFIG_EVENT_TRACING)    += trace.o
 
 obj-$(CONFIG_SMP)              += smp.o