VirtualBox

Changeset 8115 in vbox


Ignore:
Timestamp:
Apr 17, 2008 4:57:00 PM (17 years ago)
Author:
vboxsync
Message:

Don't assert if RTMpOnAll returns VERR_NOT_SUPPORTED!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r7574 r8115  
    315315/**
    316316 * Checks the error code array filled in for each cpu in the system.
    317  * 
     317 *
    318318 * @returns VBox status code.
    319319 * @param   paRc        Error code array
     
    353353    memset(aRc, 0, sizeof(aRc));
    354354    int rc = RTMpOnAll(HWACCMR0DisableCPU, aRc, NULL);
    355     AssertRC(rc);
     355    Assert(RT_SUCCESS(rc) || rc == VERR_NOT_SUPPORTED);
    356356
    357357    /* Free the per-cpu pages used for VT-x and AMD-V */
     
    372372 * Worker function passed to RTMpOnAll, RTMpOnOthers and RTMpOnSpecific that
    373373 * is to be called on the target cpus.
    374  * 
     374 *
    375375 * @param   idCpu       The identifier for the CPU the function is called on.
    376376 * @param   pvUser1     The 1st user argument.
     
    386386    SUPR0Printf("HWACCMR0InitCPU cpu %d\n", idCpu);
    387387#endif
     388    Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /// @todo fix idCpu == index assumption (rainy day)
    388389
    389390    if (u32VendorEBX == X86_CPUID_VENDOR_INTEL_EBX)
     
    500501 * Worker function passed to RTMpOnAll, RTMpOnOthers and RTMpOnSpecific that
    501502 * is to be called on the target cpus.
    502  * 
     503 *
    503504 * @param   idCpu       The identifier for the CPU the function is called on.
    504505 * @param   pvUser1     The 1st user argument.
     
    513514
    514515    Assert(pVM);
     516    Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /// @todo fix idCpu == index assumption (rainy day)
    515517    Assert(idCpu < RT_ELEMENTS(HWACCMR0Globals.aCpuInfo));
    516518
     
    546548 * Worker function passed to RTMpOnAll, RTMpOnOthers and RTMpOnSpecific that
    547549 * is to be called on the target cpus.
    548  * 
     550 *
    549551 * @param   idCpu       The identifier for the CPU the function is called on.
    550552 * @param   pvUser1     The 1st user argument.
     
    557559    int     *paRc = (int *)pvUser1;
    558560
     561    Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /// @todo fix idCpu == index assumption (rainy day)
    559562    Assert(idCpu < RT_ELEMENTS(HWACCMR0Globals.aCpuInfo));
    560563
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