Changeset 58564 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 4, 2015 1:53:54 PM (9 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/GIM.cpp
r58436 r58564 212 212 213 213 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 relocate221 * 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_NONE231 || 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 }260 214 } 261 215 -
trunk/src/VBox/VMM/VMMR3/GIMHv.cpp
r58448 r58564 492 492 493 493 494 #if 0495 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 #endif507 508 509 494 /** 510 495 * Terminates the Hyper-V GIM provider. … … 518 503 gimR3HvTermHypercallSupport(pVM); 519 504 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 relocate527 * 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 0535 int rc = PDMR3LdrGetSymbolRC(pVM, NULL /* pszModule */, GIMHV_HYPERCALL, &pVM->gim.s.pfnHypercallRC);536 AssertFatalRC(rc);537 #endif538 505 } 539 506 -
trunk/src/VBox/VMM/VMMR3/GIMKvm.cpp
r58126 r58564 229 229 230 230 /** 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 relocate234 * 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 /**246 231 * This resets KVM provider MSRs and unmaps whatever KVM regions that 247 232 * the guest may have mapped. -
trunk/src/VBox/VMM/VMMR3/GIMMinimal.cpp
r58122 r58564 68 68 { 69 69 /* 70 * Expose a generic hypervisor-agnostic leaf (originally defined VMware).70 * Expose a generic hypervisor-agnostic leaf (originally defined by VMware). 71 71 * The leaves range from 0x40000010 to 0x400000FF. 72 72 * … … 123 123 } 124 124 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 relocate130 * 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.