VirtualBox

Changeset 79115 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 13, 2019 5:21:17 AM (6 years ago)
Author:
vboxsync
Message:

iem.h: Nested VMX: bugref:9180 Add IEM_CPUMCTX_EXTRN_VMX_VMEXIT_MASK, include CR2 in the IEM_CPUMCTX_EXTRN_VMX_VMENTRY_MASK as we reference it while injecting an event (#PF) during VM-entry.

File:
1 edited

Legend:

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

    r78977 r79115  
    225225
    226226#ifdef VBOX_WITH_NESTED_HWVIRT_VMX
     227/** The CPUMCTX_EXTRN_XXX mask needed when calling IEMExecDecodedVmlaunchVmresume().
     228 * IEM will ASSUME the caller has ensured these are already present. */
    227229# define IEM_CPUMCTX_EXTRN_VMX_VMENTRY_MASK        (  IEM_CPUMCTX_EXTRN_EXEC_DECODED_NO_MEM_MASK \
     230                                                    | CPUMCTX_EXTRN_CR2 \
     231                                                    | CPUMCTX_EXTRN_HWVIRT )
     232
     233/** The CPUMCTX_EXTRN_XXX mask that the IEM VM-exit code will import on-demand when
     234 *  needed, primarily because there are several IEM VM-exit interface functions and
     235 *  some of which may not cause a VM-exit at all. */
     236# define IEM_CPUMCTX_EXTRN_VMX_VMEXIT_MASK         (  CPUMCTX_EXTRN_CR0 | CPUMCTX_EXTRN_CR3 | CPUMCTX_EXTRN_CR4 \
     237                                                    | CPUMCTX_EXTRN_DR7 | CPUMCTX_EXTRN_DR6 \
     238                                                    | CPUMCTX_EXTRN_EFER \
     239                                                    | CPUMCTX_EXTRN_SYSENTER_MSRS \
     240                                                    | CPUMCTX_EXTRN_OTHER_MSRS    /* for PAT MSR */ \
     241                                                    | CPUMCTX_EXTRN_RIP | CPUMCTX_EXTRN_RSP | CPUMCTX_EXTRN_RFLAGS \
     242                                                    | CPUMCTX_EXTRN_SREG_MASK \
     243                                                    | CPUMCTX_EXTRN_TR \
     244                                                    | CPUMCTX_EXTRN_LDTR | CPUMCTX_EXTRN_GDTR | CPUMCTX_EXTRN_IDTR \
    228245                                                    | CPUMCTX_EXTRN_HWVIRT )
    229246#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