nuttx/drivers/vhost/Kconfig
zhanghongyu 53ac762e79 drivers/vhost: Optimize vhost-net performance and robustness
Suppress the peer notifications while a ring keeps delivering work, batch
the receive completions into one kick per burst and drop the redundant
txdone signal from the transmit path.  Validate the peer controlled frame
lengths, accept descriptor chains on both lanes, keep every ring access on
the upper half's work thread so the interrupt context callbacks stay lock
free, and prefer the MAC from the configuration space, falling back to the
Kconfig address or a random one.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-09-27 18:41:30 +08:00

52 lines
1.5 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config ARCH_HAVE_VHOST_IOMAP
bool
default n
config DRIVERS_VHOST
bool
select OPENAMP
select SCHED_WORKQUEUE
default n
---help---
Framework for implementing the DEVICE side of virtio links
(the peer's driver uses us as the device, e.g. a remoteproc
master like Linux). rptun registers device-role vdevs from the
resource table through this bus; without it such vdevs are
rejected with -ENODEV.
config DRIVERS_VHOST_RNG
bool "Virtual Host Rng Device Support"
default n
select DRIVERS_VHOST
config DRIVERS_VHOST_NET
bool "Virtual Host Network Device Support"
default n
depends on NETDEVICES
select ARCH_HAVE_NETDEV_STATISTICS
select DRIVERS_VHOST
---help---
Device-role virtio-net: expose this side as a network card to a
peer processor running a standard virtio-net driver (e.g. Linux
via remoteproc), providing a NuttX ethN interface.
config DRIVERS_VHOST_NET_MACADDR
hex "vhost-net MAC address"
default 0x0
depends on DRIVERS_VHOST_NET
---help---
Fixed, software-assigned, locally administered MAC address
presented to the network stack when the peer does not publish a
valid address in the configuration space. Set to 0 to generate
a random locally administered unicast address instead.
config DRIVERS_VHOST_RPMSG
bool "Virtual Host Rpmsg Device Support"
default n
select RPMSG_VIRTIO
select DRIVERS_VHOST