VirtualBox

Changeset 78438 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 7, 2019 3:57:37 PM (6 years ago)
Author:
vboxsync
Message:

VMM: More refactoring of GVM & VM structures for bugref:9217

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

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/gvm.h

    r78431 r78438  
    6767
    6868    /** Pointer to the global (ring-0) VM structure this CPU belongs to. */
    69     PGVM            pGVM;
     69    R0PTRTYPE(PGVM) pGVM;
    7070#ifndef VBOX_BUGREF_9217
    7171    /** Pointer to the corresponding cross context CPU structure. */
     
    9595    union
    9696    {
    97 # ifdef VMM_INCLUDED_SRC_include_NEMInternal_h
     97# if defined(VMM_INCLUDED_SRC_include_NEMInternal_h) && defined(IN_RING0)
    9898        struct NEMR0PERVCPU s;
    9999# endif
     
    206206    union
    207207    {
    208 # ifdef VMM_INCLUDED_SRC_include_NEMInternal_h
     208# if defined(VMM_INCLUDED_SRC_include_NEMInternal_h) && defined(IN_RING0)
    209209        struct NEMR0PERVM   s;
    210210# endif
  • trunk/include/VBox/vmm/vm.h

    r78431 r78438  
    315315
    316316#ifndef VBOX_FOR_DTRACE_LIB
     317AssertCompileSizeAlignment(VMCPU, 4096);
    317318
    318319/** @name Operations on VMCPU::enmState
     
    16331634extern DECLIMPORT(VM)   g_VM;
    16341635
     1636/** The VMCPU structure for virtual CPU \#0.
     1637 * This is imported from the VMMRCBuiltin module, i.e. it's a one of those magic
     1638 * globals which we should avoid using.
     1639 */
     1640extern DECLIMPORT(VMCPU) g_VCpu0;
     1641
    16351642RT_C_DECLS_END
    16361643#endif
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