VirtualBox

Changeset 97095 in vbox


Ignore:
Timestamp:
Oct 11, 2022 8:46:59 PM (2 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Some comments around importing INHIBIT_INT/NMI early.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r97069 r97095  
    63106310            /*
    63116311             * Always import the guest-interruptibility state as we need it while evaluating
    6312              * injecting events on re-entry.
     6312             * injecting events on re-entry.  We could in *theory* postpone reading it for
     6313             * exits that does not involve instruction emulation, but since most exits are
     6314             * for instruction emulation (exceptions being external interrupts, shadow
     6315             * paging building page faults and EPT violations, and interrupt window stuff)
     6316             * this is a reasonable simplification.
    63136317             *
    63146318             * We don't import CR0 (when unrestricted guest execution is unavailable) despite
     
    63166320             * mode changes wrt CR0 are intercepted.
    63176321             *
    6318              * Note! This mask _must_ match the default value for the a_fDonePostExit value
    6319              *       for the vmxHCImportGuestState template!
     6322             * Note! This mask _must_ match the default value for the default a_fDonePostExit
     6323             *       value for the vmxHCImportGuestState template!
    63206324             */
     6325            /** @todo r=bird: consider dropping the INHIBIT_XXX and fetch the state
     6326             * explicitly in the exit handlers and injection function.  That way we have
     6327             * fewer clusters of vmread spread around the code, because the EM history
     6328             * executor won't execute very many non-exiting instructions before stopping. */
    63216329            rc = vmxHCImportGuestState<  CPUMCTX_EXTRN_INHIBIT_INT
    63226330                                       | CPUMCTX_EXTRN_INHIBIT_NMI
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