CV-Bowen opened a new pull request, #22336: URL: https://github.com/apache/nuttx/pull/22336
## Summary apache/nuttx#22261 (BMP part 1) added `CONFIG_BMP`, where every CPU runs its own kernel instance from one shared image, and `include/nuttx/percpu.h` with `DEFINE_PER_CPU_BMP()`, `DEFINE_PER_CPU_BSS_BMP()` and `this_cpu_var_bmp()` for data that must be private to each CPU. Without `CONFIG_BMP` the macros expand to the plain variable, so nothing changes for existing configurations. `drivers/virtio: keep the driver state per CPU in BMP mode`: with the virtio bus per CPU (apache/nuttx#22333), every CPU registers its own virtio drivers, and a `virtio_driver` is linked into its bus through its own node, so the driver structures become per CPU, together with the counters and tables the drivers use to name and track their devices (blk, input, net, rng and serial indices, the gpu table, the gpio, i2c and spi bus state, the serial console). ## Impact No change without `CONFIG_BMP`. ## Testing Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205 The commit builds qemu-armv8a:netnsh with every virtio driver enabled (blk, crypto, gpio, gpu, i2c, input, net, ping, rng, rpmb, rpmsg, serial, sound, spi, plus mmio and pci and their subsystem dependencies) with 0 warnings, and the same configuration compiles with BMP on with 0 errors and 0 warnings. No regression in rpmsg: sim:rpserver/rpproxy and qemu-armv8a:rpserver/rpproxy boot and pass the fixed rpmsg cases (dump, ping, rpmsgfs; 15/15). qemu-armv8a was built with LIBC_ENVPATH and BINFMT_CHECKEXEC disabled, which current master needs for nxinit to start nsh there; unrelated to this change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
