VirtualBox

Changeset 71136 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Feb 27, 2018 1:17:36 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121023
Message:

SUPDrv,VMM/NEM/win: Abstracted kernel I/O control work in SUPDrv, currently only implemented & needed on windows. Made first I/O control call to VID from ring-0. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r71131 r71136  
    12691269    pVM->nem.s.fCreatedEmts = true;
    12701270
    1271     LogRel(("NEM: Successfully set up partition (device handle %p, partition ID %#llx)\n", hPartitionDevice, idHvPartition));
    1272     return VINF_SUCCESS;
     1271    /*
     1272     * Do some more ring-0 initialization now that we've got the partition handle.
     1273     */
     1274    int rc = VMMR3CallR0Emt(pVM, &pVM->aCpus[0], VMMR0_DO_NEM_INIT_VM_PART_2, 0, NULL);
     1275    if (RT_SUCCESS(rc))
     1276    {
     1277        LogRel(("NEM: Successfully set up partition (device handle %p, partition ID %#llx)\n", hPartitionDevice, idHvPartition));
     1278        return VINF_SUCCESS;
     1279    }
     1280    return VMSetError(pVM, VERR_NEM_VM_CREATE_FAILED, RT_SRC_POS, "Call to NEMR0InitVMPart2 failed: %Rrc", rc);
    12731281}
    12741282
     
    13421350    }
    13431351}
    1344 
    13451352
    13461353#ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES
     
    22952302                /* ACK the stop message. */
    22962303                fWait = g_pfnVidMessageSlotHandleAndGetNext(pVM->nem.s.hPartitionDevice, pVCpu->idCpu,
    2297                                                                  VID_MSHAGN_F_HANDLE_MESSAGE, 5000);
     2304                                                            VID_MSHAGN_F_HANDLE_MESSAGE, 5000);
    22982305                AssertLogRelMsg(fWait, ("dwErr=%u (%#x) rcNt=%#x\n", RTNtLastErrorValue(), RTNtLastErrorValue(), RTNtLastStatusValue()));
    22992306
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