|
|
2 bulan lalu | |
|---|---|---|
| .. | ||
| Kconfig | 3 bulan lalu | |
| README.md | 2 bulan lalu | |
| README_zh.md | 2 bulan lalu | |
| SConscript | 3 tahun lalu | |
| virtio.c | 3 bulan lalu | |
| virtio.h | 3 bulan lalu | |
| virtio_blk.c | 3 bulan lalu | |
| virtio_blk.h | 2 tahun lalu | |
| virtio_console.c | 3 bulan lalu | |
| virtio_console.h | 2 tahun lalu | |
| virtio_gpu.c | 3 bulan lalu | |
| virtio_gpu.h | 2 tahun lalu | |
| virtio_input.c | 3 bulan lalu | |
| virtio_input.h | 2 tahun lalu | |
| virtio_input_event_codes.h | 2 tahun lalu | |
| virtio_mmio.h | 2 tahun lalu | |
| virtio_net.c | 3 bulan lalu | |
| virtio_net.h | 2 tahun lalu | |
| virtio_queue.h | 2 tahun lalu | |
中文 | English
The VirtIO driver provides support for virtual I/O devices in RT-Thread, primarily used in virtualized environments like QEMU.
The driver now supports both legacy and modern VirtIO specifications:
Use menuconfig to configure VirtIO support:
RT-Thread Components → Device Drivers → Using VirtIO device drivers
Choose between legacy and modern VirtIO:
RT-Thread Components → Device Drivers → Using VirtIO device drivers → VirtIO Version
Options:
Enable individual VirtIO devices:
RT_USING_VIRTIO_BLK: VirtIO block device supportRT_USING_VIRTIO_NET: VirtIO network device supportRT_USING_VIRTIO_CONSOLE: VirtIO console device supportRT_USING_VIRTIO_GPU: VirtIO GPU device supportRT_USING_VIRTIO_INPUT: VirtIO input device supportChange the VirtIO version in menuconfig:
RT-Thread Components → Device Drivers → Using VirtIO device drivers → VirtIO Version
→ Select "VirtIO Modern (v1.0+)"
Rebuild your application
The driver will automatically negotiate the VERSION_1 feature with the device
The driver automatically detects the device version from the MMIO config and adapts its behavior accordingly. Both legacy (version 0x1) and modern (version 0x2) devices are supported in the same build.
The following BSPs have been updated to support both legacy and modern VirtIO:
qemu-virt64-riscv: QEMU RISC-V 64-bitqemu-virt64-aarch64: QEMU ARM64 (AArch64)Apache-2.0