VirtualBox

Changeset 82977 in vbox


Ignore:
Timestamp:
Feb 4, 2020 12:45:12 PM (5 years ago)
Author:
vboxsync
Message:

VMM/GMMR0: Use the chunk list rather than the AVL tree in GMMR0FindDuplicatePageReq to look for duplicate pages. This will restricts the AVL tree to lookups and make it simpler to protect. [fixes] bugref:9627

File:
1 edited

Legend:

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

    r82976 r82977  
    665665    VMCPUID                 idCpu;
    666666} GMMCHECKSHAREDMODULEINFO;
    667 
    668 /**
    669  * Argument packet for gmmR0FindDupPageInChunk by GMMR0FindDuplicatePage.
    670  */
    671 typedef struct GMMFINDDUPPAGEINFO
    672 {
    673     PGVM                    pGVM;
    674     PGMM                    pGMM;
    675     uint8_t                *pSourcePage;
    676     bool                    fFoundDuplicate;
    677 } GMMFINDDUPPAGEINFO;
    678667
    679668
     
    54335422                     * Walk the chunks
    54345423                     */
    5435                     GMMFINDDUPPAGEINFO Args;
    5436                     Args.pGVM            = pGVM;
    5437                     Args.pGMM            = pGMM;
    5438                     Args.pSourcePage     = pbSourcePage;
    5439                     Args.fFoundDuplicate = false;
    5440 
    5441                     PGMMCHUNK pChunk;
    54425424                    pReq->fDuplicate = false;
    54435425                    RTListForEach(&pGMM->ChunkList, pChunk, GMMCHUNK, ListNode)
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