VirtualBox

Changeset 46913 in vbox for trunk


Ignore:
Timestamp:
Jul 2, 2013 3:32:40 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HMR0: Oops typo. Skip GDTR, IDTR save & restore in the new VT-x code. Should now be faster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0Mixed.mac

    r46905 r46913  
    121121
    122122    ; VT-x only saves the base of the GDTR & IDTR and resets the limit to 0xffff; we must restore the limit correctly!
    123 %ifdef VMX_SKIP_GDTR_IDTR
     123%ifndef VMX_SKIP_GDTR_IDTR
    124124    sub     xSP, xCB * 2
    125125    sgdt    [xSP]
     
    174174
    175175    ; Restore base and limit of the IDTR & GDTR.
    176 %ifdef VMX_SKIP_GDTR_IDTR
     176%ifndef VMX_SKIP_GDTR_IDTR
    177177    lidt    [xSP]
    178178    add     xSP, xCB * 2
     
    260260.vmxstart_invalid_vmcs_ptr:
    261261    ; Restore base and limit of the IDTR & GDTR
    262 %ifdef VMX_SKIP_GDTR_IDTR
     262%ifndef VMX_SKIP_GDTR_IDTR
    263263    lidt    [xSP]
    264264    add     xSP, xCB * 2
     
    299299.vmxstart_start_failed:
    300300    ; Restore base and limit of the IDTR & GDTR.
    301 %ifdef VMX_SKIP_GDTR_IDTR
     301%ifndef VMX_SKIP_GDTR_IDTR
    302302    lidt    [xSP]
    303303    add     xSP, xCB * 2
     
    438438
    439439    ; VT-x only saves the base of the GDTR & IDTR and resets the limit to 0xffff; we must restore the limit correctly!
    440 %ifdef VMX_SKIP_GDTR_IDTR
     440%ifndef VMX_SKIP_GDTR_IDTR
    441441    sub     xSP, xCB * 2
    442442    sgdt    [xSP]
     
    499499
    500500    ; Restore base and limit of the IDTR & GDTR
    501 %ifdef VMX_SKIP_GDTR_IDTR
     501%ifndef VMX_SKIP_GDTR_IDTR
    502502    lidt    [xSP]
    503503    add     xSP, xCB * 2
     
    602602.vmxstart64_invalid_vmcs_ptr:
    603603    ; Restore base and limit of the IDTR & GDTR.
    604 %ifdef VMX_SKIP_GDTR_IDTR
     604%ifndef VMX_SKIP_GDTR_IDTR
    605605    lidt    [xSP]
    606606    add     xSP, xCB * 2
     
    654654.vmxstart64_start_failed:
    655655    ; Restore base and limit of the IDTR & GDTR.
    656 %ifdef VMX_SKIP_GDTR_IDTR
     656%ifndef VMX_SKIP_GDTR_IDTR
    657657    lidt    [xSP]
    658658    add     xSP, xCB * 2
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