VirtualBox

Changeset 74542 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 1, 2018 5:42:25 AM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM, IEM: Nested VMX: bugref:9180 Preparation of MSR bitmaps for MSR intercepts.

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

Legend:

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

    r74479 r74542  
    634634                uint32_t                uAutoMsrAreaR3;
    635635#endif
    636                 /** 0x368 - Padding. */
    637                 uint8_t             abPadding[0x3f0 - 0x368];
     636                /** 0x368 - The MSR bitmap - R0 ptr. */
     637                R0PTRTYPE(void *)       pvMsrBitmapR0;
     638#if HC_ARCH_BITS == 32
     639                uint32_t                uMsrBitmapR0;
     640#endif
     641                /** 0x370 - The MSR bitmap - R3 ptr. */
     642                R3PTRTYPE(void *)       pvMsrBitmapR3;
     643#if HC_ARCH_BITS == 32
     644                uint32_t                uMsrBitmapR3;
     645#endif
     646                /** 0x378 - Padding. */
     647                uint8_t             abPadding[0x3f0 - 0x378];
    638648            } vmx;
    639649        } CPUM_UNION_NM(s);
     
    741751AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pvVmwriteBitmapR0, 8);
    742752AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pAutoMsrAreaR0,    8);
     753AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pvMsrBitmapR0,     8);
    743754AssertCompileMemberOffset(CPUMCTX, hwvirt.enmHwvirt,           0x3f0);
    744755AssertCompileMemberOffset(CPUMCTX, hwvirt.fLocalForcedActions, 0x3f4);
  • trunk/include/VBox/vmm/hm_vmx.h

    r74523 r74542  
    30253025/** The size of the VMREAD/VMWRITE-bitmap (in pages). */
    30263026#define VMX_V_VMREAD_VMWRITE_BITMAP_PAGES                       1
     3027
     3028/** The size of the MSR bitmap (in bytes). */
     3029#define VMX_V_MSR_BITMAP_SIZE                                   X86_PAGE_4K_SIZE
     3030/** The size of the MSR bitmap (in pages). */
     3031#define VMX_V_MSR_BITMAP_PAGES                                  1
    30273032
    30283033/** The size of the auto-load/store MSR area (in bytes). */
     
    38243829    kVmxVDiag_Vmentry_HostSysenterEspEip,
    38253830    kVmxVDiag_Vmentry_LongModeCS,
     3831    kVmxVDiag_Vmentry_MsrBitmapPtrReadPhys,
    38263832    kVmxVDiag_Vmentry_MsrLoad,
    38273833    kVmxVDiag_Vmentry_MsrLoadCount,
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