[PATCH 11/13] qemu: add the nixosfi-qemu-build defconfig

Daniel Gomez <[email protected]> Fri, 12 Jun 2026 14:36:49 +0200
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Daniel Gomez <[email protected]>

Add a defconfig that exercises the QEMU build on the nixosfi imageless
backend. It enables CONFIG_QEMU on top of a nixosfi qsu guest, so the
controller builds QEMU from the upstream tree and installs it sudolessly
under the controller data path (qemu-destdir).

No qemu binary path is set by hand: with CONFIG_QEMU enabled,
QSU_QEMU_BINARY defaults to QEMU_BIN_PATH, which derives from
QEMU_INSTALL_DIR, so the binary qsu execs is exactly the one the qemu
role installs. Building QEMU and pointing qsu at it is therefore a single
knob.

Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>
---
 defconfigs/nixosfi-qemu-build | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/defconfigs/nixosfi-qemu-build b/defconfigs/nixosfi-qemu-build
new file mode 100644
index 00000000..68c08911
--- /dev/null
+++ b/defconfigs/nixosfi-qemu-build
@@ -0,0 +1,27 @@
+CONFIG_NIXOSFI=y
+
+CONFIG_QEMU=y
+CONFIG_QEMU_UPSTREAM=y
+
+CONFIG_WORKFLOWS=y
+CONFIG_WORKFLOW_LINUX_CUSTOM=y
+CONFIG_BOOTLINUX=y
+CONFIG_BOOTLINUX_DIRECT_BOOT=y
+
+# CONFIG_KDEVOPS_BASELINE_AND_DEV is not set
+
+CONFIG_QSU_NVME_DRIVE_COUNT=4
+CONFIG_QSU_NVME_DRIVE_SIZE_GB=20
+CONFIG_QSU_NVME_LOGICAL_BLOCK_SIZE="4096"
+CONFIG_QSU_NVME_PHYSICAL_BLOCK_SIZE="4096"
+CONFIG_QSU_NVME_MIN_IO_SIZE="4096"
+CONFIG_QSU_NVME_OPT_IO_SIZE="4096"
+CONFIG_QSU_NVME_DISCARD_GRANULARITY="4096"
+CONFIG_QSU_NVME_MDTS="9"
+
+CONFIG_QSU_NVME_ATOMIC_AWUN="15"
+CONFIG_QSU_NVME_ATOMIC_AWUPF="15"
+CONFIG_QSU_NVME_ATOMIC_NAWUN="15"
+CONFIG_QSU_NVME_ATOMIC_NAWUPF="15"
+
+CONFIG_ANSIBLE_CFG_CALLBACK_PLUGIN_LUCID=y

-- 
2.54.0