CV-Bowen commented on PR #22192: URL: https://github.com/apache/nuttx/pull/22192#issuecomment-7103477853
Added `openamp: publish a virtqueue only after it is initialized` before the 1 ms retry. It extends open-amp patch 0015: 0015 made `rproc_virtio_notified()` read the vring of every non-NULL `vring_info->vq`, but `rproc_virtio_create_virtqueue()` links the virtqueue there before `virtqueue_create()` initializes it. Repeated boot testing on qemu-armv8a over ivshmem hit it once in 120 boots: the ivshmem doorbell poll ran `rproc_virtio_notified()` in interrupt context while `vhost_rng_probe()` was creating its virtqueues, and `virtqueue_navail()` read the uninitialized vring. The faster retry makes device creation overlap the peer's start-up traffic and exposes the window. With the fix: 0 faults in 120 boots. Details and the backtrace are in the description. -- 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]
