W-M-R opened a new pull request, #15043:
URL: https://github.com/apache/nuttx/pull/15043

   ## Summary
   In the source code of qemu or linux, there is a check for the virtio version
   ```
       /* Check device version */
       priv->version = readl(priv->base + VIRTIO_MMIO_VERSION);
       if (priv->version < 1 || priv->version > 2) {
        debug("(%s): version %d not supported!\n",
        udev->name, priv->version);
        return 0;
       }
       /* Check device ID */
       uc_priv->device = readl(priv->base + VIRTIO_MMIO_DEVICE_ID);
       if (uc_priv->device == 0) {
        /*
        * virtio-mmio device with an ID 0 is a (dummy) placeholder
        * with no function. End probing now with no error reported.
        */
        return 0;
       }
   ```
   
   ## Impact
   
   *Update this section, where applicable, on how change affects users,
    build process, hardware, documentation, security, compatibility, etc.*
   
   ## Testing
   
   *Update this section with details on how did you verify the change,
    what Host was used for build (OS, CPU, compiler, ..), what Target was
    used for verification (arch, board:config, ..), etc. Providing build
    and runtime logs from before and after change is highly appreciated.*
   
   
   


-- 
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]

Reply via email to