VirtualBox

Changeset 91000 in vbox


Ignore:
Timestamp:
Aug 30, 2021 2:15:57 PM (3 years ago)
Author:
vboxsync
Message:

VMM,PDM,PGM: Restrict the VMSetError and VMSetRuntimeError APIs to ring-3, these never worked properly in ring-0 or raw-mode. A PAEmode runtime error was the only place any of these were used, but given that the VMSetRuntimeError codepath starts with an assertion, it can't have been used/tested. The PAEmode runtime error shouldn't necessarily be triggered by PGM anyway, but IEM. Removed VMMCALLRING3_VM_SET_ERROR and VMMCALLRING3_VM_SET_RUNTIME_ERROR. [doxygen fix] bugref:10093

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdev.h

    r90997 r91000  
    67506750
    67516751/**
    6752  * @copydoc PDMDEVHLPR3::pfnVMSetError
     6752 * Set the VM error message
     6753 *
     6754 * @returns rc.
     6755 * @param   pDevIns             The device instance.
     6756 * @param   rc                  VBox status code.
     6757 * @param   SRC_POS             Use RT_SRC_POS.
     6758 * @param   pszFormat           Error message format string.
     6759 * @param   ...                 Error message arguments.
     6760 * @sa      VMSetError
    67536761 */
    67546762DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 7) PDMDevHlpVMSetError(PPDMDEVINS pDevIns, const int rc, RT_SRC_POS_DECL,
     
    67636771
    67646772/**
    6765  * @copydoc PDMDEVHLPR3::pfnVMSetRuntimeError
     6773 * Set the VM runtime error message
     6774 *
     6775 * @returns VBox status code.
     6776 * @param   pDevIns             The device instance.
     6777 * @param   fFlags              The action flags. See VMSETRTERR_FLAGS_*.
     6778 * @param   pszErrorId          Error ID string.
     6779 * @param   pszFormat           Error message format string.
     6780 * @param   ...                 Error message arguments.
     6781 * @sa      VMSetRuntimeError
    67666782 */
    67676783DECLINLINE(int) RT_IPRT_FORMAT_ATTR(4, 5) PDMDevHlpVMSetRuntimeError(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId,
  • trunk/include/VBox/vmm/pdmdrv.h

    r90997 r91000  
    13051305
    13061306/**
    1307  * @copydoc PDMDRVHLPR3::pfnVMSetError
     1307 * Set the VM error message
     1308 *
     1309 * @returns rc.
     1310 * @param   pDrvIns         Driver instance.
     1311 * @param   rc              VBox status code.
     1312 * @param   SRC_POS         Use RT_SRC_POS.
     1313 * @param   pszFormat       Error message format string.
     1314 * @param   ...             Error message arguments.
     1315 * @sa      PDMDRV_SET_ERROR, PDMDrvHlpVMSetErrorV, VMSetError
    13081316 */
    13091317DECLINLINE(int)  RT_IPRT_FORMAT_ATTR(6, 7) PDMDrvHlpVMSetError(PPDMDRVINS pDrvIns, const int rc, RT_SRC_POS_DECL,
     
    13341342
    13351343/**
    1336  * @copydoc PDMDRVHLPR3::pfnVMSetRuntimeError
     1344 * Set the VM runtime error message
     1345 *
     1346 * @returns VBox status code.
     1347 * @param   pDrvIns         Driver instance.
     1348 * @param   fFlags          The action flags. See VMSETRTERR_FLAGS_*.
     1349 * @param   pszErrorId      Error ID string.
     1350 * @param   pszFormat       Error message format string.
     1351 * @param   ...             Error message arguments.
     1352 * @sa      PDMDRV_SET_RUNTIME_ERROR, PDMDrvHlpVMSetRuntimeErrorV,
     1353 *          VMSetRuntimeError
    13371354 */
    13381355DECLINLINE(int)  RT_IPRT_FORMAT_ATTR(4, 5) PDMDrvHlpVMSetRuntimeError(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId,
Note: See TracChangeset for help on using the changeset viewer.

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