Skip to contentSkip to conversation

x86: add xenconfig

PATCH In review Luis R. Rodriguez 4 participants 6 messages May 19, 2015 – May 20, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v5 cover x86: add xenconfig

From: "Luis R. Rodriguez" <[email protected]>

David Vrabel, please let me know if there are any issues. These two patches are based on your xen/tip.git tree on the for-linus-4.1b branch.

This v5 is a respin the the old v4 series to work with the latest code. I had stopped on the v4 at that time we were discussing doing major Kconfig changes. In the end we decided to not go forward with tons of Kconfig changes. As time went by though I did notice the v4 series required on modification due to Masahiro Yamada's commit: "kbuild: add generic mergeconfig target, %.config". This v5 series then simply adjusts the target xenconfig to work with those changes.

The kconfig entries have not been changed but I did verify they're all still there and those that arch specific remain arch specific.

Luis R. Rodriguez (2):
x86, platform, xen, kconfig: clarify kvmconfig is for kvm x86, arm, platform, xen, kconfig: add xen defconfig helper

 arch/x86/configs/xen.config | 14 ++++++++++++++
 kernel/configs/xen.config   | 32 ++++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  7 ++++++-
 3 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
Signature · 1 line
2.3.2.209.gd67f9d5.dirty
#1 lore raw

PATCH v5 1/2 x86, platform, xen, kconfig: clarify kvmconfig is for kvm

From: "Luis R. Rodriguez" <[email protected]>

We'll be adding options for xen as well.

---
 scripts/kconfig/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kconfig/Makefile +1 -1
index d9b1fef..6950032 100644
@@ -139,7 +139,7 @@ help:
 	@echo  '  randconfig	  - New config with random answer to all options'
 	@echo  '  listnewconfig   - List new options'
 	@echo  '  olddefconfig	  - Same as silentoldconfig but sets new symbols to their default value'
-	@echo  '  kvmconfig	  - Enable additional options for guest kernel support'
+	@echo  '  kvmconfig	  - Enable additional options for kvm guest kernel support'
 	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
 
 # lxdialog stuff
Signature · 1 line
2.3.2.209.gd67f9d5.dirty
Reviewed-by on v5 1/2
#2 lore raw

Re: [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm

Quoted 15 lines · Luis R. Rodriguez

From: "Luis R. Rodriguez" <[email protected]>

We'll be adding options for xen as well.

Cc Josh Triplett <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc David Rientjes <[email protected]>
Cc Michal Marek <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc David Vrabel <[email protected]>
Quoted 8 lines
Quoted 19 lines
 scripts/kconfig/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kconfig/Makefile +1 -1
index d9b1fef..6950032 100644
@@ -139,7 +139,7 @@ help:
 	@echo  '  randconfig	  - New config with random answer to all options'
 	@echo  '  listnewconfig   - List new options'
 	@echo  '  olddefconfig	  - Same as silentoldconfig but sets new symbols to their default value'
-	@echo  '  kvmconfig	  - Enable additional options for guest kernel support'
+	@echo  '  kvmconfig	  - Enable additional options for kvm guest kernel support'
 	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
 
 # lxdialog stuff
Signature · 1 line
2.3.2.209.gd67f9d5.dirty
#3 lore raw

PATCH v5 2/2 x86, arm, platform, xen, kconfig: add xen defconfig helper

In reply to Luis R. Rodriguez

From: "Luis R. Rodriguez" <[email protected]>

This lets you build a kernel which can support xen dom0 or xen guests by just using:

make xenconfig

on both x86 and arm64 kernels. This also splits out the options which are available currently to be built with x86 and 'make ARCH=arm64' under a shared config.

Technically xen supports a dom0 kernel and also a guest kernel configuration but upon review with the xen team since we don't have many dom0 options its best to just combine these two into one.

---
 arch/x86/configs/xen.config | 14 ++++++++++++++
 kernel/configs/xen.config   | 32 ++++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 51 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +14 -0
new file mode 100644
index 0000000..fabad7f
@@ -0,0 +1,14 @@
+CONFIG_HYPERVISOR_GUEST=y
+# x86 xen specific config options
+CONFIG_XEN_PV=y
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_MCE_LOG=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_ACPI_PROCESSOR=m
+# x86 specific backend drivers
+CONFIG_XEN_PCIDEV_BACKEND=m
+# x86 specific frontend drivers
+CONFIG_XEN_PCIDEV_FRONTEND=m
kernel/configs/xen.config new file +32 -0
new file mode 100644
index 0000000..9d23733
@@ -0,0 +1,32 @@
+CONFIG_PARAVIRT=y
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+# backend drivers
+CONFIG_XEN_BACKEND=y
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_HVC_XEN=y
+CONFIG_XEN_WDT=m
+CONFIG_XEN_SCSI_BACKEND=m
+# frontend drivers
+CONFIG_XEN_FRONTEND=y
+CONFIG_XEN_FBDEV_FRONTEND=m
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m
+CONFIG_XEN_SCSI_FRONTEND=m
+# others
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XENFS=m
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PRIVCMD=m
scripts/kconfig/Makefile +5 -0
index 6950032..f52abae 100644
@@ -115,6 +115,10 @@ PHONY += kvmconfig
 kvmconfig: kvm_guest.config
 	@:
 
+PHONY += xenconfig
+xenconfig: xen.config
+	@:
+
 PHONY += tinyconfig
 tinyconfig:
 	$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
@@ -140,6 +144,7 @@ help:
 	@echo  '  listnewconfig   - List new options'
 	@echo  '  olddefconfig	  - Same as silentoldconfig but sets new symbols to their default value'
 	@echo  '  kvmconfig	  - Enable additional options for kvm guest kernel support'
+	@echo  '  xenconfig       - Enable additional options for xen dom0 and guest kernel support'
 	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
 
 # lxdialog stuff
Signature · 1 line
2.3.2.209.gd67f9d5.dirty
#4 lore raw

Re: [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Quoted 7 lines · Luis R. Rodriguez

From: "Luis R. Rodriguez" <[email protected]>

This lets you build a kernel which can support xen dom0 or xen guests by just using:

make xenconfig

Quoted 9 lines

on both x86 and arm64 kernels. This also splits out the options which are available currently to be built with x86 and 'make ARCH=arm64' under a shared config.

Technically xen supports a dom0 kernel and also a guest kernel configuration but upon review with the xen team since we don't have many dom0 options its best to just combine these two into one.

make allnoconfig; make xenconfig doesn't appear to work, at least on x86. (This also wasn't cc'd to vger mailing list.)

#5 lore raw

Re: [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Quoted 13 lines · David Rientjes
Quoted 11 lines · Luis R. Rodriguez

From: "Luis R. Rodriguez" <[email protected]>

This lets you build a kernel which can support xen dom0 or xen guests by just using:

make xenconfig

on both x86 and arm64 kernels. This also splits out the options which are available currently to be built with x86 and 'make ARCH=arm64' under a shared config.

Quoted 8 lines
Quoted 5 lines

Technically xen supports a dom0 kernel and also a guest kernel configuration but upon review with the xen team since we don't have many dom0 options its best to just combine these two into one.

make allnoconfig; make xenconfig doesn't appear to work, at least on x86. (This also wasn't cc'd to vger mailing list.)

Crap, thanks, guess we need some more global options. Working on adding those. I thought this used to work from 'allnoconfig'. Will amend and fix, thanks.

Luis