VirtualBox

Changeset 41931 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jun 27, 2012 4:12:16 PM (13 years ago)
Author:
vboxsync
Message:

TRPM: Save state directly to the CPUMCPU context member instead of putting on the stack. this avoid copying the state around before returning to host context to service an IRQ, or before using IEM.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/CPUMInternal.h

    r41905 r41931  
    369369    CPUMCTXMSRS             GuestMsrs;
    370370
    371     /** Pointer to the current hypervisor core context - R3Ptr. */
    372     R3PTRTYPE(PCPUMCTXCORE) pHyperCoreR3;
    373     /** Pointer to the current hypervisor core context - R0Ptr. */
    374     R0PTRTYPE(PCPUMCTXCORE) pHyperCoreR0;
    375     /** Pointer to the current hypervisor core context - RCPtr. */
    376     RCPTRTYPE(PCPUMCTXCORE) pHyperCoreRC;
    377 
    378371    /** Use flags.
    379372     * These flags indicates both what is to be used and what has been used.
     
    401394
    402395    /** Align the structure on a 64-byte boundary. */
    403     uint8_t                 abPadding2[HC_ARCH_BITS == 32 ? 34 : 26];
     396    uint8_t                 abPadding2[HC_ARCH_BITS == 32 ? 48 : 46];
    404397} CPUMCPU;
    405398/** Pointer to the CPUMCPU instance data residing in the shared VMCPU structure. */
  • trunk/src/VBox/VMM/include/CPUMInternal.mac

    r41906 r41931  
    424424    ; Other stuff.
    425425    ;
    426     ; hypervisor core context.
    427     .pHyperCoreR3         RTR3PTR_RES   1
    428     .pHyperCoreR0         RTR0PTR_RES   1
    429     .pHyperCoreRC         RTRCPTR_RES   1
    430 
    431426    .fUseFlags            resd    1
    432427    .fChanged             resd    1
     
    437432
    438433%if RTHCPTR_CB == 8
    439     .abPadding2           resb    26
     434    .abPadding2           resb    46
    440435%else
    441     .abPadding2           resb    34
     436    .abPadding2           resb    48
    442437%endif
    443438
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