VirtualBox

Changeset 15046 in vbox for trunk


Ignore:
Timestamp:
Dec 5, 2008 1:58:00 PM (16 years ago)
Author:
vboxsync
Message:

No need to restore CR2 for AMD-V.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/HWACCMGCA.asm

    r15045 r15046  
    348348    ;/* Save the Guest CPU context pointer. */
    349349    push    rsi                     ; push for saving the state at the end
    350 
    351     ; Restore CR2
    352     mov     rbx, [rsi + CPUMCTX.cr2]
    353     mov     cr2, rbx
    354350
    355351    ; save host fs, gs, sysenter msr etc
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0Mixed.mac

    r14802 r15046  
    528528    mov     xSI, [xBP + xS*2 + RTHCPHYS_CB*2]   ; pCtx
    529529    push    xSI                     ; push for saving the state at the end
    530 
    531     ; Restore CR2
    532     mov     ebx, [xSI + CPUMCTX.cr2]
    533     mov     cr2, xBX
    534530
    535531    ; save host fs, gs, sysenter msr etc
     
    636632    push    rsi                     ; push for saving the state at the end
    637633
    638     ; Restore CR2
    639     mov     rbx, [rsi + CPUMCTX.cr2]
    640     mov     cr2, rbx
    641 
    642634    ; save host fs, gs, sysenter msr etc
    643635    mov     rax, [rbp + xS*2]       ; pVMCBHostPhys (64 bits physical address; x86: take low dword only)
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