VirtualBox

Changeset 47454 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 29, 2013 11:03:11 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Make save-DR7 function name more clear (addressed a todo).

File:
1 edited

Legend:

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

    r47446 r47454  
    56225622
    56235623/**
    5624  * Saves the guest debug registers from the current VMCS into the guest-CPU
     5624 * Saves the guest debug-register DR7 from the current VMCS into the guest-CPU
    56255625 * context.
    56265626 *
     
    56325632 *
    56335633 * @remarks No-long-jump zone!!!
    5634  * @todo r=bird: Why is this plural when it only saves DR7?  I almost jumped to
    5635  *       the wrong conclusions looking at the I/O code just now (it most likely
    5636  *       only needs DR7).
    5637  */
    5638 static int hmR0VmxSaveGuestDebugRegs(PVMCPU pVCpu, PCPUMCTX pMixedCtx)
     5634 */
     5635static int hmR0VmxSaveGuestDR7(PVMCPU pVCpu, PCPUMCTX pMixedCtx)
    56395636{
    56405637    if (!(pVCpu->hm.s.vmx.fUpdatedGuestState & HMVMX_UPDATED_GUEST_DEBUG))
     
    57085705    AssertLogRelMsgRCReturn(rc, ("hmR0VmxSaveGuestTableRegs failed! rc=%Rrc (pVCpu=%p)\n", rc, pVCpu), rc);
    57095706
    5710     rc = hmR0VmxSaveGuestDebugRegs(pVCpu, pMixedCtx);
    5711     AssertLogRelMsgRCReturn(rc, ("hmR0VmxSaveGuestDebugRegs failed! rc=%Rrc (pVCpu=%p)\n", rc, pVCpu), rc);
     5707    rc = hmR0VmxSaveGuestDR7(pVCpu, pMixedCtx);
     5708    AssertLogRelMsgRCReturn(rc, ("hmR0VmxSaveGuestDR7 failed! rc=%Rrc (pVCpu=%p)\n", rc, pVCpu), rc);
    57125709
    57135710    rc = hmR0VmxSaveGuestSysenterMsrs(pVCpu, pMixedCtx);
     
    57275724
    57285725    rc = hmR0VmxSaveGuestApicState(pVCpu, pMixedCtx);
    5729     AssertLogRelMsgRCReturn(rc, ("hmR0VmxSaveGuestDebugRegs failed! rc=%Rrc (pVCpu=%p)\n", rc, pVCpu), rc);
     5726    AssertLogRelMsgRCReturn(rc, ("hmR0VmxSaveGuestApicState failed! rc=%Rrc (pVCpu=%p)\n", rc, pVCpu), rc);
    57305727
    57315728    AssertMsg(pVCpu->hm.s.vmx.fUpdatedGuestState == HMVMX_UPDATED_GUEST_ALL,
     
    85168513             *        breakpoints.  The whole host & guest debugger stuff needs to be
    85178514             *        looked over at some point.  For now, it's just best effort. */
    8518             rc = hmR0VmxSaveGuestDebugRegs(pVCpu, pMixedCtx);      /* For DR7. */
     8515            rc = hmR0VmxSaveGuestDR7(pVCpu, pMixedCtx);
    85198516            AssertRCReturn(rc, rc);
    85208517            uint32_t const uDr7 = pMixedCtx->dr[7];
     
    90329029            ASMSetDR6(pMixedCtx->dr[6]);
    90339030
    9034         rc = hmR0VmxSaveGuestDebugRegs(pVCpu, pMixedCtx);
     9031        rc = hmR0VmxSaveGuestDR7(pVCpu, pMixedCtx);
    90359032
    90369033        /* X86_DR7_GD will be cleared if DRx accesses should be trapped inside the guest. */
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