VirtualBox

Changeset 92363 in vbox


Ignore:
Timestamp:
Nov 11, 2021 11:25:18 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148214
Message:

VMM/include/HMVMXCommon.h: Use IN_NEM_DARWIN instead of IN_RING0 so tstStructVMSize doesn't fail to compile, bugref:10136

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin.cpp

    r92357 r92363  
    12531253 * Instantiate the code we share with ring-0.
    12541254 */
     1255#define IN_NEM_DARWIN
    12551256//#define HMVMX_ALWAYS_TRAP_ALL_XCPTS
    12561257#define HMVMX_ALWAYS_SYNC_FULL_GUEST_STATE
  • trunk/src/VBox/VMM/include/HMVMXCommon.h

    r92359 r92363  
    328328    /** CR4 guest/host mask. */
    329329    uint64_t                    u64Cr4Mask;
    330 #ifdef IN_RING0
     330#ifndef IN_NEM_DARWIN
    331331    /** Current VMX_VMCS_HOST_RIP value (only used in HMR0A.asm). */
    332332    uint64_t                    uHostRip;
     
    354354    /** @} */
    355355
    356 #ifdef IN_RING0
     356#ifndef IN_NEM_DARWIN
    357357    /** @name Host-physical address of VMCS and related data structures.
    358358     *  @{ */
     
    394394AssertCompileMemberAlignment(VMXVMCSINFO, pvGuestMsrStore, 8);
    395395AssertCompileMemberAlignment(VMXVMCSINFO, pvHostMsrLoad,   8);
    396 #ifdef IN_RING0
     396#ifndef IN_NEM_DARWIN
    397397AssertCompileMemberAlignment(VMXVMCSINFO, HCPhysVmcs,      8);
    398398AssertCompileMemberAlignment(VMXVMCSINFO, hMemObj,         8);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette