VirtualBox

Changeset 31468 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 9, 2010 9:33:04 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64550
Message:

Main: settings: bumpSettingsVersionIfNeeded(): optimizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r31467 r31468  
    42104210        }
    42114211    }
     4212
    42124213    if (m->sv < SettingsVersion_v1_10)
    42134214    {
    42144215        // VirtualBox 3.2: Check for non default I/O settings and bump the settings version.
    4215         if (   hardwareMachine.ioSettings.fIoCacheEnabled != true
    4216             || hardwareMachine.ioSettings.ulIoCacheSize != 5)
     4216        if (   (hardwareMachine.ioSettings.fIoCacheEnabled != true)
     4217            || (hardwareMachine.ioSettings.ulIoCacheSize != 5)
     4218                // and VRDP video channel
     4219            || (hardwareMachine.vrdpSettings.fVideoChannel)
     4220                // and page fusion
     4221            || (hardwareMachine.fPageFusionEnabled)
     4222                // and CPU hotplug, RTC timezone control, HID type and HPET
     4223            || fRTCUseUTC
     4224            || hardwareMachine.fCpuHotPlug
     4225            || hardwareMachine.pointingHidType != PointingHidType_PS2Mouse
     4226            || hardwareMachine.keyboardHidType != KeyboardHidType_PS2Keyboard
     4227            || hardwareMachine.fHpetEnabled
     4228           )
    42174229            m->sv = SettingsVersion_v1_10;
    4218 
    4219         // VirtualBox 3.2 adds support for VRDP video channel
    4220         else if (hardwareMachine.vrdpSettings.fVideoChannel)
    4221             m->sv = SettingsVersion_v1_10;
    4222     }
    4223 
    4224     // VirtualBox 3.2 adds support for page fusion
    4225     if (    m->sv < SettingsVersion_v1_10
    4226         &&  hardwareMachine.fPageFusionEnabled
    4227        )
    4228         m->sv = SettingsVersion_v1_10;
    4229 
    4230     // VirtualBox 3.2 adds support for CPU hotplug, RTC timezone control, HID type and HPET
    4231     if (    m->sv < SettingsVersion_v1_10
    4232          && (    fRTCUseUTC
    4233               || hardwareMachine.fCpuHotPlug
    4234               || hardwareMachine.pointingHidType != PointingHidType_PS2Mouse
    4235               || hardwareMachine.keyboardHidType != KeyboardHidType_PS2Keyboard
    4236               || hardwareMachine.fHpetEnabled
    4237             )
    4238        )
    4239         m->sv = SettingsVersion_v1_10;
    4240 
    4241     // settings version 1.9 is also required if there is not exactly one DVD
     4230    }
     4231
     4232    // settings version 1.9 is required if there is not exactly one DVD
    42424233    // or more than one floppy drive present or the DVD is not at the secondary
    42434234    // master; this check is a bit more complicated
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