VirtualBox

Changeset 101667 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 31, 2023 4:09:30 AM (15 months ago)
Author:
vboxsync
Message:

vmm/vm.h: Added VMX VCPU FFs to VMCPU_FF_ALL_MASKS as suggested in the todos.

File:
1 edited

Legend:

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

    r101639 r101667  
    574574#define VMCPU_FF_VMX_PREEMPT_TIMER          RT_BIT_64(VMCPU_FF_VMX_PREEMPT_TIMER_BIT)
    575575#define VMCPU_FF_VMX_PREEMPT_TIMER_BIT      31
    576 /** Pending MTF (Monitor Trap Flag) event.
    577  * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
     576/** Pending MTF (Monitor Trap Flag) event. */
    578577#define VMCPU_FF_VMX_MTF                    RT_BIT_64(VMCPU_FF_VMX_MTF_BIT)
    579578#define VMCPU_FF_VMX_MTF_BIT                32
    580579/** VMX APIC-write emulation pending.
    581580 * @todo possible candidate for internal EFLAGS, or maybe just a summary bit
    582  *       (see also VMCPU_FF_VMX_INT_WINDOW).
    583  * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
     581 *       (see also VMCPU_FF_VMX_INT_WINDOW). */
    584582#define VMCPU_FF_VMX_APIC_WRITE             RT_BIT_64(VMCPU_FF_VMX_APIC_WRITE_BIT)
    585583#define VMCPU_FF_VMX_APIC_WRITE_BIT         33
     
    592590 * @todo Change the IEM side of this to not poll but to track down the places
    593591 *       where it can be generated and set an internal EFLAGS bit that causes it
    594  *       to be checked out when finishing the current instruction.
    595  * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
     592 *       to be checked out when finishing the current instruction. */
    596593#define VMCPU_FF_VMX_INT_WINDOW             RT_BIT_64(VMCPU_FF_VMX_INT_WINDOW_BIT)
    597594#define VMCPU_FF_VMX_INT_WINDOW_BIT         34
    598595/** VMX NMI-window event pending.
    599  * Same "pending" comment and todo in VMCPU_FF_VMX_INT_WINDOW.
    600  * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
     596 * Same "pending" comment and todo in VMCPU_FF_VMX_INT_WINDOW. */
    601597#define VMCPU_FF_VMX_NMI_WINDOW             RT_BIT_64(VMCPU_FF_VMX_NMI_WINDOW_BIT)
    602598#define VMCPU_FF_VMX_NMI_WINDOW_BIT         35
     
    720716/** All the forced VM flags. */
    721717#define VM_FF_ALL_MASK                          (UINT32_MAX)
    722 /** All the forced VMCPU flags.
    723  * @todo r=bird: VMCPU_FF_VMX_MTF, VMCPU_FF_VMX_APIC_WRITE,
    724  *       VMCPU_FF_VMX_INT_WINDOW and VMCPU_FF_VMX_NMI_WINDOW are not a part
    725  *       of this mask for some unexplained reason. */
    726 #define VMCPU_FF_ALL_MASK                       (UINT32_MAX)
     718/** All the forced VMCPU flags. */
     719#define VMCPU_FF_ALL_MASK                       (  UINT32_MAX \
     720                                                | VMCPU_FF_VMX_MTF | VMCPU_FF_VMX_APIC_WRITE | VMCPU_FF_VMX_INT_WINDOW \
     721                                                | VMCPU_FF_VMX_NMI_WINDOW )
    727722
    728723/** All the forced VM flags except those related to raw-mode and hardware
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