VirtualBox

Changeset 45963 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 8, 2013 11:44:31 PM (12 years ago)
Author:
vboxsync
Message:

VMM: nits.

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

Legend:

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

    r45955 r45963  
    29222922                    rc = VMXWriteVmcs64(VMX_VMCS64_GUEST_PDPTE2_FULL, pVCpu->hm.s.aPdpes[2].u);     AssertRCReturn(rc, rc);
    29232923                    rc = VMXWriteVmcs64(VMX_VMCS64_GUEST_PDPTE3_FULL, pVCpu->hm.s.aPdpes[3].u);     AssertRCReturn(rc, rc);
    2924                     AssertRCReturn(rc, rc);
    29252924                }
    29262925
     
    31483147    /* Update the processor-based VM-execution controls regarding intercepting MOV DRx instructions. */
    31493148    if (fInterceptMovDRx)
    3150         pVCpu->hm.s.vmx.u32ProcCtls   |= VMX_VMCS_CTRL_PROC_EXEC_MOV_DR_EXIT;
     3149        pVCpu->hm.s.vmx.u32ProcCtls |= VMX_VMCS_CTRL_PROC_EXEC_MOV_DR_EXIT;
    31513150    else
    3152         pVCpu->hm.s.vmx.u32ProcCtls   &= ~VMX_VMCS_CTRL_PROC_EXEC_MOV_DR_EXIT;
    3153 
    3154     rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_EXCEPTION_BITMAP,   pVCpu->hm.s.vmx.u32XcptBitmap);
     3151        pVCpu->hm.s.vmx.u32ProcCtls &= ~VMX_VMCS_CTRL_PROC_EXEC_MOV_DR_EXIT;
     3152
     3153    rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_EXCEPTION_BITMAP, pVCpu->hm.s.vmx.u32XcptBitmap);
    31553154    AssertRCReturn(rc, rc);
    31563155    rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_PROC_EXEC, pVCpu->hm.s.vmx.u32ProcCtls);
     
    52695268    if (!(pVCpu->hm.s.vmx.fUpdatedGuestState & HMVMX_UPDATED_GUEST_SEGMENT_REGS))
    52705269    {
    5271         int rc = hmR0VmxSaveGuestCR0(pVCpu, pMixedCtx);
    5272         AssertRCReturn(rc, rc);
    5273         rc = VMXLOCAL_READ_SEG(CS, cs);
    5274         AssertRCReturn(rc, rc);
    5275         rc = VMXLOCAL_READ_SEG(SS, ss);
    5276         AssertRCReturn(rc, rc);
    5277         rc = VMXLOCAL_READ_SEG(DS, ds);
    5278         AssertRCReturn(rc, rc);
    5279         rc = VMXLOCAL_READ_SEG(ES, es);
    5280         AssertRCReturn(rc, rc);
    5281         rc = VMXLOCAL_READ_SEG(FS, fs);
    5282         AssertRCReturn(rc, rc);
    5283         rc = VMXLOCAL_READ_SEG(GS, gs);
    5284         AssertRCReturn(rc, rc);
     5270        int rc = hmR0VmxSaveGuestCR0(pVCpu, pMixedCtx);   AssertRCReturn(rc, rc);
     5271        rc = VMXLOCAL_READ_SEG(CS, cs);                   AssertRCReturn(rc, rc);
     5272        rc = VMXLOCAL_READ_SEG(SS, ss);                   AssertRCReturn(rc, rc);
     5273        rc = VMXLOCAL_READ_SEG(DS, ds);                   AssertRCReturn(rc, rc);
     5274        rc = VMXLOCAL_READ_SEG(ES, es);                   AssertRCReturn(rc, rc);
     5275        rc = VMXLOCAL_READ_SEG(FS, fs);                   AssertRCReturn(rc, rc);
     5276        rc = VMXLOCAL_READ_SEG(GS, gs);                   AssertRCReturn(rc, rc);
    52855277
    52865278        /* Restore segment attributes for real-on-v86 mode hack. */
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r45949 r45963  
    29412941                    LogRel(("HM: Cpu%d EntryCtls     %#RX32\n", i, pVM->aCpus[i].hm.s.vmx.u32EntryCtls));
    29422942                    LogRel(("HM: Cpu%d ExitCtls      %#RX32\n", i, pVM->aCpus[i].hm.s.vmx.u32ExitCtls));
    2943                     LogRel(("HM: Cpu%d MSRBitmapPhys %RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysMsrBitmap));
     2943                    LogRel(("HM: Cpu%d MSRBitmapPhys %#RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysMsrBitmap));
    29442944#ifdef VBOX_WITH_AUTO_MSR_LOAD_RESTORE
    2945                     LogRel(("HM: Cpu%d GuestMSRPhys  %RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysGuestMsr));
    2946                     LogRel(("HM: Cpu%d HostMsrPhys   %RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysHostMsr));
    2947                     LogRel(("HM: Cpu%d cGuestMSRs    %u\n",   i, pVM->aCpus[i].hm.s.vmx.cGuestMsrs));
     2945                    LogRel(("HM: Cpu%d GuestMSRPhys  %#RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysGuestMsr));
     2946                    LogRel(("HM: Cpu%d HostMsrPhys   %#RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysHostMsr));
     2947                    LogRel(("HM: Cpu%d cGuestMSRs    %u\n",     i, pVM->aCpus[i].hm.s.vmx.cGuestMsrs));
    29482948#endif
    29492949                }
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