VirtualBox

Changeset 55106 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Apr 6, 2015 7:58:37 PM (10 years ago)
Author:
vboxsync
Message:

VMM: host+guest xsave/xrstor state handling - not enabled.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.mac

    r55048 r55106  
    235235    .msrApicBase        resb    8
    236236    alignb 8
     237    .xcr0               resq    1
     238    .fXStateMask        resq    1
    237239    .pXStateR0      RTR0PTR_RES 1
    238240    .pXStateR3      RTR3PTR_RES 1
    239241    .pXStateRC      RTRCPTR_RES 1
     242    .aoffXState         resw    64
    240243    alignb 64
    241244endstruc
  • trunk/include/VBox/vmm/cpumctx.h

    r55048 r55106  
    399399    /** @} */
    400400
     401    /** The XCR0 register. */
     402    uint64_t                    xcr0;
     403    /** The mask to pass to XSAVE/XRSTOR in EDX:EAX.  If zero we use
     404     *  FXSAVE/FXRSTOR (since bit 0 will always be set, we only need to test it). */
     405    uint64_t                    fXStateMask;
     406
    401407    /** Pointer to the FPU/SSE/AVX/XXXX state ring-0 mapping. */
    402408    R0PTRTYPE(PX86XSAVEAREA)    pXStateR0;
     
    405411    /** Pointer to the FPU/SSE/AVX/XXXX state raw-mode mapping. */
    406412    RCPTRTYPE(PX86XSAVEAREA)    pXStateRC;
     413    /** State component offsets into pXState, UINT16_MAX if not present. */
     414    uint16_t                    aoffXState[64];
    407415
    408416    /** Size padding. */
    409     uint32_t        au32SizePadding[HC_ARCH_BITS == 32 ? 3 : 1];
     417    uint32_t        au32SizePadding[HC_ARCH_BITS == 32 ? 15 : 13];
    410418} CPUMCTX;
    411419#pragma pack()
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