x86/arm64: add xenconfig
Subsystems (5)
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
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
@@ -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
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
Cc David Vrabel <[email protected]>Cc Ian Campbell <[email protected]>Cc Konrad Rzeszutek Wilk <[email protected]>Acked-by David Rientjes <[email protected]>Acked-by Borislav Petkov <[email protected]>Signed-off-by Luis R. Rodriguez <[email protected]>
Quoted 19 lines
scripts/kconfig/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/kconfig/Makefile +1
-1@@ -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 stuffSignature · 1 line
2.1.1
Re: [PATCH v2 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm
In reply to Luis R. RodriguezQuoted 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
Cc David Vrabel <[email protected]>Cc Ian Campbell <[email protected]>Cc Konrad Rzeszutek Wilk <[email protected]>Acked-by David Rientjes <[email protected]>Acked-by Borislav Petkov <[email protected]>Signed-off-by Luis R. Rodriguez <[email protected]>
Quoted 19 lines
scripts/kconfig/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/kconfig/Makefile +1
-1@@ -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 stuffSignature · 1 line
2.1.1
PATCH v2 1/2 x86, platform, xen, kconfig: clarify kvmconfig is for kvm
In reply to Luis R. RodriguezFrom: "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
@@ -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
PATCH v2 2/2 x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezFrom: "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 | 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
@@ -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
@@ -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
@@ -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
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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[email protected]>
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezQuoted 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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[email protected]>
Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezHello 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@@ -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
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@@ -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=ykernel/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=mThe common fragment config looks good for both ARM32 and ARM64:
Quoted 1 line
Acked-by Julien Grall <[email protected]>
Can someone apply this? Who should this go through?
Luis
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@@ -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=ykernel/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=mThe common fragment config looks good for both ARM32 and ARM64:
Quoted 3 lines
Quoted 1 line
Acked-by Julien Grall <[email protected]>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
Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
Quoted 3 lines · Julien Grall
Stefano had some comments on this patch. See:
http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg01531.html
I see now sorry about that, will address and respin.
Luis
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Julien GrallQuoted 3 lines · Julien Grall
Stefano had some comments on this patch. See:
http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg01531.html
I see now sorry about that, will address and respin.
Luis
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezHello Luis,
Quoted 39 lines · Luis R. Rodriguez
Quoted 39 lines
Quoted 26 lines
kernel/configs/xen.config new file +20
-0@@ -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=ykernel/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=mThe common fragment config looks good for both ARM32 and ARM64:
Quoted 3 lines
Quoted 1 line
Acked-by Julien Grall <[email protected]>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
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Julien GrallQuoted 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@@ -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=ykernel/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=mThe common fragment config looks good for both ARM32 and ARM64:
Quoted 1 line
Acked-by Julien Grall <[email protected]>
Can someone apply this? Who should this go through?
Luis
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezHello 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@@ -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
Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezQuoted 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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-0
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@@ -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 stuffSignature · 7 lines
2.1.1 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-1--- /dev/null
Quoted 8 lines
kernel/configs/xen.config line 4
Quoted 6 lines
+++
b/kernel/configs/xen.configkernel/configs/xen.config new file +4
-0@@ -0,0 +1,30 @@ +# generic config +CONFIG_XEN=y +CONFIG_XEN_DOM0=y +CONFIG_PCI_XEN=yThis 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=mneither 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=mand this
OK!
Luis
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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-1--- /dev/nullQuoted 8 lines
kernel/configs/xen.config line 4
Quoted 6 lines
+++
b/kernel/configs/xen.configkernel/configs/xen.config new file +4
-0@@ -0,0 +1,30 @@ +# generic config +CONFIG_XEN=y +CONFIG_XEN_DOM0=y +CONFIG_PCI_XEN=yThis 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 throughKconfigmagic by negatingPCI_XENfor 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.
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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-0kernel/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=yThis 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_XENis 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 throughKconfigmagic by negatingPCI_XENfor it?Everything can be fixed via
Kconfigmagic, 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_PCIis 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_XENis only defined on x86, I think it should be inarch/x86/configs/xen.config.
OK!
Will respin.
Luis
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Stefano StabelliniQuoted 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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-0kernel/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=yThis 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_XENis 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 throughKconfigmagic by negatingPCI_XENfor it?Everything can be fixed via
Kconfigmagic, 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_PCIis 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_XENis only defined on x86, I think it should be inarch/x86/configs/xen.config.
OK!
Will respin.
Luis
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezQuoted 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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-1--- /dev/nullQuoted 8 lines
kernel/configs/xen.config line 4
Quoted 6 lines
+++
b/kernel/configs/xen.configkernel/configs/xen.config new file +4
-0@@ -0,0 +1,30 @@ +# generic config +CONFIG_XEN=y +CONFIG_XEN_DOM0=y +CONFIG_PCI_XEN=yThis 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 throughKconfigmagic by negatingPCI_XENfor 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.
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Stefano StabelliniQuoted 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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-1--- /dev/null
Quoted 8 lines
kernel/configs/xen.config line 4
Quoted 6 lines
+++
b/kernel/configs/xen.configkernel/configs/xen.config new file +4
-0@@ -0,0 +1,30 @@ +# generic config +CONFIG_XEN=y +CONFIG_XEN_DOM0=y +CONFIG_PCI_XEN=yThis 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=mneither 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=mand this
OK!
Luis
Re: [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezQuoted 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]>Reviewed-by Josh Triplett <[email protected]>Signed-off-by Luis R. Rodriguez <[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.configarch/x86/configs/xen.config new file +7
-0@@ -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=ykernel/configs/xen.config new file +0
-0
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@@ -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 stuffSignature · 7 lines
2.1.1 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
PATCH v2 2/2 x86, arm, platform, xen, kconfig: add xen defconfig helper
In reply to Luis R. RodriguezFrom: "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 | 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
@@ -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
@@ -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
@@ -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