VirtualBox

Changeset 1560 in vbox for trunk/src


Ignore:
Timestamp:
Mar 19, 2007 4:41:06 PM (18 years ago)
Author:
vboxsync
Message:

Include offset into first page into page number calculation (!).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r1 r1560  
    8484    VBOXHGCMLINPTR *pLinPtr = &paLinPtrs[iLinPtr];
    8585   
     86    /* Take the offset into the current page also into account! */
     87    u32Size += GCPtr & PAGE_OFFSET_MASK;
     88
    8689    uint32_t cPages = (u32Size + PAGE_SIZE - 1) / PAGE_SIZE;
    8790   
     
    419422                             if (pGuestParm->type != VMMDevHGCMParmType_LinAddr_In)
    420423                             {
    421                                  /* Remember the guest physical pages those belongs to the virtual address
     424                                 /* Remember the guest physical pages that belong to the virtual address
    422425                                  * region.
    423426                                  */
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