CV-Bowen opened a new pull request, #4032: URL: https://github.com/apache/nuttx-apps/pull/4032
## Summary Add the nsh `virtio` command for the `VIRTIOIOC_DUMP` ioctl added by apache/nuttx#21742: ``` virtio dump [type] dump all VirtIO devices, or only those of <type> virtio -h usage ``` It opens `/dev/virtio` and passes the optional type (the device name as printed by the dump, e.g. `Block`, `Network`) to the kernel, which prints to syslog. Built when `CONFIG_DRIVERS_VIRTIO=y`; disable with `CONFIG_NSH_DISABLE_VIRTIO` (default `DEFAULT_SMALL`). Depends on apache/nuttx#21742 ## Impact New nsh command, only when `CONFIG_DRIVERS_VIRTIO=y`. No other change. ## 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 qemu-armv8a:netnsh with apache/nuttx#21742; the commands and output are in that PR's Testing section (`virtio -h`, `virtio dump`, `virtio dump Block`, `virtio dump Foo`, `virtio bad`). checkpatch passes; builds with 0 warnings. -- 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]
