[xen staging] pvshim: introduce a PV shim defconfig

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] pvshim: introduce a PV shim defconfig

patchbot
commit 67b28b1305da08edbb4d5f5f72ca3d0c44e8d446
Author:     Roger Pau Monné <[hidden email]>
AuthorDate: Fri Sep 7 09:29:20 2018 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Fri Sep 7 09:29:20 2018 +0200

    pvshim: introduce a PV shim defconfig
   
    In order to build a tailored pvshim-only binary from Xen. Switch the
    PV shim build from the tools firmware into using the new defconfig.
   
    A diff of the .config generated for the pvshim firmware build before
    and after this change shows no differences.
   
    Signed-off-by: Roger Pau Monné <[hidden email]>
    Acked-by: Ian Jackson <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
---
 tools/firmware/xen-dir/Makefile       |  5 +--
 tools/firmware/xen-dir/shim.config    | 84 -----------------------------------
 xen/arch/x86/configs/pvshim_defconfig | 23 ++++++++++
 3 files changed, 25 insertions(+), 87 deletions(-)

diff --git a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile
index 84648c3faf..83597f0017 100644
--- a/tools/firmware/xen-dir/Makefile
+++ b/tools/firmware/xen-dir/Makefile
@@ -41,9 +41,8 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE
 $(D): linkfarm.stamp
  $(MAKE) -C $(D)/xen distclean
 
-$(D)/xen/.config: shim.config $(D)
- cp $< $@
- $(MAKE) -C $(@D) olddefconfig XEN_CONFIG_EXPERT=y
+$(D)/xen/.config: $(D)
+ $(MAKE) -C $(@D) KBUILD_DEFCONFIG=pvshim_defconfig XEN_CONFIG_EXPERT=y defconfig
 
 xen-shim: $(D)/xen/.config
  $(MAKE) -C $(<D) build XEN_CONFIG_EXPERT=y
diff --git a/tools/firmware/xen-dir/shim.config b/tools/firmware/xen-dir/shim.config
deleted file mode 100644
index 21d7075bb4..0000000000
--- a/tools/firmware/xen-dir/shim.config
+++ /dev/null
@@ -1,84 +0,0 @@
-#
-# Automatically generated file; DO NOT EDIT.
-# Xen/x86 4.11-unstable Configuration
-#
-CONFIG_X86_64=y
-CONFIG_X86=y
-CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
-
-#
-# Architecture Features
-#
-CONFIG_NR_CPUS=32
-CONFIG_PV=y
-CONFIG_PV_LINEAR_PT=y
-CONFIG_HVM=y
-# CONFIG_SHADOW_PAGING is not set
-# CONFIG_BIGMEM is not set
-# CONFIG_HVM_FEP is not set
-# CONFIG_TBOOT is not set
-CONFIG_XEN_GUEST=y
-CONFIG_PVH_GUEST=y
-CONFIG_PV_SHIM=y
-CONFIG_PV_SHIM_EXCLUSIVE=y
-
-#
-# Common Features
-#
-CONFIG_COMPAT=y
-CONFIG_CORE_PARKING=y
-CONFIG_HAS_ALTERNATIVE=y
-CONFIG_HAS_EX_TABLE=y
-CONFIG_MEM_ACCESS=y
-CONFIG_HAS_MEM_PAGING=y
-CONFIG_HAS_MEM_SHARING=y
-CONFIG_HAS_PDX=y
-CONFIG_HAS_UBSAN=y
-CONFIG_HAS_KEXEC=y
-CONFIG_HAS_GDBSX=y
-CONFIG_HAS_IOPORTS=y
-# CONFIG_KEXEC is not set
-# CONFIG_TMEM is not set
-# CONFIG_XENOPROF is not set
-# CONFIG_XSM is not set
-
-#
-# Schedulers
-#
-CONFIG_SCHED_CREDIT=y
-# CONFIG_SCHED_CREDIT2 is not set
-# CONFIG_SCHED_RTDS is not set
-# CONFIG_SCHED_ARINC653 is not set
-# CONFIG_SCHED_NULL is not set
-CONFIG_SCHED_CREDIT_DEFAULT=y
-CONFIG_SCHED_DEFAULT="credit"
-# CONFIG_LIVEPATCH is not set
-# CONFIG_SUPPRESS_DUPLICATE_SYMBOL_WARNINGS is not set
-CONFIG_CMDLINE=""
-
-#
-# Device Drivers
-#
-CONFIG_ACPI=y
-CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
-CONFIG_NUMA=y
-CONFIG_HAS_NS16550=y
-CONFIG_HAS_EHCI=y
-CONFIG_HAS_CPUFREQ=y
-CONFIG_HAS_PASSTHROUGH=y
-CONFIG_HAS_PCI=y
-CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
-CONFIG_ARCH_SUPPORTS_INT128=y
-
-#
-# Debugging Options
-#
-# CONFIG_DEBUG is not set
-# CONFIG_CRASH_DEBUG is not set
-# CONFIG_FRAME_POINTER is not set
-# CONFIG_COVERAGE is not set
-# CONFIG_LOCK_PROFILE is not set
-# CONFIG_PERF_COUNTERS is not set
-# CONFIG_VERBOSE_DEBUG is not set
-# CONFIG_SCRUB_DEBUG is not set
-# CONFIG_UBSAN is not set
diff --git a/xen/arch/x86/configs/pvshim_defconfig b/xen/arch/x86/configs/pvshim_defconfig
new file mode 100644
index 0000000000..a12e3d0465
--- /dev/null
+++ b/xen/arch/x86/configs/pvshim_defconfig
@@ -0,0 +1,23 @@
+# Enable PV shim mode
+CONFIG_PV=y
+CONFIG_XEN_GUEST=y
+CONFIG_PVH_GUEST=y
+CONFIG_PV_SHIM=y
+CONFIG_PV_SHIM_EXCLUSIVE=y
+CONFIG_NR_CPUS=32
+# Disable features not used by the PV shim
+# CONFIG_SHADOW_PAGING is not set
+# CONFIG_BIGMEM is not set
+# CONFIG_HVM_FEP is not set
+# CONFIG_TBOOT is not set
+# CONFIG_KEXEC is not set
+# CONFIG_TMEM is not set
+# CONFIG_XENOPROF is not set
+# CONFIG_XSM is not set
+# CONFIG_SCHED_CREDIT2 is not set
+# CONFIG_SCHED_RTDS is not set
+# CONFIG_SCHED_ARINC653 is not set
+# CONFIG_SCHED_NULL is not set
+# CONFIG_LIVEPATCH is not set
+# CONFIG_SUPPRESS_DUPLICATE_SYMBOL_WARNINGS is not set
+# CONFIG_DEBUG is not set
--
generated by git-patchbot for /home/xen/git/xen.git#staging


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog