VirtualBox

Changeset 94794 in vbox for trunk


Ignore:
Timestamp:
May 3, 2022 11:56:26 AM (2 years ago)
Author:
vboxsync
Message:

Main,VMM: Implemented most of the functionality for encrypted VMs (encrypting log files is still missing), bugref:9955 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r93901 r94794  
    17111711 *              RunningLS+SuspendingLS+SuspendedLS+Saving+Suspended.
    17121712 */
    1713 VMMR3DECL(int) VMR3Save(PUVM pUVM, const char *pszFilename, bool fContinueAfterwards, PFNVMPROGRESS pfnProgress, void *pvUser,
     1713VMMR3DECL(int) VMR3Save(PUVM pUVM, const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser,
     1714                        bool fContinueAfterwards, PFNVMPROGRESS pfnProgress, void *pvUser,
    17141715                        bool *pfSuspended)
    17151716{
     
    17261727    VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE);
    17271728    VM_ASSERT_OTHER_THREAD(pVM);
    1728     AssertPtrReturn(pszFilename, VERR_INVALID_POINTER);
    1729     AssertReturn(*pszFilename, VERR_INVALID_PARAMETER);
     1729    AssertReturn(pszFilename || pStreamOps, VERR_INVALID_POINTER);
     1730    AssertReturn(   (!pStreamOps && *pszFilename)
     1731                 || pStreamOps,
     1732                 VERR_INVALID_PARAMETER);
    17301733    AssertPtrNullReturn(pfnProgress, VERR_INVALID_POINTER);
    17311734
     
    17351738    SSMAFTER enmAfter = fContinueAfterwards ? SSMAFTER_CONTINUE : SSMAFTER_DESTROY;
    17361739    int rc = vmR3SaveTeleport(pVM, 250 /*cMsMaxDowntime*/,
    1737                               pszFilename, NULL /* pStreamOps */, NULL /* pvStreamOpsUser */,
     1740                              pszFilename, pStreamOps, pvStreamOpsUser,
    17381741                              enmAfter, pfnProgress, pvUser, pfSuspended);
    17391742    LogFlow(("VMR3Save: returns %Rrc (*pfSuspended=%RTbool)\n", rc, *pfSuspended));
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