VirtualBox

Changeset 52010 in vbox


Ignore:
Timestamp:
Jul 14, 2014 6:00:30 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94974
Message:

VMM/GIM: Add Hyper-V SSM version to the saved-state.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r51983 r52010  
    333333    PCGIMHV pcHv = &pVM->gim.s.u.Hv;
    334334
     335    /*
     336     * Save the Hyper-V SSM version.
     337     */
     338    int rc = SSMR3PutU32(pSSM, GIM_HV_SSM_VERSION);         AssertRCReturn(rc, rc);
     339
    335340    /** @todo Save per-VCPU data. */
    336341
     
    338343     * Save per-VM MSRs.
    339344     */
    340     int rc = SSMR3PutU64(pSSM, pcHv->u64GuestOsIdMsr);      AssertRCReturn(rc, rc);
     345    rc = SSMR3PutU64(pSSM, pcHv->u64GuestOsIdMsr);          AssertRCReturn(rc, rc);
    341346    rc = SSMR3PutU64(pSSM, pcHv->u64HypercallMsr);          AssertRCReturn(rc, rc);
    342347    rc = SSMR3PutU64(pSSM, pcHv->u64TscPageMsr);            AssertRCReturn(rc, rc);
     
    391396 * @param   pVM             Pointer to the VM.
    392397 * @param   pSSM            Pointer to the SSM handle.
    393  * @param   uSSMVersion     The saved-state version.
     398 * @param   uSSMVersion     The GIM saved-state version.
    394399 */
    395400VMMR3_INT_DECL(int) GIMR3HvLoad(PVM pVM, PSSMHANDLE pSSM, uint32_t uSSMVersion)
     
    397402    PGIMHV pHv = &pVM->gim.s.u.Hv;
    398403
     404    /*
     405     * Load the Hyper-V SSM version first.
     406     */
     407    uint32_t uHvSSMVersion;
     408    int rc = SSMR3GetU32(pSSM, &uHvSSMVersion);             AssertRCReturn(rc, rc);
     409
    399410    /** @todo Load per-VCPU data. */
    400411
     
    402413     * Load per-VM MSRs.
    403414     */
    404     int rc = SSMR3GetU64(pSSM, &pHv->u64GuestOsIdMsr);      AssertRCReturn(rc, rc);
     415    rc = SSMR3GetU64(pSSM, &pHv->u64GuestOsIdMsr);          AssertRCReturn(rc, rc);
    405416    rc = SSMR3GetU64(pSSM, &pHv->u64HypercallMsr);          AssertRCReturn(rc, rc);
    406417    rc = SSMR3GetU64(pSSM, &pHv->u64TscPageMsr);            AssertRCReturn(rc, rc);
  • trunk/src/VBox/VMM/include/GIMHvInternal.h

    r52009 r52010  
    2525 * GIM Hyper-V saved-state version.
    2626 */
    27 #define GIM_HV_SSM_VERSION                 0x1
     27#define GIM_HV_SSM_VERSION                 UINT32_C(1)
    2828
    2929/** @name Hyper-V base feature identification.
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