VirtualBox

Changeset 78233 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 20, 2019 10:35:44 PM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Build fix [2nd try].

File:
1 edited

Legend:

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

    r78232 r78233  
    27462746DECLINLINE(int) hmR0VmxSetupVmcsVirtApicAddr(PVMCPU pVCpu, PCVMXVMCSINFO pVmcsInfo)
    27472747{
    2748     NOREF(pVCpu);
     2748    NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */
    27492749    RTHCPHYS const HCPhysVirtApic = pVmcsInfo->HCPhysVirtApic;
    27502750    Assert(HCPhysVirtApic != NIL_RTHCPHYS);
     
    27582758 *
    27592759 * @returns VBox status code.
     2760 * @param   pVCpu       The cross context virtual CPU structure.
    27602761 * @param   pVmcsInfo   The VMCS info. object.
    27612762 */
    2762 DECLINLINE(int) hmR0VmxSetupVmcsMsrBitmapAddr(PCVMXVMCSINFO pVmcsInfo)
    2763 {
     2763DECLINLINE(int) hmR0VmxSetupVmcsMsrBitmapAddr(PVMCPU pVCpu, PCVMXVMCSINFO pVmcsInfo)
     2764{
     2765    NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */
    27642766    RTHCPHYS const HCPhysMsrBitmap = pVmcsInfo->HCPhysMsrBitmap;
    27652767    Assert(HCPhysMsrBitmap != NIL_RTHCPHYS);
     
    27882790 *
    27892791 * @returns VBox status code.
     2792 * @param   pVCpu       The cross context virtual CPU structure.
    27902793 * @param   pVmcsInfo   The VMCS info. object.
    27912794 */
    2792 DECLINLINE(int) hmR0VmxSetupVmcsLinkPtr(PVMXVMCSINFO pVmcsInfo)
    2793 {
     2795DECLINLINE(int) hmR0VmxSetupVmcsLinkPtr(PVMCPU pVCpu, PVMXVMCSINFO pVmcsInfo)
     2796{
     2797    NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */
    27942798    uint64_t const u64VmcsLinkPtr = pVmcsInfo->u64VmcsLinkPtr;
    27952799    Assert(u64VmcsLinkPtr == UINT64_C(0xffffffffffffffff));  /* Bits 63:0 MB1. */
     
    28032807 *
    28042808 * @returns VBox status code.
     2809 * @param   pVCpu       The cross context virtual CPU structure.
    28052810 * @param   pVmcsInfo   The VMCS info. object.
    28062811 */
    2807 DECLINLINE(int) hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(PVMXVMCSINFO pVmcsInfo)
    2808 {
     2812DECLINLINE(int) hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(PVMCPU pVCpu, PVMXVMCSINFO pVmcsInfo)
     2813{
     2814    NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */
     2815
    28092816    RTHCPHYS const HCPhysGuestMsrLoad = pVmcsInfo->HCPhysGuestMsrLoad;
    28102817    Assert(HCPhysGuestMsrLoad != NIL_RTHCPHYS);
     
    31103117    {
    31113118        fVal |= VMX_PROC_CTLS_USE_MSR_BITMAPS;
    3112         int rc = hmR0VmxSetupVmcsMsrBitmapAddr(pVmcsInfo);
     3119        int rc = hmR0VmxSetupVmcsMsrBitmapAddr(pVCpu, pVmcsInfo);
    31133120        AssertRCReturn(rc, rc);
    31143121    }
     
    31633170{
    31643171    /* Set the auto-load/store MSR area addresses in the VMCS. */
    3165     int rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVmcsInfo);
     3172    int rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVCpu, pVmcsInfo);
    31663173    if (RT_SUCCESS(rc))
    31673174    {
    31683175        /* Set the VMCS link pointer in the VMCS. */
    3169         rc = hmR0VmxSetupVmcsLinkPtr(pVmcsInfo);
     3176        rc = hmR0VmxSetupVmcsLinkPtr(pVCpu, pVmcsInfo);
    31703177        if (RT_SUCCESS(rc))
    31713178        {
     
    32393246{
    32403247    PVM pVM = pVCpu->CTX_SUFF(pVM);
    3241     int rc = hmR0VmxSetupVmcsLinkPtr(pVmcsInfo);
     3248    int rc = hmR0VmxSetupVmcsLinkPtr(pVCpu, pVmcsInfo);
    32423249    if (RT_SUCCESS(rc))
    32433250    {
    3244         rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVmcsInfo);
     3251        rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVCpu, pVmcsInfo);
    32453252        if (RT_SUCCESS(rc))
    32463253        {
    32473254            if (pVM->hm.s.vmx.Msrs.ProcCtls.n.allowed1 & VMX_PROC_CTLS_USE_MSR_BITMAPS)
    3248                 rc = hmR0VmxSetupVmcsMsrBitmapAddr(pVmcsInfo);
     3255                rc = hmR0VmxSetupVmcsMsrBitmapAddr(pVCpu, pVmcsInfo);
    32493256            if (RT_SUCCESS(rc))
    32503257            {
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