VirtualBox

Changeset 61841 in vbox


Ignore:
Timestamp:
Jun 23, 2016 7:31:37 AM (8 years ago)
Author:
vboxsync
Message:

Devices/PC/DevIoApic: allow to read the I/O-APIC state from the new I/O-APIC implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    r61339 r61841  
    7575#define DEBUG_IOAPIC
    7676#define IOAPIC_NUM_PINS                 0x18
     77
     78/** The old code (this file) */
     79#define IOAPIC_SAVED_STATE_VERSION_VBOX_50      1
     80/** The new code (DevIOAPIC_New). We need to be able to load this SSM as well. */
     81#define IOAPIC_SAVED_STATE_VERSION_NEW_CODE     2
    7782
    7883
     
    701706{
    702707    PIOAPIC pThis = PDMINS_2_DATA(pDevIns, PIOAPIC);
    703     if (uVersion != 1)
     708    if (   uVersion != IOAPIC_SAVED_STATE_VERSION_VBOX_50
     709        && uVersion != IOAPIC_SAVED_STATE_VERSION_NEW_CODE)
    704710        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
     711
     712    uint32_t ignore;
     713    if (uVersion == IOAPIC_SAVED_STATE_VERSION_NEW_CODE)
     714        SSMR3GetU32(pSSM, &ignore);
    705715
    706716    SSMR3GetU8(pSSM, &pThis->id);
     
    831841    }
    832842
    833     rc = PDMDevHlpSSMRegister(pDevIns, 1 /* version */, sizeof(*pThis), ioapicSaveExec, ioapicLoadExec);
     843    rc = PDMDevHlpSSMRegister(pDevIns, IOAPIC_SAVED_STATE_VERSION_VBOX_50, sizeof(*pThis),
     844                              ioapicSaveExec, ioapicLoadExec);
    834845    if (RT_FAILURE(rc))
    835846        return rc;
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