VirtualBox

Changeset 15962 in vbox for trunk/src/VBox/VMM/VMMGC


Ignore:
Timestamp:
Jan 15, 2009 12:33:49 PM (16 years ago)
Author:
vboxsync
Message:

Added debugging code (inactive) for tracking the state of the 32/64 switcher in crash dumps

File:
1 edited

Legend:

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

    r15662 r15962  
    144144    mov     rbx, [rbp + 24 + 8]                             ; pCache
    145145
     146%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     147    mov     qword [rbx + VMCSCACHE.uPos], 2
     148%endif
     149
    146150%ifdef DEBUG
    147151    mov     rax, [rbp + 8 + 8]                              ; pPageCpuPhys
     
    171175.no_cached_writes:
    172176
     177%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     178    mov     qword [rbx + VMCSCACHE.uPos], 3
     179%endif
    173180    ; Save the pCache pointer
    174181    push    xBX
     
    201208    vmwrite rax, [rsp+2]
    202209    add     rsp, 8*2
     210
     211%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     212    mov     qword [rbx + VMCSCACHE.uPos], 4
     213%endif
    203214   
    204215    ; hopefully we can ignore TR (we restore it anyway on the way back to 32 bits mode)
     
    231242    LOADGUESTMSR MSR_K8_SF_MASK,        CPUMCTX.msrSFMASK
    232243    LOADGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE
     244
     245%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     246    mov     qword [rbx + VMCSCACHE.uPos], 5
     247%endif
    233248
    234249    ; Save the pCtx pointer
     
    300315    pop     rdi         ; saved pCache
    301316
     317%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     318    mov     dword [rdi + VMCSCACHE.uPos], 7
     319%endif
    302320%ifdef DEBUG
    303321    mov     [rdi + VMCSCACHE.TestOut.pCache], rdi
    304322    mov     [rdi + VMCSCACHE.TestOut.pCtx], rsi
     323    mov     rax, cr8
     324    mov     [rdi + VMCSCACHE.TestOut.cr8], rax
    305325%endif
    306326   
     
    322342    mov     rax, cr2
    323343    mov     [rdi + VMCSCACHE.cr2], rax
     344%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     345    mov     dword [rdi + VMCSCACHE.uPos], 8
     346%endif
    324347%endif
    325348
     
    329352    mov     eax, VINF_SUCCESS
    330353
     354%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     355    mov     dword [rdi + VMCSCACHE.uPos], 9
     356%endif
    331357.vmstart64_end:
    332358
     
    354380    pop     rdx
    355381    mov     [rdi + VMCSCACHE.TestOut.eflags], rdx
     382%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     383    mov     dword [rdi + VMCSCACHE.uPos], 12
     384%endif
    356385.skip_flags_save:
    357386%endif
     
    366395%ifdef VMX_USE_CACHED_VMCS_ACCESSES
    367396    pop     rdi         ; pCache
     397%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     398    mov     dword [rdi + VMCSCACHE.uPos], 10
     399%endif
    368400
    369401%ifdef DEBUG
     
    390422    mov     [rdi + VMCSCACHE.TestOut.pCache], rdi
    391423    mov     [rdi + VMCSCACHE.TestOut.pCtx], rsi
     424%endif
     425%ifdef VBOX_WITH_CRASHDUMP_MAGIC
     426    mov     dword [rdi + VMCSCACHE.uPos], 11
    392427%endif
    393428
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