Repository navigation
nshlib: add the vhost command - #4043
Merged
Merged
Conversation
xiaoxiang781216
approved these changes
Nov 13, 2026
CV-Bowen
force-pushed
the
up/P80-nsh-vhost
branch
from
November 13, 2026 07:00
91c8e1f to
aa44a97
Compare
GUIDINGLI
approved these changes
Nov 13, 2026
CV-Bowen
force-pushed
the
up/P80-nsh-vhost
branch
from
November 13, 2026 09:02
aa44a97 to
3641a3a
Compare
Add "vhost dump [type]", the device-side twin of "virtio dump": it opens /dev/vhost and issues VHOSTIOC_DUMP. Both commands share one implementation that takes the device node and the ioctl. Disable it with CONFIG_NSH_DISABLE_VHOST. Signed-off-by: wangyongrong <wangyongrong@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
CV-Bowen
force-pushed
the
up/P80-nsh-vhost
branch
from
November 13, 2026 13:28
3641a3a to
80f9700
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the nsh
vhostcommand for theVHOSTIOC_DUMPioctl added byapache/nuttx#21813, the device-side twin of
virtio dump:virtioandvhostnow share one implementation that takes the devicenode and the ioctl. Built when
CONFIG_DRIVERS_VHOST=y; disable withCONFIG_NSH_DISABLE_VHOST(defaultDEFAULT_SMALL).Depends on apache/nuttx#21813
Impact
New nsh command, only when
CONFIG_DRIVERS_VHOST=y.virtiobehavesas before.
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:rpproxy with apache/nuttx#21813; the commands and output
are in that PR's Testing section.
virtio -h/virtio dumpcheckedunchanged on qemu-armv8a:rpserver. checkpatch passes; builds with 0
warnings.