Skip to content

[Bug] virtio驱动中virtio_queue_init函数中开头的queue_num_max检测有问题 #11106

Closed

Description

@riturbo

RT-Thread Version

5.3.0

Hardware Type/Architectures

arm FVP

Develop Toolchain

GCC

Describe the bug

根据virtio规范,QueueSel作用于QueueNumMax, QueueNum, QueueReady, QueueDescLow,QueueDescHigh, QueueAvailLow, QueueAvailHigh, QueueUsedLow and QueueUsedHigh。
因此virtio_queue_init函数开头处应当是先选择queue, dev->mmio_config->queue_sel = queue_index;然后去检测queue_num_max。并且queue_num_max和queue_index无关,无需检测。

实际上这个驱动在arm FVP上就会触发这个问题。

Other additional context

No response

Activity

  1. BernardXiong commented on Jan 2, 2026

    @BernardXiong
    Member

    @riturbo 请对 #11114 进行review,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions