VirtualBox

Changeset 72307 in vbox


Ignore:
Timestamp:
May 23, 2018 5:42:52 PM (7 years ago)
Author:
vboxsync
Message:

NEM/win: Intercept and handle MSR accesses. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/hyperv.h

    r72300 r72307  
    13561356
    13571357
     1358/** The payload format for HvMessageTypeX64MsrIntercept. */
     1359typedef struct _HV_X64_MSR_INTERCEPT_MESSAGE
     1360{
     1361    HV_X64_INTERCEPT_MESSAGE_HEADER     Header;                 /**< 0x00 */
     1362    uint32_t                            MsrNummber;             /**< 0x28 (ecx) */
     1363    uint32_t                            Reserved;               /**< 0x2c */
     1364    uint64_t                            Rdx;                    /**< 0x30 */
     1365    uint64_t                            Rax;                    /**< 0x38 */
     1366} HV_X64_MSR_INTERCEPT_MESSAGE;
     1367AssertCompileSize(HV_X64_MSR_INTERCEPT_MESSAGE, 0x40);
     1368/** Pointer to a HvMessageTypeX64MsrIntercept payload. */
     1369typedef HV_X64_MSR_INTERCEPT_MESSAGE *PHV_X64_MSR_INTERCEPT_MESSAGE;
     1370/** Pointer to a const HvMessageTypeX64MsrIntercept payload. */
     1371typedef HV_X64_MSR_INTERCEPT_MESSAGE const *PCHV_X64_MSR_INTERCEPT_MESSAGE;
     1372
     1373/** Full MSR message. */
     1374typedef struct
     1375{
     1376    HV_MESSAGE_HEADER                   MsgHdr;
     1377    HV_X64_MSR_INTERCEPT_MESSAGE        Payload;
     1378} HV_X64_MSR_INTERCEPT_MESSAGE_FULL;
     1379
     1380
    13581381/** X64 I/O port access information (HvMessageTypeX64IoPortIntercept). */
    13591382typedef union HV_X64_IO_PORT_ACCESS_INFO
     
    15531576        /** HvMessageTypeX64IoPortIntercept */
    15541577        HV_X64_IO_PORT_INTERCEPT_MESSAGE    X64IoPortIntercept;
     1578        /** HvMessageTypeX64MsrIntercept */
     1579        HV_X64_MSR_INTERCEPT_MESSAGE        X64MsrIntercept;
    15551580        /** HvMessageTypeX64CpuidIntercept */
    15561581        HV_X64_CPUID_INTERCEPT_MESSAGE      X64CpuIdIntercept;
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