* [PATCH] arm64/defconfig: Restore built-in 9P rootfs support
@ 2026-07-16 10:02 Anshuman Khandual
2026-07-16 11:01 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Anshuman Khandual @ 2026-07-16 10:02 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Anshuman Khandual, Krzysztof Kozlowski, Arnd Bergmann,
Eric Biggers, Linus Walleij, Alexandre Belloni, linux-kernel
Commit d521c4ca039f ("arm64: defconfig: Switch Ethernet drivers to modules")
had changed 9P and virtio-9P support from built-in to modular instead. This
breaks simple kvmtool boots using a 9P root filesystem without an initramfs
, because the kernel must mount root filesystem before it can load the 9P
modules. Also there is no change in image size with these configs built-in.
Restore the relevant 9P options as built-in.
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Eric Biggers <ebiggers@kernel.org>
Cc: Linus Walleij <linusw@kernel.org>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
arch/arm64/configs/defconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 654a102cb5bc..be9715b1e005 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -200,8 +200,8 @@ CONFIG_MAC80211=m
CONFIG_MAC80211_LEDS=y
CONFIG_RFKILL=m
CONFIG_RFKILL_GPIO=m
-CONFIG_NET_9P=m
-CONFIG_NET_9P_VIRTIO=m
+CONFIG_NET_9P=y
+CONFIG_NET_9P_VIRTIO=y
CONFIG_NFC=m
CONFIG_NFC_NCI=m
CONFIG_NFC_NXP_NCI=m
@@ -1921,7 +1921,7 @@ CONFIG_NFS_V4=y
CONFIG_NFS_V4_1=y
CONFIG_NFS_V4_2=y
CONFIG_ROOT_NFS=y
-CONFIG_9P_FS=m
+CONFIG_9P_FS=y
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ISO8859_1=y
CONFIG_SECURITY=y
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] arm64/defconfig: Restore built-in 9P rootfs support
2026-07-16 10:02 [PATCH] arm64/defconfig: Restore built-in 9P rootfs support Anshuman Khandual
@ 2026-07-16 11:01 ` Krzysztof Kozlowski
2026-07-16 11:31 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-16 11:01 UTC (permalink / raw)
To: Anshuman Khandual, linux-arm-kernel
Cc: Arnd Bergmann, Eric Biggers, Linus Walleij, Alexandre Belloni,
linux-kernel
On 16/07/2026 12:02, Anshuman Khandual wrote:
> Commit d521c4ca039f ("arm64: defconfig: Switch Ethernet drivers to modules")
> had changed 9P and virtio-9P support from built-in to modular instead. This
> breaks simple kvmtool boots using a 9P root filesystem without an initramfs
> , because the kernel must mount root filesystem before it can load the 9P
And that commit explained you must use initramfs. Nothing got broken,
because there was never a promise that a recent, virtualized environment
must work on defconfig without initramfs.
You fully control your software, so just build initramfs which is
absolutely trivial and we all moved on to that for arm64 long time ago.
> modules. Also there is no change in image size with these configs built-in.
How? How making a module a built in has no effect on size? How is this
even possible?
>
> Restore the relevant 9P options as built-in.
>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Eric Biggers <ebiggers@kernel.org>
> Cc: Linus Walleij <linusw@kernel.org>
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
> ---
> arch/arm64/configs/defconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 654a102cb5bc..be9715b1e005 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -200,8 +200,8 @@ CONFIG_MAC80211=m
> CONFIG_MAC80211_LEDS=y
> CONFIG_RFKILL=m
> CONFIG_RFKILL_GPIO=m
> -CONFIG_NET_9P=m
> -CONFIG_NET_9P_VIRTIO=m
> +CONFIG_NET_9P=y
> +CONFIG_NET_9P_VIRTIO=y
No, upgrade your build system from 90-ties to decent one to handle
initramfs.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] arm64/defconfig: Restore built-in 9P rootfs support
2026-07-16 11:01 ` Krzysztof Kozlowski
@ 2026-07-16 11:31 ` Arnd Bergmann
2026-07-17 4:16 ` Anshuman Khandual
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2026-07-16 11:31 UTC (permalink / raw)
To: Krzysztof Kozlowski, Anshuman Khandual, linux-arm-kernel
Cc: Eric Biggers, Linus Walleij, Alexandre Belloni, linux-kernel
On Thu, Jul 16, 2026, at 13:01, Krzysztof Kozlowski wrote:
> On 16/07/2026 12:02, Anshuman Khandual wrote:
>> Commit d521c4ca039f ("arm64: defconfig: Switch Ethernet drivers to modules")
>> had changed 9P and virtio-9P support from built-in to modular instead. This
>> breaks simple kvmtool boots using a 9P root filesystem without an initramfs
>> , because the kernel must mount root filesystem before it can load the 9P
>
>
> And that commit explained you must use initramfs. Nothing got broken,
> because there was never a promise that a recent, virtualized environment
> must work on defconfig without initramfs.
>
> You fully control your software, so just build initramfs which is
> absolutely trivial and we all moved on to that for arm64 long time ago.
I still regularly boot KVM guests on arm64 without an initramfs,
but I just use 'make kvm_guest.config', which turns on all the
commonly used virtio drivers as built-in. I wouldn't call
9pfs root trivial without initramfs, configuring 9p built-in
is already complicated enough.
So I agree we don't need this patch, but there is a trivial
workaround for Anshuman in case he wants to avoid doing this.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] arm64/defconfig: Restore built-in 9P rootfs support
2026-07-16 11:31 ` Arnd Bergmann
@ 2026-07-17 4:16 ` Anshuman Khandual
0 siblings, 0 replies; 4+ messages in thread
From: Anshuman Khandual @ 2026-07-17 4:16 UTC (permalink / raw)
To: Arnd Bergmann, Krzysztof Kozlowski, linux-arm-kernel
Cc: Eric Biggers, Linus Walleij, Alexandre Belloni, linux-kernel
On 16/07/26 5:01 PM, Arnd Bergmann wrote:
> On Thu, Jul 16, 2026, at 13:01, Krzysztof Kozlowski wrote:
>> On 16/07/2026 12:02, Anshuman Khandual wrote:
>>> Commit d521c4ca039f ("arm64: defconfig: Switch Ethernet drivers to modules")
>>> had changed 9P and virtio-9P support from built-in to modular instead. This
>>> breaks simple kvmtool boots using a 9P root filesystem without an initramfs
>>> , because the kernel must mount root filesystem before it can load the 9P
>>
>>
>> And that commit explained you must use initramfs. Nothing got broken,
>> because there was never a promise that a recent, virtualized environment
>> must work on defconfig without initramfs.
>>
>> You fully control your software, so just build initramfs which is
>> absolutely trivial and we all moved on to that for arm64 long time ago.
>
> I still regularly boot KVM guests on arm64 without an initramfs,
Actually that is a very normal use case particularly with KVM tool.
> but I just use 'make kvm_guest.config', which turns on all the
> commonly used virtio drivers as built-in. I wouldn't call
> 9pfs root trivial without initramfs, configuring 9p built-in
> is already complicated enough.
Alright - fair enough.
>
> So I agree we don't need this patch, but there is a trivial
> workaround for Anshuman in case he wants to avoid doing this.
The following sequence does indeed solve this problem for now.
make mrproper
make defconfig
make kvm_guest.config
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-17 4:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16 10:02 [PATCH] arm64/defconfig: Restore built-in 9P rootfs support Anshuman Khandual
2026-07-16 11:01 ` Krzysztof Kozlowski
2026-07-16 11:31 ` Arnd Bergmann
2026-07-17 4:16 ` Anshuman Khandual
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox