Skip to contentSkip to conversation

x86/arm64: add xenconfig

PATCH Superseded Luis R. Rodriguez 6 participants 25 messages Dec 9, 2014 – Jan 14, 2015

Subsystems (5)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v2 cover x86/arm64: add xenconfig

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

This v2 addreses some minor feedback on patch 2, and just mends in the review tags.

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 |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  7 ++++++-
 3 files changed, 43 insertions(+), 1 deletion(-)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
Signature · 1 line
2.1.1
#1 lore raw

PATCH v2 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 9645c07..ff612b0 100644
@@ -141,7 +141,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.1.1
Reviewed-by on v2 1/2
#2 lore raw

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

Quoted 13 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]>
Quoted 8 lines
Quoted 19 lines
 scripts/kconfig/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kconfig/Makefile +1 -1
index 9645c07..ff612b0 100644
@@ -141,7 +141,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.1.1
Reviewed-by on v2 1/2
#3 lore raw

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

In reply to Luis R. Rodriguez
Quoted 13 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]>
Quoted 8 lines
Quoted 19 lines
 scripts/kconfig/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kconfig/Makefile +1 -1
index 9645c07..ff612b0 100644
@@ -141,7 +141,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.1.1
#4 lore raw

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

In reply to Luis R. Rodriguez

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 9645c07..ff612b0 100644
@@ -141,7 +141,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.1.1
#5 lore raw

PATCH v2 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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +30 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m
scripts/kconfig/Makefile +5 -0
index ff612b0..f4a8f89 100644
@@ -117,6 +117,10 @@ PHONY += kvmconfig
 kvmconfig:
 	$(call mergeconfig,kvm_guest)
 
+PHONY += xenconfig
+xenconfig:
+	$(call mergeconfig,xen)
+
 PHONY += tinyconfig
 tinyconfig: allnoconfig
 	$(call mergeconfig,tiny)
@@ -142,6 +146,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.1.1
Acked-by on v2 2/2
#6 lore raw

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

Quoted 16 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.

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.

Quoted 16 lines
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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Acked-by on v2 2/2
#7 lore raw

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

In reply to Luis R. Rodriguez
Quoted 16 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.

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.

Quoted 16 lines
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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Acked-by on v2 2/2
#8 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

In reply to Luis R. Rodriguez

Hello Luis,

Quoted 10 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.

I guess this is also working for arm (32bits)?

Quoted 26 lines
kernel/configs/xen.config new file +20 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

The common fragment config looks good for both ARM32 and ARM64:

Regards,

Signature · 1 line
Julien Grall
#9 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Quoted 8 lines · Julien Grall

Hello Luis,

Quoted 5 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:

Quoted 7 lines
Quoted 5 lines

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.

I guess this is also working for arm (32bits)?

Yeap!

Quoted 40 lines
Quoted 27 lines
kernel/configs/xen.config new file +20 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

The common fragment config looks good for both ARM32 and ARM64:

Quoted 1 line

Can someone apply this? Who should this go through?

Luis

#10 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Hello Luis,

Quoted 39 lines · Luis R. Rodriguez
Quoted 39 lines
Quoted 26 lines
kernel/configs/xen.config new file +20 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

The common fragment config looks good for both ARM32 and ARM64:

Quoted 3 lines
Quoted 1 line

Can someone apply this? Who should this go through?

Stefano had some comments on this patch. See:

http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg01531.html

Regards,

Signature · 1 line
Julien Grall
#13 lore raw

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

In reply to Luis R. Rodriguez

Hello Luis,

Quoted 39 lines · Luis R. Rodriguez
Quoted 39 lines
Quoted 26 lines
kernel/configs/xen.config new file +20 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

The common fragment config looks good for both ARM32 and ARM64:

Quoted 3 lines
Quoted 1 line

Can someone apply this? Who should this go through?

Stefano had some comments on this patch. See:

http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg01531.html

Regards,

Signature · 1 line
Julien Grall
#14 lore raw

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

In reply to Julien Grall
Quoted 8 lines · Julien Grall

Hello Luis,

Quoted 5 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:

Quoted 7 lines
Quoted 5 lines

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.

I guess this is also working for arm (32bits)?

Yeap!

Quoted 40 lines
Quoted 27 lines
kernel/configs/xen.config new file +20 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

The common fragment config looks good for both ARM32 and ARM64:

Quoted 1 line

Can someone apply this? Who should this go through?

Luis

Acked-by on v2 2/2
#15 lore raw

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

In reply to Luis R. Rodriguez

Hello Luis,

Quoted 10 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.

I guess this is also working for arm (32bits)?

Quoted 26 lines
kernel/configs/xen.config new file +20 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

The common fragment config looks good for both ARM32 and ARM64:

Regards,

Signature · 1 line
Julien Grall
#16 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

In reply to Luis R. Rodriguez
Quoted 59 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -0
new file mode 100644
index 0000000..d2ec010

kernel/configs/xen.config line 4

Quoted 4 lines
kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

kernel/configs/xen.config line 13

Quoted 9 lines
kernel/configs/xen.config new file +9 -0
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m

neither should this

Quoted 7 lines
kernel/configs/xen.config new file +7 -0
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

and this

Quoted 32 lines
scripts/kconfig/Makefile +5 -0
index ff612b0..f4a8f89 100644
@@ -117,6 +117,10 @@ PHONY += kvmconfig
 kvmconfig:
 	$(call mergeconfig,kvm_guest)
 
+PHONY += xenconfig
+xenconfig:
+	$(call mergeconfig,xen)
+
 PHONY += tinyconfig
 tinyconfig: allnoconfig
 	$(call mergeconfig,tiny)
@@ -142,6 +146,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 · 7 lines
2.1.1


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#17 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Quoted 58 lines · Stefano Stabellini
Quoted 57 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -1
new file mode 100644
index 0000000..d2ec010
--- /dev/null
Quoted 8 lines

kernel/configs/xen.config line 4

Quoted 6 lines

+++ b/kernel/configs/xen.config

kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

If PCI is not supported on the arch this won't be selected as kconfig would not allow for it, what would be the issue of keeping it here? What xen instances would we not want to have this enabled for and can we instead manage that through Kconfig magic by negating PCI_XEN for it?

Quoted 11 lines

kernel/configs/xen.config line 13

Quoted 9 lines
kernel/configs/xen.config new file +9 -0
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m

neither should this

OK!

Quoted 11 lines
Quoted 11 lines
kernel/configs/xen.config new file +11 -0
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y
+CONFIG_XENFS=m
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
Quoted 8 lines

kernel/configs/xen.config line 30

Quoted 6 lines
kernel/configs/xen.config new file +6 -0
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

and this

OK!

Luis

#18 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Quoted 68 lines · Luis R. Rodriguez
Quoted 58 lines · Stefano Stabellini
Quoted 57 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -1
new file mode 100644
index 0000000..d2ec010
--- /dev/null
Quoted 8 lines

kernel/configs/xen.config line 4

Quoted 6 lines

+++ b/kernel/configs/xen.config

kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

Quoted 2 lines

If PCI is not supported on the arch this won't be selected as kconfig would not allow for it, what would be the issue of keeping it here?

It looks wrong to me to have an arch specific option here. Moreover many ARM boards don't even have PCI, so it looks even worse. CONFIG_PCI_XEN is certainly not a generic config option for Xen.

Quoted 3 lines

What xen instances
would we not want to have this enabled for and can we instead manage that through Kconfig magic by negating PCI_XEN for it?

Everything can be fixed via Kconfig magic, the point of this exercise is to try to avoid it.

Are there any cases on x86 where you don't actually want CONFIG_PCI_XEN? If not, then why don't just enable it automatically and silently if CONFIG_PCI is selected? If we did that, we could avoid specifying it here.

In any case, given that CONFIG_PCI_XEN is only defined on x86, I think it should be in arch/x86/configs/xen.config.

#19 lore raw

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

Quoted 69 lines · Stefano Stabellini
Quoted 68 lines · Luis R. Rodriguez
Quoted 66 lines · Stefano Stabellini
Quoted 59 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -0
new file mode 100644
index 0000000..d2ec010

kernel/configs/xen.config line 4

Quoted 4 lines
kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

Quoted 6 lines
Quoted 2 lines

If PCI is not supported on the arch this won't be selected as kconfig would not allow for it, what would be the issue of keeping it here?

It looks wrong to me to have an arch specific option here. Moreover many ARM boards don't even have PCI, so it looks even worse. CONFIG_PCI_XEN is certainly not a generic config option for Xen.

OK fair enough.

Quoted 8 lines
Quoted 3 lines

What xen instances
would we not want to have this enabled for and can we instead manage that through Kconfig magic by negating PCI_XEN for it?

Everything can be fixed via Kconfig magic, the point of this exercise is to try to avoid it.

Are there any cases on x86 where you don't actually want CONFIG_PCI_XEN?

Not that I can think of.

Quoted 3 lines

If not, then why don't just enable it automatically and silently if CONFIG_PCI is selected? If we did that, we could avoid specifying it here.

CONFIG_PCI_XEN already depends depends on PCI && XEN so I think its safe to just put it in blindly for x86.

Quoted 2 lines

In any case, given that CONFIG_PCI_XEN is only defined on x86, I think it should be in arch/x86/configs/xen.config.

OK!

Will respin.

Luis

#20 lore raw

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

In reply to Stefano Stabellini
Quoted 69 lines · Stefano Stabellini
Quoted 68 lines · Luis R. Rodriguez
Quoted 66 lines · Stefano Stabellini
Quoted 59 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -0
new file mode 100644
index 0000000..d2ec010

kernel/configs/xen.config line 4

Quoted 4 lines
kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

Quoted 6 lines
Quoted 2 lines

If PCI is not supported on the arch this won't be selected as kconfig would not allow for it, what would be the issue of keeping it here?

It looks wrong to me to have an arch specific option here. Moreover many ARM boards don't even have PCI, so it looks even worse. CONFIG_PCI_XEN is certainly not a generic config option for Xen.

OK fair enough.

Quoted 8 lines
Quoted 3 lines

What xen instances
would we not want to have this enabled for and can we instead manage that through Kconfig magic by negating PCI_XEN for it?

Everything can be fixed via Kconfig magic, the point of this exercise is to try to avoid it.

Are there any cases on x86 where you don't actually want CONFIG_PCI_XEN?

Not that I can think of.

Quoted 3 lines

If not, then why don't just enable it automatically and silently if CONFIG_PCI is selected? If we did that, we could avoid specifying it here.

CONFIG_PCI_XEN already depends depends on PCI && XEN so I think its safe to just put it in blindly for x86.

Quoted 2 lines

In any case, given that CONFIG_PCI_XEN is only defined on x86, I think it should be in arch/x86/configs/xen.config.

OK!

Will respin.

Luis

#21 lore raw

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

In reply to Luis R. Rodriguez
Quoted 68 lines · Luis R. Rodriguez
Quoted 58 lines · Stefano Stabellini
Quoted 57 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -1
new file mode 100644
index 0000000..d2ec010
--- /dev/null
Quoted 8 lines

kernel/configs/xen.config line 4

Quoted 6 lines

+++ b/kernel/configs/xen.config

kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

Quoted 2 lines

If PCI is not supported on the arch this won't be selected as kconfig would not allow for it, what would be the issue of keeping it here?

It looks wrong to me to have an arch specific option here. Moreover many ARM boards don't even have PCI, so it looks even worse. CONFIG_PCI_XEN is certainly not a generic config option for Xen.

Quoted 3 lines

What xen instances
would we not want to have this enabled for and can we instead manage that through Kconfig magic by negating PCI_XEN for it?

Everything can be fixed via Kconfig magic, the point of this exercise is to try to avoid it.

Are there any cases on x86 where you don't actually want CONFIG_PCI_XEN? If not, then why don't just enable it automatically and silently if CONFIG_PCI is selected? If we did that, we could avoid specifying it here.

In any case, given that CONFIG_PCI_XEN is only defined on x86, I think it should be in arch/x86/configs/xen.config.

#22 lore raw

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

In reply to Stefano Stabellini
Quoted 58 lines · Stefano Stabellini
Quoted 57 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -1
new file mode 100644
index 0000000..d2ec010
--- /dev/null
Quoted 8 lines

kernel/configs/xen.config line 4

Quoted 6 lines

+++ b/kernel/configs/xen.config

kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

If PCI is not supported on the arch this won't be selected as kconfig would not allow for it, what would be the issue of keeping it here? What xen instances would we not want to have this enabled for and can we instead manage that through Kconfig magic by negating PCI_XEN for it?

Quoted 11 lines

kernel/configs/xen.config line 13

Quoted 9 lines
kernel/configs/xen.config new file +9 -0
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m

neither should this

OK!

Quoted 11 lines
Quoted 11 lines
kernel/configs/xen.config new file +11 -0
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y
+CONFIG_XENFS=m
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
Quoted 8 lines

kernel/configs/xen.config line 30

Quoted 6 lines
kernel/configs/xen.config new file +6 -0
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

and this

OK!

Luis

#23 lore raw

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

In reply to Luis R. Rodriguez
Quoted 59 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.

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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +0 -0
new file mode 100644
index 0000000..d2ec010

kernel/configs/xen.config line 4

Quoted 4 lines
kernel/configs/xen.config new file +4 -0
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y

This shouldn't be here

kernel/configs/xen.config line 13

Quoted 9 lines
kernel/configs/xen.config new file +9 -0
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m

neither should this

Quoted 7 lines
kernel/configs/xen.config new file +7 -0
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y

kernel/configs/xen.config line 30

Quoted 10 lines
kernel/configs/xen.config new file +10 -0
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m

and this

Quoted 32 lines
scripts/kconfig/Makefile +5 -0
index ff612b0..f4a8f89 100644
@@ -117,6 +117,10 @@ PHONY += kvmconfig
 kvmconfig:
 	$(call mergeconfig,kvm_guest)
 
+PHONY += xenconfig
+xenconfig:
+	$(call mergeconfig,xen)
+
 PHONY += tinyconfig
 tinyconfig: allnoconfig
 	$(call mergeconfig,tiny)
@@ -142,6 +146,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 · 7 lines
2.1.1


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#24 lore raw

PATCH v2 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.

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]>
Cc Ian Campbell <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/configs/xen.config |  7 +++++++
 kernel/configs/xen.config   | 30 ++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile    |  5 +++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/x86/configs/xen.config
 create mode 100644 kernel/configs/xen.config
arch/x86/configs/xen.config new file +7 -0
new file mode 100644
index 0000000..92b8587f
@@ -0,0 +1,7 @@
+# x86 xen specific config options
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MCE_LOG=y
kernel/configs/xen.config new file +30 -0
new file mode 100644
index 0000000..d2ec010
@@ -0,0 +1,30 @@
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_TCG_XEN=m
+CONFIG_XEN_WDT=m
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BACKEND=y
+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_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_ACPI_PROCESSOR=m
scripts/kconfig/Makefile +5 -0
index ff612b0..f4a8f89 100644
@@ -117,6 +117,10 @@ PHONY += kvmconfig
 kvmconfig:
 	$(call mergeconfig,kvm_guest)
 
+PHONY += xenconfig
+xenconfig:
+	$(call mergeconfig,xen)
+
 PHONY += tinyconfig
 tinyconfig: allnoconfig
 	$(call mergeconfig,tiny)
@@ -142,6 +146,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.1.1