VirtualBox

Changeset 58564 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Nov 4, 2015 1:53:54 PM (9 years ago)
Author:
vboxsync
Message:

VMM/GIM: Removed some dead code.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
4 edited

Legend:

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

    r58436 r58564  
    212212
    213213    return VINF_SUCCESS;
    214 }
    215 
    216 
    217 /**
    218  * Applies relocations to data and code managed by this component.
    219  *
    220  * This function will be called at init and whenever the VMM need to relocate
    221  * itself inside the GC.
    222  *
    223  * @param   pVM         The cross context VM structure.
    224  * @param   offDelta    Relocation delta relative to old location.
    225  */
    226 VMM_INT_DECL(void) GIMR3Relocate(PVM pVM, RTGCINTPTR offDelta)
    227 {
    228     LogFlow(("GIMR3Relocate\n"));
    229 
    230     if (   pVM->gim.s.enmProviderId == GIMPROVIDERID_NONE
    231         || HMIsEnabled(pVM))
    232         return;
    233 
    234     switch (pVM->gim.s.enmProviderId)
    235     {
    236         case GIMPROVIDERID_MINIMAL:
    237         {
    238             gimR3MinimalRelocate(pVM, offDelta);
    239             break;
    240         }
    241 
    242         case GIMPROVIDERID_HYPERV:
    243         {
    244             gimR3HvRelocate(pVM, offDelta);
    245             break;
    246         }
    247 
    248         case GIMPROVIDERID_KVM:
    249         {
    250             gimR3KvmRelocate(pVM, offDelta);
    251             break;
    252         }
    253 
    254         default:
    255         {
    256             AssertMsgFailed(("Invalid provider Id %#x\n", pVM->gim.s.enmProviderId));
    257             break;
    258         }
    259     }
    260214}
    261215
  • trunk/src/VBox/VMM/VMMR3/GIMHv.cpp

    r58448 r58564  
    492492
    493493
    494 #if 0
    495 VMMR3_INT_DECL(int) gimR3HvInitFinalize(PVM pVM)
    496 {
    497     pVM->gim.s.pfnHypercallR3 = &GIMHvHypercall;
    498     if (!HMIsEnabled(pVM))
    499     {
    500         rc = PDMR3LdrGetSymbolRC(pVM, NULL /* pszModule */, GIMHV_HYPERCALL, &pVM->gim.s.pfnHypercallRC);
    501         AssertRCReturn(rc, rc);
    502     }
    503     rc = PDMR3LdrGetSymbolR0(pVM, NULL /* pszModule */, GIMHV_HYPERCALL, &pVM->gim.s.pfnHypercallR0);
    504     AssertRCReturn(rc, rc);
    505 }
    506 #endif
    507 
    508 
    509494/**
    510495 * Terminates the Hyper-V GIM provider.
     
    518503    gimR3HvTermHypercallSupport(pVM);
    519504    return VINF_SUCCESS;
    520 }
    521 
    522 
    523 /**
    524  * Applies relocations to data and code managed by this component.
    525  *
    526  * This function will be called at init and whenever the VMM need to relocate
    527  * itself inside the GC.
    528  *
    529  * @param   pVM         The cross context VM structure.
    530  * @param   offDelta    Relocation delta relative to old location.
    531  */
    532 VMMR3_INT_DECL(void) gimR3HvRelocate(PVM pVM, RTGCINTPTR offDelta)
    533 {
    534 #if 0
    535     int rc = PDMR3LdrGetSymbolRC(pVM, NULL /* pszModule */, GIMHV_HYPERCALL, &pVM->gim.s.pfnHypercallRC);
    536     AssertFatalRC(rc);
    537 #endif
    538505}
    539506
  • trunk/src/VBox/VMM/VMMR3/GIMKvm.cpp

    r58126 r58564  
    229229
    230230/**
    231  * Applies relocations to data and code managed by this component.
    232  *
    233  * This function will be called at init and whenever the VMM need to relocate
    234  * itself inside the GC.
    235  *
    236  * @param   pVM         The cross context VM structure.
    237  * @param   offDelta    Relocation delta relative to old location.
    238  */
    239 VMMR3_INT_DECL(void) gimR3KvmRelocate(PVM pVM, RTGCINTPTR offDelta)
    240 {
    241     NOREF(pVM); NOREF(offDelta);
    242 }
    243 
    244 
    245 /**
    246231 * This resets KVM provider MSRs and unmaps whatever KVM regions that
    247232 * the guest may have mapped.
  • trunk/src/VBox/VMM/VMMR3/GIMMinimal.cpp

    r58122 r58564  
    6868{
    6969    /*
    70      * Expose a generic hypervisor-agnostic leaf (originally defined VMware).
     70     * Expose a generic hypervisor-agnostic leaf (originally defined by VMware).
    7171     * The leaves range from  0x40000010 to 0x400000FF.
    7272     *
     
    123123}
    124124
    125 
    126 /**
    127  * Applies relocations to data and code managed by this component.
    128  *
    129  * This function will be called at init and whenever the VMM need to relocate
    130  * itself inside the GC.
    131  *
    132  * @param   pVM         The cross context VM structure.
    133  * @param   offDelta    Relocation delta relative to old location.
    134  */
    135 VMMR3_INT_DECL(void) gimR3MinimalRelocate(PVM pVM, RTGCINTPTR offDelta)
    136 {
    137     NOREF(pVM); NOREF(offDelta);
    138 }
    139 
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