VirtualBox

Changeset 92949 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 15, 2021 8:52:05 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148925
Message:

VirtioCore: VIRTIOCORER3::pfnFeatureNegotiationComplete must be optional as DevVirtioSCSI doesn't set it. bugref:8651

Location:
trunk/src/VBox/Devices/VirtIO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r92945 r92949  
    13021302                AssertMsgFailed(("Guest didn't accept VIRTIO_F_VERSION_1, but fLegacyOffered flag not set.\n"));
    13031303        }
    1304         pVirtioCC->pfnFeatureNegotiationComplete(pVirtio, pVirtio->uDriverFeatures, pVirtio->fLegacyDriver);
     1304        if (pVirtioCC->pfnFeatureNegotiationComplete)
     1305            pVirtioCC->pfnFeatureNegotiationComplete(pVirtio, pVirtio->uDriverFeatures, pVirtio->fLegacyDriver);
    13051306        pVirtio->fDriverFeaturesWritten |= DRIVER_FEATURES_COMPLETE_HANDLED;
    13061307}
     
    23472348    AssertReturn(pVirtioCC->pfnStatusChanged, VERR_INVALID_POINTER);
    23482349    AssertReturn(pVirtioCC->pfnVirtqNotified, VERR_INVALID_POINTER);
    2349     AssertReturn(pVirtioCC->pfnFeatureNegotiationComplete,  VERR_INVALID_POINTER);
    23502350    AssertReturn(VIRTQ_SIZE > 0 && VIRTQ_SIZE <= 32768,  VERR_OUT_OF_RANGE); /* VirtIO specification-defined limit */
    23512351
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.h

    r92944 r92949  
    390390     * @{  */
    391391    /**
    392      * Implementation-specific client callback to report VirtIO when feature negotiation is
    393      * complete. It should be invoked by the VirtIO core only once.
     392     * Implementation-specific client callback to report VirtIO when feature
     393     * negotiation is complete, optional.
     394     *
     395     * It should be invoked by the VirtIO core only once.
    394396     *
    395397     * @param   pVirtio           Pointer to the shared virtio state.
     
    412414
    413415    /**
    414      * Implementation-specific client callback to access VirtIO Device-specific capabilities
    415      * (other VirtIO capabilities and features are handled in VirtIO implementation)
     416     * Implementation-specific client callback to access VirtIO Device-specific
     417     * capabilities (other VirtIO capabilities and features are handled in VirtIO
     418     * implementation).
    416419     *
    417420     * @param   pDevIns    The device instance.
     
    423426
    424427    /**
    425      * Implementation-specific client callback to access VirtIO Device-specific capabilities
    426      * (other VirtIO capabilities and features are handled in VirtIO implementation)
     428     * Implementation-specific client callback to access VirtIO Device-specific
     429     * capabilities (other VirtIO capabilities and features are handled in VirtIO
     430     * implementation).
    427431     *
    428432     * @param   pDevIns    The device instance.
     
    434438
    435439    /**
    436      * When guest-to-host queue notifications are enabled, the guest driver notifies the host
    437      * that the avail queue has buffers, and this callback informs the client.
     440     * When guest-to-host queue notifications are enabled, the guest driver notifies
     441     * the host that the avail queue has buffers, and this callback informs the
     442     * client.
    438443     *
    439444     * @param   pVirtio    Pointer to the shared virtio state.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette