VirtualBox

Changeset 50994 in vbox


Ignore:
Timestamp:
Apr 8, 2014 12:30:50 PM (11 years ago)
Author:
vboxsync
Message:

VMM/GIM: Introduce the Minimal provider.

Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/gim.h

    r50953 r50994  
    4444    /** None. */
    4545    GIMPROVIDER_NONE = 0,
     46    /** Minimal. */
     47    GIMPROVIDER_MINIMAL,
    4648    /** Microsoft Hyper-V. */
    4749    GIMPROVIDER_HYPERV,
  • trunk/src/VBox/VMM/Makefile.kmk

    r50953 r50994  
    149149        VMMR3/GIM.cpp \
    150150        VMMR3/GIMHv.cpp \
     151        VMMR3/GIMMinimal.cpp \
    151152        VMMR3/IEMR3.cpp \
    152153        VMMR3/IOM.cpp \
  • trunk/src/VBox/VMM/VMMR3/GIM.cpp

    r50961 r50994  
    5656
    5757/* Include all GIM providers. */
     58#include "GIMMinimalInternal.h"
    5859#include "GIMHvInternal.h"
    5960
     
    116117    {
    117118        pVM->gim.s.fEnabled = true;
    118         if (!RTStrCmp(szProvider, "HyperV"))
     119        if (!RTStrCmp(szProvider, "Minimal"))
     120        {
     121            pVM->gim.s.enmProvider = GIMPROVIDER_MINIMAL;
     122            rc = GIMR3MinimalInit(pVM);
     123        }
     124        else if (!RTStrCmp(szProvider, "HyperV"))
    119125        {
    120126            pVM->gim.s.enmProvider = GIMPROVIDER_HYPERV;
     
    134140
    135141/**
    136  * Applies relocations to data and code managed by this
    137  * component. This function will be called at init and
    138  * whenever the VMM need to relocate it self inside the GC.
     142 * Applies relocations to data and code managed by this component. This function
     143 * will be called at init and whenever the VMM need to relocate itself inside
     144 * the GC.
    139145 *
    140146 * @param   pVM         Pointer to the VM.
     
    153159    switch (pVM->gim.s.enmProvider)
    154160    {
     161        case GIMPROVIDER_MINIMAL:
     162        {
     163            GIMR3MinimalRelocate(pVM, offDelta);
     164            break;
     165        }
     166
    155167        case GIMPROVIDER_HYPERV:
    156168        {
  • trunk/src/VBox/VMM/include/GIMInternal.h

    r50953 r50994  
    5353        struct
    5454        {
     55        } minimal;
     56
     57        struct
     58        {
    5559            /** Hypervisor system identity - Minor version number. */
    5660            uint16_t                 uVersionMinor;
     
    6670        } hv;
    6771
    68         struct
    69         {
    70         } kvm;
     72        /** @todo KVM and others. */
    7173    } u;
    7274} GIM;
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