VirtualBox

Changeset 30344 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 21, 2010 4:34:46 PM (14 years ago)
Author:
vboxsync
Message:

Use NIL_VMCPUID (see r62731).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/GMM.cpp

    r30342 r30344  
    306306
    307307    /* Must be callable from any thread, so can't use VMMR3CallR0. */
    308     /** @todo Shouldn't we use NIL_VMCPUID here?  */
    309     int rc = SUPR3CallVMMR0Ex(pVM->pVMR0, 0, VMMR0_DO_GMM_QUERY_HYPERVISOR_MEM_STATS, 0, &Req.Hdr);
     308    int rc = SUPR3CallVMMR0Ex(pVM->pVMR0, NIL_VMCPUID, VMMR0_DO_GMM_QUERY_HYPERVISOR_MEM_STATS, 0, &Req.Hdr);
    310309    if (rc == VINF_SUCCESS)
    311310    {
  • trunk/src/VBox/VMM/PGMPhys.cpp

    r30342 r30344  
    33873387
    33883388    /* Must be callable from any thread, so can't use VMMR3CallR0. */
    3389     /** @todo r=bird: Why must it be a valid one? NIL_VMCPUID should do the
    3390      *        trick as it does a bunch of other places, shouldn't it? */
    3391     rc = SUPR3CallVMMR0Ex(pVM->pVMR0, 0 /* use CPU id 0; it must be a valid one */, VMMR0_DO_GMM_MAP_UNMAP_CHUNK, 0, &Req.Hdr);
     3389    rc = SUPR3CallVMMR0Ex(pVM->pVMR0, NIL_VMCPUID, VMMR0_DO_GMM_MAP_UNMAP_CHUNK, 0, &Req.Hdr);
    33923390    if (RT_SUCCESS(rc))
    33933391    {
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