VirtualBox

Changeset 91281 in vbox for trunk/src/VBox/VMM/VMMRZ


Ignore:
Timestamp:
Sep 16, 2021 1:32:18 PM (3 years ago)
Author:
vboxsync
Message:

VMM/CPUM,++: Moved the guest's extended state (XState) from the hyper heap and into CPUMCTX. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMRZ/CPUMRZA.asm

    r87361 r91281  
    173173
    174174        ; Load the guest XMM register values we already saved in HMR0VMXStartVMWrapXMM.
    175         mov     pXState, [pCpumCpu + CPUMCPU.Guest.pXStateR0]
     175        lea     pXState, [pCpumCpu + CPUMCPU.Guest.XState]
    176176        movdqa  xmm0,  [pXState + X86FXSTATE.xmm0]
    177177        movdqa  xmm1,  [pXState + X86FXSTATE.xmm1]
     
    256256        mov     xCX, dword [ebp + 8]
    257257 %endif
    258  %ifdef IN_RING0
    259         mov     xCX, [xCX + CPUMCPU.Guest.pXStateR0]
    260  %elifdef IN_RC
    261         mov     xCX, [xCX + CPUMCPU.Guest.pXStateRC]
    262  %else
    263   %error "Invalid context!"
    264  %endif
     258        lea     xCX, [xCX + CPUMCPU.Guest.XState]
    265259
    266260 %ifdef IN_RC
     
    336330        mov     xCX, dword [ebp + 8]
    337331%endif
    338 %ifdef IN_RING0
    339         mov     xCX, [xCX + CPUMCPU.Guest.pXStateR0]
    340 %elifdef IN_RC
    341         mov     xCX, [xCX + CPUMCPU.Guest.pXStateRC]
    342 %else
    343  %error "Invalid context!"
    344 %endif
     332        lea     xCX, [xCX + CPUMCPU.Guest.XState]
    345333
    346334%ifdef IN_RC
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