* [PATCH v5 0/2] x86: add xenconfig
@ 2015-05-19 23:57 Luis R. Rodriguez
2015-05-19 23:57 ` [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm Luis R. Rodriguez
2015-05-19 23:57 ` [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper Luis R. Rodriguez
0 siblings, 2 replies; 6+ messages in thread
From: Luis R. Rodriguez @ 2015-05-19 23:57 UTC (permalink / raw)
To: david.vrabel, konrad.wilk, Ian.Campbell, xen-devel
Cc: mmarek, mtosatti, Luis R. Rodriguez, rdunlap, josh, penberg,
yamada.masahiro, fengguang.wu, levinsasha928, rientjes, bp
From: "Luis R. Rodriguez" <mcgrof@suse.com>
David Vrabel, please let me know if there are any issues. These two
patches are based on your xen/tip.git tree on the for-linus-4.1b branch.
This v5 is a respin the the old v4 series to work with the latest code.
I had stopped on the v4 at that time we were discussing doing major
Kconfig changes. In the end we decided to not go forward with tons of
Kconfig changes. As time went by though I did notice the v4 series required
on modification due to Masahiro Yamada's commit: "kbuild: add generic
mergeconfig target, %.config". This v5 series then simply adjusts
the target xenconfig to work with those changes.
The kconfig entries have not been changed but I did verify they're all
still there and those that arch specific remain arch specific.
Luis R. Rodriguez (2):
x86, platform, xen, kconfig: clarify kvmconfig is for kvm
x86, arm, platform, xen, kconfig: add xen defconfig helper
arch/x86/configs/xen.config | 14 ++++++++++++++
kernel/configs/xen.config | 32 ++++++++++++++++++++++++++++++++
scripts/kconfig/Makefile | 7 ++++++-
3 files changed, 52 insertions(+), 1 deletion(-)
create mode 100644 arch/x86/configs/xen.config
create mode 100644 kernel/configs/xen.config
--
2.3.2.209.gd67f9d5.dirty
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm
2015-05-19 23:57 [PATCH v5 0/2] x86: add xenconfig Luis R. Rodriguez
@ 2015-05-19 23:57 ` Luis R. Rodriguez
2015-05-20 0:51 ` josh
2015-05-19 23:57 ` [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper Luis R. Rodriguez
1 sibling, 1 reply; 6+ messages in thread
From: Luis R. Rodriguez @ 2015-05-19 23:57 UTC (permalink / raw)
To: david.vrabel, konrad.wilk, Ian.Campbell, xen-devel
Cc: mmarek, mtosatti, Luis R. Rodriguez, rdunlap, josh, penberg,
yamada.masahiro, fengguang.wu, levinsasha928, rientjes, bp
From: "Luis R. Rodriguez" <mcgrof@suse.com>
We'll be adding options for xen as well.
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: penberg@kernel.org
Cc: levinsasha928@gmail.com
Cc: mtosatti@redhat.com
Cc: fengguang.wu@intel.com
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
---
scripts/kconfig/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index d9b1fef..6950032 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -139,7 +139,7 @@ help:
@echo ' randconfig - New config with random answer to all options'
@echo ' listnewconfig - List new options'
@echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their default value'
- @echo ' kvmconfig - Enable additional options for guest kernel support'
+ @echo ' kvmconfig - Enable additional options for kvm guest kernel support'
@echo ' tinyconfig - Configure the tiniest possible kernel'
# lxdialog stuff
--
2.3.2.209.gd67f9d5.dirty
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
2015-05-19 23:57 [PATCH v5 0/2] x86: add xenconfig Luis R. Rodriguez
2015-05-19 23:57 ` [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm Luis R. Rodriguez
@ 2015-05-19 23:57 ` Luis R. Rodriguez
2015-05-20 1:41 ` David Rientjes
1 sibling, 1 reply; 6+ messages in thread
From: Luis R. Rodriguez @ 2015-05-19 23:57 UTC (permalink / raw)
To: david.vrabel, konrad.wilk, Ian.Campbell, xen-devel
Cc: mmarek, mtosatti, Luis R. Rodriguez, rdunlap, josh, penberg,
yamada.masahiro, fengguang.wu, levinsasha928, rientjes, bp
From: "Luis R. Rodriguez" <mcgrof@suse.com>
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 <josh@joshtriplett.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: penberg@kernel.org
Cc: levinsasha928@gmail.com
Cc: mtosatti@redhat.com
Cc: fengguang.wu@intel.com
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Michal Marek <mmarek@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
---
arch/x86/configs/xen.config | 14 ++++++++++++++
kernel/configs/xen.config | 32 ++++++++++++++++++++++++++++++++
scripts/kconfig/Makefile | 5 +++++
3 files changed, 51 insertions(+)
create mode 100644 arch/x86/configs/xen.config
create mode 100644 kernel/configs/xen.config
diff --git a/arch/x86/configs/xen.config b/arch/x86/configs/xen.config
new file mode 100644
index 0000000..fabad7f
--- /dev/null
+++ b/arch/x86/configs/xen.config
@@ -0,0 +1,14 @@
+CONFIG_HYPERVISOR_GUEST=y
+# x86 xen specific config options
+CONFIG_XEN_PV=y
+CONFIG_XEN_PVH=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+# CONFIG_XEN_DEBUG_FS is not set
+CONFIG_XEN_MCE_LOG=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_ACPI_PROCESSOR=m
+# x86 specific backend drivers
+CONFIG_XEN_PCIDEV_BACKEND=m
+# x86 specific frontend drivers
+CONFIG_XEN_PCIDEV_FRONTEND=m
diff --git a/kernel/configs/xen.config b/kernel/configs/xen.config
new file mode 100644
index 0000000..9d23733
--- /dev/null
+++ b/kernel/configs/xen.config
@@ -0,0 +1,32 @@
+CONFIG_PARAVIRT=y
+# generic config
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+# backend drivers
+CONFIG_XEN_BACKEND=y
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_HVC_XEN=y
+CONFIG_XEN_WDT=m
+CONFIG_XEN_SCSI_BACKEND=m
+# frontend drivers
+CONFIG_XEN_FRONTEND=y
+CONFIG_XEN_FBDEV_FRONTEND=m
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m
+CONFIG_XEN_SCSI_FRONTEND=m
+# others
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=m
+CONFIG_XEN_BLKDEV_FRONTEND=m
+CONFIG_XEN_NETDEV_FRONTEND=m
+CONFIG_XENFS=m
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PRIVCMD=m
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 6950032..f52abae 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -115,6 +115,10 @@ PHONY += kvmconfig
kvmconfig: kvm_guest.config
@:
+PHONY += xenconfig
+xenconfig: xen.config
+ @:
+
PHONY += tinyconfig
tinyconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
@@ -140,6 +144,7 @@ help:
@echo ' listnewconfig - List new options'
@echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their default value'
@echo ' kvmconfig - Enable additional options for kvm guest kernel support'
+ @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support'
@echo ' tinyconfig - Configure the tiniest possible kernel'
# lxdialog stuff
--
2.3.2.209.gd67f9d5.dirty
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm
2015-05-19 23:57 ` [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm Luis R. Rodriguez
@ 2015-05-20 0:51 ` josh
0 siblings, 0 replies; 6+ messages in thread
From: josh @ 2015-05-20 0:51 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: mmarek, mtosatti, Ian.Campbell, Luis R. Rodriguez, rdunlap,
penberg, yamada.masahiro, fengguang.wu, david.vrabel, rientjes,
xen-devel, bp, levinsasha928
On Tue, May 19, 2015 at 04:57:17PM -0700, Luis R. Rodriguez wrote:
> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>
> We'll be adding options for xen as well.
>
> Cc: Josh Triplett <josh@joshtriplett.org>
> Cc: Borislav Petkov <bp@suse.de>
> Cc: Pekka Enberg <penberg@kernel.org>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Michal Marek <mmarek@suse.cz>
> Cc: Randy Dunlap <rdunlap@infradead.org>
> Cc: penberg@kernel.org
> Cc: levinsasha928@gmail.com
> Cc: mtosatti@redhat.com
> Cc: fengguang.wu@intel.com
> Cc: David Vrabel <david.vrabel@citrix.com>
> Cc: Ian Campbell <Ian.Campbell@citrix.com>
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: xen-devel@lists.xenproject.org
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Acked-by: David Rientjes <rientjes@google.com>
> Acked-by: Borislav Petkov <bp@suse.de>
> Acked-by: Michal Marek <mmarek@suse.cz>
> Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
> scripts/kconfig/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index d9b1fef..6950032 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -139,7 +139,7 @@ help:
> @echo ' randconfig - New config with random answer to all options'
> @echo ' listnewconfig - List new options'
> @echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their default value'
> - @echo ' kvmconfig - Enable additional options for guest kernel support'
> + @echo ' kvmconfig - Enable additional options for kvm guest kernel support'
> @echo ' tinyconfig - Configure the tiniest possible kernel'
>
> # lxdialog stuff
> --
> 2.3.2.209.gd67f9d5.dirty
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
2015-05-19 23:57 ` [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper Luis R. Rodriguez
@ 2015-05-20 1:41 ` David Rientjes
2015-05-20 16:12 ` Luis R. Rodriguez
0 siblings, 1 reply; 6+ messages in thread
From: David Rientjes @ 2015-05-20 1:41 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: mmarek, mtosatti, Ian.Campbell, Luis R. Rodriguez, rdunlap, josh,
penberg, yamada.masahiro, fengguang.wu, david.vrabel, xen-devel,
bp, levinsasha928
On Tue, 19 May 2015, Luis R. Rodriguez wrote:
> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>
> 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.
>
make allnoconfig; make xenconfig doesn't appear to work, at least on x86.
(This also wasn't cc'd to vger mailing list.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper
2015-05-20 1:41 ` David Rientjes
@ 2015-05-20 16:12 ` Luis R. Rodriguez
0 siblings, 0 replies; 6+ messages in thread
From: Luis R. Rodriguez @ 2015-05-20 16:12 UTC (permalink / raw)
To: David Rientjes
Cc: mmarek, rdunlap, Ian.Campbell, Luis R. Rodriguez, josh, mtosatti,
penberg, yamada.masahiro, fengguang.wu, david.vrabel, xen-devel,
bp, levinsasha928
On Tue, May 19, 2015 at 06:41:19PM -0700, David Rientjes wrote:
> On Tue, 19 May 2015, Luis R. Rodriguez wrote:
>
> > From: "Luis R. Rodriguez" <mcgrof@suse.com>
> >
> > 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.
> >
>
> make allnoconfig; make xenconfig doesn't appear to work, at least on x86.
> (This also wasn't cc'd to vger mailing list.)
Crap, thanks, guess we need some more global options. Working on adding those.
I thought this used to work from 'allnoconfig'. Will amend and fix, thanks.
Luis
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-05-20 16:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 23:57 [PATCH v5 0/2] x86: add xenconfig Luis R. Rodriguez
2015-05-19 23:57 ` [PATCH v5 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm Luis R. Rodriguez
2015-05-20 0:51 ` josh
2015-05-19 23:57 ` [PATCH v5 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper Luis R. Rodriguez
2015-05-20 1:41 ` David Rientjes
2015-05-20 16:12 ` Luis R. Rodriguez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.