VirtualBox

Ignore:
Timestamp:
Jun 28, 2022 6:33:26 PM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM: Alignment checks (#AC(0)/#GP(0)). bugref:9898

File:
1 edited

Legend:

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

    r95403 r95410  
    28112811/** @name   Memory access.
    28122812 * @{ */
    2813 VBOXSTRICTRC    iemMemMap(PVMCPUCC pVCpu, void **ppvMem, size_t cbMem, uint8_t iSegReg, RTGCPTR GCPtrMem, uint32_t fAccess) RT_NOEXCEPT;
     2813
     2814/** Report a \#GP instead of \#AC and do not restrict to ring-3 */
     2815#define IEM_MEMMAP_F_ALIGN_GP       RT_BIT_32(16)
     2816/** SSE access that should report a \#GP instead of \#AC, unless MXCSR.MM=1
     2817 *  when it works like normal \#AC. Always used with IEM_MEMMAP_F_ALIGN_GP. */
     2818#define IEM_MEMMAP_F_ALIGN_SSE      RT_BIT_32(17)
     2819/** If \#AC is applicable, raise it. Always used with IEM_MEMMAP_F_ALIGN_GP.
     2820 * Users include FXSAVE & FXRSTOR. */
     2821#define IEM_MEMMAP_F_ALIGN_GP_OR_AC RT_BIT_32(18)
     2822
     2823VBOXSTRICTRC    iemMemMap(PVMCPUCC pVCpu, void **ppvMem, size_t cbMem, uint8_t iSegReg, RTGCPTR GCPtrMem,
     2824                          uint32_t fAccess, uint32_t uAlignCtl) RT_NOEXCEPT;
    28142825VBOXSTRICTRC    iemMemCommitAndUnmap(PVMCPUCC pVCpu, void *pvMem, uint32_t fAccess) RT_NOEXCEPT;
    28152826#ifndef IN_RING3
     
    28992910#endif
    29002911
    2901 VBOXSTRICTRC    iemMemStackPushBeginSpecial(PVMCPUCC pVCpu, size_t cbMem, void **ppvMem, uint64_t *puNewRsp) RT_NOEXCEPT;
     2912VBOXSTRICTRC    iemMemStackPushBeginSpecial(PVMCPUCC pVCpu, size_t cbMem, uint32_t cbAlign,
     2913                                            void **ppvMem, uint64_t *puNewRsp) RT_NOEXCEPT;
    29022914VBOXSTRICTRC    iemMemStackPushCommitSpecial(PVMCPUCC pVCpu, void *pvMem, uint64_t uNewRsp) RT_NOEXCEPT;
    29032915VBOXSTRICTRC    iemMemStackPushU16(PVMCPUCC pVCpu, uint16_t u16Value) RT_NOEXCEPT;
     
    29082920VBOXSTRICTRC    iemMemStackPushU64Ex(PVMCPUCC pVCpu, uint64_t u64Value, PRTUINT64U pTmpRsp) RT_NOEXCEPT;
    29092921VBOXSTRICTRC    iemMemStackPushU32SReg(PVMCPUCC pVCpu, uint32_t u32Value) RT_NOEXCEPT;
    2910 VBOXSTRICTRC    iemMemStackPopBeginSpecial(PVMCPUCC pVCpu, size_t cbMem, void const **ppvMem, uint64_t *puNewRsp) RT_NOEXCEPT;
     2922VBOXSTRICTRC    iemMemStackPopBeginSpecial(PVMCPUCC pVCpu, size_t cbMem, uint32_t cbAlign,
     2923                                           void const **ppvMem, uint64_t *puNewRsp) RT_NOEXCEPT;
    29112924VBOXSTRICTRC    iemMemStackPopContinueSpecial(PVMCPUCC pVCpu, size_t cbMem, void const **ppvMem, uint64_t *puNewRsp) RT_NOEXCEPT;
    29122925VBOXSTRICTRC    iemMemStackPopDoneSpecial(PVMCPUCC pVCpu, void const *pvMem) RT_NOEXCEPT;
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