Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300791 > unrolled thread

[PATCH 2/2] arm: configs: add kvm_defconfig

Started byAndre Przywara <andre.przywara@arm.com>
First post2016-01-04 16:00 +0100
Last post2016-01-04 16:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] arm: configs: add kvm_defconfig Andre Przywara <andre.przywara@arm.com> - 2016-01-04 16:00 +0100
    Re: [PATCH 2/2] arm: configs: add kvm_defconfig Arnd Bergmann <arnd@arndb.de> - 2016-01-04 16:20 +0100

#1300791 — [PATCH 2/2] arm: configs: add kvm_defconfig

FromAndre Przywara <andre.przywara@arm.com>
Date2016-01-04 16:00 +0100
Subject[PATCH 2/2] arm: configs: add kvm_defconfig
Message-ID<qNeM2-4LW-3@gated-at.bofh.it>
This new config enables KVM (and thus LPAE) on top of
multi_v7_defconfig. This creates a kernel that can _host_ KVM guests,
for guests a multi_v7_defconfig with virtio drivers is sufficient.
Since LPAE kernels are not compatible with non-LPAE capable hardware,
this has to be separate from the existing multi_v7_defconfig.

The purpose of this new defconfig is both to simplify creation of KVM
host kernels as well as to give the LPAE option some better testing
coverage, as the enlarged dma_addr_t and phys_addr_t types create some
headache to some drivers.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 arch/arm/configs/{multi_v7_defconfig => kvm_defconfig} | 6 ++++++
 1 file changed, 6 insertions(+)
 copy arch/arm/configs/{multi_v7_defconfig => kvm_defconfig} (99%)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/kvm_defconfig
similarity index 99%
copy from arch/arm/configs/multi_v7_defconfig
copy to arch/arm/configs/kvm_defconfig
index 4ee2f36..2a3d81a 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/kvm_defconfig
@@ -24,6 +24,7 @@ CONFIG_ARCH_AT91=y
 CONFIG_SOC_SAMA5D2=y
 CONFIG_SOC_SAMA5D3=y
 CONFIG_SOC_SAMA5D4=y
+CONFIG_ARCH_AXXIA=y
 CONFIG_ARCH_BCM=y
 CONFIG_ARCH_BCM_CYGNUS=y
 CONFIG_ARCH_BCM_NSP=y
@@ -105,6 +106,8 @@ CONFIG_ARCH_VEXPRESS_CA9X4=y
 CONFIG_ARCH_VEXPRESS_TC2_PM=y
 CONFIG_ARCH_WM8850=y
 CONFIG_ARCH_ZYNQ=y
+CONFIG_ARM_LPAE=y
+CONFIG_TRANSPARENT_HUGEPAGE=y
 CONFIG_TRUSTED_FOUNDATIONS=y
 CONFIG_PCI=y
 CONFIG_PCI_HOST_GENERIC=y
@@ -204,6 +207,7 @@ CONFIG_SATA_MV=y
 CONFIG_SATA_RCAR=y
 CONFIG_NETDEVICES=y
 CONFIG_VIRTIO_NET=y
+CONFIG_VHOST_NET=y
 CONFIG_HIX5HD2_GMAC=y
 CONFIG_SUN4I_EMAC=y
 CONFIG_MACB=y
@@ -753,3 +757,5 @@ CONFIG_VIRTIO=y
 CONFIG_VIRTIO_PCI=y
 CONFIG_VIRTIO_PCI_LEGACY=y
 CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTUALIZATION=y
+CONFIG_KVM=y
-- 
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1300817

FromArnd Bergmann <arnd@arndb.de>
Date2016-01-04 16:20 +0100
Message-ID<qNf5p-59c-47@gated-at.bofh.it>
In reply to#1300791
On Monday 04 January 2016 14:50:34 Andre Przywara wrote:
> This new config enables KVM (and thus LPAE) on top of
> multi_v7_defconfig. This creates a kernel that can _host_ KVM guests,
> for guests a multi_v7_defconfig with virtio drivers is sufficient.
> Since LPAE kernels are not compatible with non-LPAE capable hardware,
> this has to be separate from the existing multi_v7_defconfig.
> 
> The purpose of this new defconfig is both to simplify creation of KVM
> host kernels as well as to give the LPAE option some better testing
> coverage, as the enlarged dma_addr_t and phys_addr_t types create some
> headache to some drivers.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> 

I agree about the purpose, but I want something better here:

* Use config fragments to just set the few extra options that
  we can't enable otherwise, and have a shared config file
  with the normal multi_v7. There is still an ongoing question
  about big-endian defconfig, which has exactly the same problem,
  and we should have a common approach for all combinations.

  We might also want to do this in a way that lets us build
  v6/v6k/v7/v7ve/v8 kernels in big-endian and little-endian
  all from the same defconfig file, with the set of platforms
  getting smaller as we go to higher arch levels.

* I really want to see the ARMv7VE dependencies sorted out.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web