VirtualBox

Ignore:
Timestamp:
May 22, 2015 10:11:22 AM (10 years ago)
Author:
vboxsync
Message:

VMM/HM: Comments please, as I don't want to spend another 30 minutes wondering how this can be correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMAll.cpp

    r55129 r56025  
    5555
    5656/**
    57  * Queues a page for invalidation
     57 * Queues a guest page for invalidation.
    5858 *
    5959 * @returns VBox status code.
     
    8080
    8181/**
    82  * Invalidates a guest page
     82 * Invalidates a guest page.
    8383 *
    8484 * @returns VBox status code.
     
    215215VMM_INT_DECL(int) HMInvalidatePageOnAllVCpus(PVM pVM, RTGCPTR GCPtr)
    216216{
     217    /*
     218     * The VT-x/AMD-V code will be flushing TLB each time a VCPU migrates to a different
     219     * host CPU, see hmR0VmxFlushTaggedTlbBoth() and hmR0SvmFlushTaggedTlb().
     220     *
     221     * This is the reason why we do not care about thread preemption here and just
     222     * execute HMInvalidatePage() assuming it might be the 'right' CPU.
     223     */
    217224    VMCPUID idCurCpu = VMMGetCpuId(pVM);
    218225    STAM_COUNTER_INC(&pVM->aCpus[idCurCpu].hm.s.StatFlushPage);
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