[openwrt/openwrt] x86/64: enable MMIO_CMDLINE_DEVICES for firecracker support

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 12 22:23:02 PDT 2021


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e07cc4699127d882f619c978c215bf2a762b61fa

commit e07cc4699127d882f619c978c215bf2a762b61fa
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Mon Oct 11 10:33:26 2021 -1000

    x86/64: enable MMIO_CMDLINE_DEVICES for firecracker support
    
    This Kernel option allows to run OpenWrt witin a `firecracker` micro VM.
    
    Firecracker is a KVM-based tool for superfast booting VMs on x86_64 and
    aarch64. It makes rootfs available to the guest as a virtio-mmio device
    and passes its address via the kernel cmdline. A kernel without
    CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES will not recognize the rootfs
    virtio-mmio device.
    
    Suggested-by: Packet Please <pktpls at systemli.org>
    Signed-off-by: Paul Spooren <mail at aparcar.org>
---
 target/linux/x86/64/config-5.10 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/x86/64/config-5.10 b/target/linux/x86/64/config-5.10
index 4e979136a5..a62e5a795a 100644
--- a/target/linux/x86/64/config-5.10
+++ b/target/linux/x86/64/config-5.10
@@ -416,6 +416,7 @@ CONFIG_VIRTIO_BLK=y
 CONFIG_VIRTIO_CONSOLE=y
 CONFIG_VIRTIO_DMA_SHARED_BUFFER=y
 CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
 CONFIG_VIRTIO_NET=y
 CONFIG_VIRTIO_PCI=y
 CONFIG_VIRTIO_PCI_LEGACY=y



More information about the lede-commits mailing list