[PATCH V3] powerpc: Add KVM guest defconfig

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2809d

2 messages, 2 authors, 2018-11-27 · open the first message on its own page

[PATCH V3] powerpc: Add KVM guest defconfig

From: <hidden>
Date: 2018-11-15 06:51:52

From: Satheesh Rajendran <redacted>

This patch adds new defconfig options for powerpc KVM guest
and guest.config with additional config symbols enabled,
which is to build kernel to boot without initramfs and can be used
as place holder for guest specific additional config symbols in future.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Satheesh Rajendran <redacted>
---
Changes Since:
    V1:
        * replaced kvm to KVM in commit msg.
    V2:
        * moved XFS config symbol enable into 
          ppc64_defconfig, based on suggestion from Michael.  

 arch/powerpc/Makefile             |  8 ++++++++
 arch/powerpc/configs/guest.config | 13 +++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 arch/powerpc/configs/guest.config
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 8a2ce14d68d0..0bff8bd82ed5 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -317,6 +317,14 @@ PHONY += ppc64le_defconfig
 ppc64le_defconfig:
 	$(call merge_into_defconfig,ppc64_defconfig,le)
 
+PHONY += ppc64le_guest_defconfig
+ppc64le_guest_defconfig:
+	$(call merge_into_defconfig,ppc64_defconfig,le guest)
+
+PHONY += ppc64_guest_defconfig
+ppc64_guest_defconfig:
+	$(call merge_into_defconfig,ppc64_defconfig,be guest)
+
 PHONY += powernv_be_defconfig
 powernv_be_defconfig:
 	$(call merge_into_defconfig,powernv_defconfig,be)
diff --git a/arch/powerpc/configs/guest.config b/arch/powerpc/configs/guest.config
new file mode 100644
index 000000000000..8b8cd18ecd7c
--- /dev/null
+++ b/arch/powerpc/configs/guest.config
@@ -0,0 +1,13 @@
+CONFIG_VIRTIO_BLK=y
+CONFIG_VIRTIO_BLK_SCSI=y
+CONFIG_SCSI_VIRTIO=y
+CONFIG_VIRTIO_NET=y
+CONFIG_NET_FAILOVER=y
+CONFIG_VIRTIO_CONSOLE=y
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_KVM_GUEST=y
+CONFIG_EPAPR_PARAVIRT=y
+CONFIG_VIRTIO_BALLOON=y
+CONFIG_VHOST_NET=y
+CONFIG_VHOST=y
-- 
2.17.2

Re: [V3] powerpc: Add KVM guest defconfig

From: Michael Ellerman <hidden>
Date: 2018-11-27 09:54:22

On Thu, 2018-11-15 at 06:49:50 UTC, sathnaga@linux.vnet.ibm.com wrote:
From: Satheesh Rajendran <redacted>

This patch adds new defconfig options for powerpc KVM guest
and guest.config with additional config symbols enabled,
which is to build kernel to boot without initramfs and can be used
as place holder for guest specific additional config symbols in future.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Satheesh Rajendran <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/721c01ba8b46ddb5355bd6e6b3bbfd

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help