VirtualBox

Changeset 101639 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 27, 2023 7:52:32 PM (15 months ago)
Author:
vboxsync
Message:

vmm/vm.h: A few todos and some whitespace adjustments.

File:
1 edited

Legend:

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

    r100230 r101639  
    474474#if defined(VBOX_VMM_TARGET_ARMV8)
    475475/** This action forces the VM to inject an IRQ into the guest. */
    476 # define VMCPU_FF_INTERRUPT_IRQ              RT_BIT_64(VMCPU_FF_INTERRUPT_IRQ_BIT)
    477 # define VMCPU_FF_INTERRUPT_IRQ_BIT          0
     476# define VMCPU_FF_INTERRUPT_IRQ             RT_BIT_64(VMCPU_FF_INTERRUPT_IRQ_BIT)
     477# define VMCPU_FF_INTERRUPT_IRQ_BIT         0
    478478/** This action forces the VM to inject an FIQ into the guest. */
    479 # define VMCPU_FF_INTERRUPT_FIQ              RT_BIT_64(VMCPU_FF_INTERRUPT_FIQ_BIT)
    480 # define VMCPU_FF_INTERRUPT_FIQ_BIT          1
     479# define VMCPU_FF_INTERRUPT_FIQ             RT_BIT_64(VMCPU_FF_INTERRUPT_FIQ_BIT)
     480# define VMCPU_FF_INTERRUPT_FIQ_BIT         1
    481481#else
    482482/** This action forces the VM to check any pending interrupts on the APIC. */
    483 # define VMCPU_FF_INTERRUPT_APIC             RT_BIT_64(VMCPU_FF_INTERRUPT_APIC_BIT)
    484 # define VMCPU_FF_INTERRUPT_APIC_BIT         0
     483# define VMCPU_FF_INTERRUPT_APIC            RT_BIT_64(VMCPU_FF_INTERRUPT_APIC_BIT)
     484# define VMCPU_FF_INTERRUPT_APIC_BIT        0
    485485/** This action forces the VM to check any pending interrups on the PIC. */
    486 # define VMCPU_FF_INTERRUPT_PIC              RT_BIT_64(VMCPU_FF_INTERRUPT_PIC_BIT)
    487 # define VMCPU_FF_INTERRUPT_PIC_BIT          1
     486# define VMCPU_FF_INTERRUPT_PIC             RT_BIT_64(VMCPU_FF_INTERRUPT_PIC_BIT)
     487# define VMCPU_FF_INTERRUPT_PIC_BIT         1
    488488#endif
    489489/** This action forces the VM to schedule and run pending timer (TM).
     
    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.  */
     576/** Pending MTF (Monitor Trap Flag) event.
     577 * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
    577578#define VMCPU_FF_VMX_MTF                    RT_BIT_64(VMCPU_FF_VMX_MTF_BIT)
    578579#define VMCPU_FF_VMX_MTF_BIT                32
    579580/** VMX APIC-write emulation pending.
    580581 * @todo possible candidate for internal EFLAGS, or maybe just a summary bit
    581  *       (see also VMCPU_FF_VMX_INT_WINDOW). */
     582 *       (see also VMCPU_FF_VMX_INT_WINDOW).
     583 * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
    582584#define VMCPU_FF_VMX_APIC_WRITE             RT_BIT_64(VMCPU_FF_VMX_APIC_WRITE_BIT)
    583585#define VMCPU_FF_VMX_APIC_WRITE_BIT         33
     
    590592 * @todo Change the IEM side of this to not poll but to track down the places
    591593 *       where it can be generated and set an internal EFLAGS bit that causes it
    592  *       to be checked out when finishing the current instruction. */
     594 *       to be checked out when finishing the current instruction.
     595 * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
    593596#define VMCPU_FF_VMX_INT_WINDOW             RT_BIT_64(VMCPU_FF_VMX_INT_WINDOW_BIT)
    594597#define VMCPU_FF_VMX_INT_WINDOW_BIT         34
    595598/** VMX NMI-window event pending.
    596  * Same "pending" comment and todo in VMCPU_FF_VMX_INT_WINDOW. */
     599 * Same "pending" comment and todo in VMCPU_FF_VMX_INT_WINDOW.
     600 * @todo r=bird: Not part of VMCPU_FF_ALL_MASK, explain?  */
    597601#define VMCPU_FF_VMX_NMI_WINDOW             RT_BIT_64(VMCPU_FF_VMX_NMI_WINDOW_BIT)
    598602#define VMCPU_FF_VMX_NMI_WINDOW_BIT         35
     
    626630/** High priority VMCPU pre-execution actions. */
    627631#if defined(VBOX_VMM_TARGET_ARMV8)
    628 # define VMCPU_FF_HIGH_PRIORITY_PRE_MASK         (  VMCPU_FF_TIMER        | VMCPU_FF_INTERRUPT_IRQ     | VMCPU_FF_INTERRUPT_FIQ \
    629                                                   | VMCPU_FF_DBGF )
    630 #else
    631 # define VMCPU_FF_HIGH_PRIORITY_PRE_MASK         (  VMCPU_FF_TIMER        | VMCPU_FF_INTERRUPT_APIC     | VMCPU_FF_INTERRUPT_PIC \
    632                                                   | VMCPU_FF_UPDATE_APIC  | VMCPU_FF_DBGF \
    633                                                   | VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL \
    634                                                   | VMCPU_FF_INTERRUPT_NESTED_GUEST | VMCPU_FF_VMX_MTF  | VMCPU_FF_VMX_APIC_WRITE \
    635                                                   | VMCPU_FF_VMX_PREEMPT_TIMER | VMCPU_FF_VMX_NMI_WINDOW | VMCPU_FF_VMX_INT_WINDOW )
     632# define VMCPU_FF_HIGH_PRIORITY_PRE_MASK        (  VMCPU_FF_TIMER        | VMCPU_FF_INTERRUPT_IRQ     | VMCPU_FF_INTERRUPT_FIQ \
     633                                                 | VMCPU_FF_DBGF )
     634#else
     635# define VMCPU_FF_HIGH_PRIORITY_PRE_MASK        (  VMCPU_FF_TIMER        | VMCPU_FF_INTERRUPT_APIC     | VMCPU_FF_INTERRUPT_PIC \
     636                                                 | VMCPU_FF_UPDATE_APIC  | VMCPU_FF_DBGF \
     637                                                 | VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL \
     638                                                 | VMCPU_FF_INTERRUPT_NESTED_GUEST | VMCPU_FF_VMX_MTF  | VMCPU_FF_VMX_APIC_WRITE \
     639                                                 | VMCPU_FF_VMX_PREEMPT_TIMER | VMCPU_FF_VMX_NMI_WINDOW | VMCPU_FF_VMX_INT_WINDOW )
    636640#endif
    637641
     
    716720/** All the forced VM flags. */
    717721#define VM_FF_ALL_MASK                          (UINT32_MAX)
    718 /** All the forced VMCPU flags. */
     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. */
    719726#define VMCPU_FF_ALL_MASK                       (UINT32_MAX)
    720727
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