VirtualBox

Changeset 49074 in vbox


Ignore:
Timestamp:
Oct 13, 2013 10:08:34 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89879
Message:

Main, FE/Qt: Added a triple fault handling OS hint and a new OS/2 1.x guest type.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/ostypes.h

    r48685 r49074  
    7575    VBOXOSTYPE_OS2Warp45        = 0x43000,
    7676    VBOXOSTYPE_ECS              = 0x44000,
     77    VBOXOSTYPE_OS21x            = 0x48000,
    7778    VBOXOSTYPE_Linux            = 0x50000,
    7879    VBOXOSTYPE_Linux_x64        = 0x50100,
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r48907 r49074  
    39723972        {"OS2Warp45",       ":/os_os2warp45.png"},
    39733973        {"OS2eCS",          ":/os_os2ecs.png"},
     3974        {"OS21x",           ":/os_os2_other.png"},
    39743975        {"OS2",             ":/os_os2_other.png"},
    39753976        {"Linux22",         ":/os_linux22.png"},
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r48314 r49074  
    157157    m_machine.SetCPUProperty(KCPUPropertyType_PAE, type.GetRecommendedPAE());
    158158
     159    /* Set the recommended triple fault behavior: */
     160    m_machine.SetCPUProperty(KCPUPropertyType_TripleFaultReset, type.GetRecommendedTFReset());
     161
    159162    /* Set recommended firmware type: */
    160163    KFirmwareType fwType = type.GetRecommendedFirmware();
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r49058 r49074  
    93239323  <interface
    93249324    name="IGuestOSType" extends="$unknown"
    9325     uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
     9325    uuid="ced74f7e-4c08-4d19-883a-017496ada2e1"
    93269326    wsmap="struct"
    93279327    >
     
    94359435    <attribute name="recommendedUSB" type="boolean" readonly="yes">
    94369436      <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
     9437    </attribute>
     9438
     9439    <attribute name="recommendedTFReset" type="boolean" readonly="yes">
     9440      <desc>Returns @c true if using VCPU reset on triple fault is recommended for this OS type.</desc>
    94379441    </attribute>
    94389442
  • trunk/src/VBox/Main/include/Global.h

    r46775 r49074  
    4040#define VBOXOSHINT_FLOPPY               RT_BIT(11)
    4141#define VBOXOSHINT_NOUSB                RT_BIT(12)
     42#define VBOXOSHINT_TFRESET              RT_BIT(13)
    4243
    4344/** The VBoxVRDP kludge extension pack name.
  • trunk/src/VBox/Main/include/GuestOSTypeImpl.h

    r42551 r49074  
    7676    STDMETHOD(COMGETTER(RecommendedFloppy))(BOOL *aRecommendedFloppy);
    7777    STDMETHOD(COMGETTER(RecommendedUSB))(BOOL *aRecommendedUSB);
     78    STDMETHOD(COMGETTER(RecommendedTFReset))(BOOL *aRecommendedTFReset);
    7879
    7980    // public methods only for internal purposes
  • trunk/src/VBox/Main/src-all/Global.cpp

    r48886 r49074  
    306306        256,  4,  2 * _1G64, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
    307307        StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, AudioControllerType_AC97  },
     308    { "OS2",     "IBM OS/2",          "OS21x",              "OS/2 1.x",
     309      VBOXOSTYPE_OS21x,           VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB | VBOXOSHINT_TFRESET,
     310        8, 4, 500 * _1M, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
     311        StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, AudioControllerType_SB16  },
    308312    { "OS2",     "IBM OS/2",          "OS2",                "Other OS/2",
    309313      VBOXOSTYPE_OS2,             VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
  • trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp

    r42551 r49074  
    500500}
    501501
     502STDMETHODIMP GuestOSType::COMGETTER(RecommendedTFReset)(BOOL *aRecommendedTFReset)
     503{
     504    CheckComArgOutPointerValid(aRecommendedTFReset);
     505
     506    AutoCaller autoCaller(this);
     507    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     508
     509    /* recommended triple fault behavior is constant during life time, no need to lock */
     510    *aRecommendedTFReset = !!(mOSHint & VBOXOSHINT_TFRESET);
     511
     512    return S_OK;
     513}
     514
    502515/* vi: set tabstop=4 shiftwidth=4 expandtab: */
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