VirtualBox

Changeset 19812 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 19, 2009 11:54:55 AM (16 years ago)
Author:
vboxsync
Message:

Implemented HWACCMFlushAllTLBs

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hwaccm.h

    r19808 r19812  
    8181#ifndef IN_RC
    8282VMMDECL(int)     HWACCMFlushTLB(PVMCPU pVCpu);
     83VMMDECL(int)     HWACCMFlushAllTLBs(PVM pVM);
    8384VMMDECL(int)     HWACCMInvalidatePhysPage(PVMCPU pVCpu, RTGCPHYS GCPhys);
    8485VMMDECL(bool)    HWACCMIsNestedPagingActive(PVM pVM);
  • trunk/include/VBox/vm.h

    r19810 r19812  
    293293 * (NON-GLOBAL FLUSH) */
    294294#define VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL    RT_BIT_32(17)
     295/** Check for pending TLB shootdown actions. */
     296#define VMCPU_FF_TLB_SHOOTDOWN              RT_BIT_32(18)
     297/** Check for pending TLB flush action. */
     298#define VMCPU_FF_TLB_FLUSH_BIT              19
     299#define VMCPU_FF_TLB_FLUSH                  RT_BIT_32(VMCPU_FF_TLB_FLUSH_BIT)
    295300/** Check the interupt and trap gates */
    296301#define VMCPU_FF_TRPM_SYNC_IDT              RT_BIT_32(20)
     
    303308/** Inhibit interrupts pending. See EMGetInhibitInterruptsPC(). */
    304309#define VMCPU_FF_INHIBIT_INTERRUPTS         RT_BIT_32(24)
    305 /** Check for pending TLB shootdown actions. */
    306 #define VMCPU_FF_TLB_SHOOTDOWN              RT_BIT_32(25)
    307310/** CSAM needs to scan the page that's being executed */
    308311#define VMCPU_FF_CSAM_SCAN_PAGE             RT_BIT_32(26)
     
    451454#define VM_FF_TESTANDCLEAR(pVM, iBit)        (ASMBitTestAndClear(&(pVM)->fGlobalForcedActions, iBit))
    452455
     456/** @def VMCPU_FF_TESTANDCLEAR
     457 * Checks if one (!) force action in the specified set is pending and clears it atomically
     458 *
     459 * @returns true if the bit was set.
     460 * @returns false if the bit was clear.
     461 * @param   pVCpu   VMCPU Handle.
     462 * @param   iBit    Bit position to check and clear
     463 */
     464#define VMCPU_FF_TESTANDCLEAR(pVCpu, iBit)    (ASMBitTestAndClear(&(pVCpu)->fLocalForcedActions, iBit))
     465
    453466/** @def VMCPU_FF_ISPENDING
    454467 * Checks if one or more force action in the specified set is pending for the given VCPU.
    455468 *
    456  * @param   pVCpu     VMCPU Handle.
     469 * @param   pVCpu   VMCPU Handle.
    457470 * @param   fFlags  The flags to check for.
    458471 */
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