VirtualBox

Changeset 81811 in vbox


Ignore:
Timestamp:
Nov 12, 2019 4:04:41 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134602
Message:

PDMDevHlp/IOM: MMIO hack. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r81753 r81811  
    356356    VM_ASSERT_EMT0_RETURN(pVM, VERR_VM_THREAD_NOT_EMT);
    357357    VM_ASSERT_STATE_RETURN(pVM, VMSTATE_CREATING, VERR_VM_INVALID_VM_STATE);
     358
     359    /* HACK ALERT! Round the size up to page size.  The PCI bus should do something similar before mapping it. */
     360    /** @todo It's possible we need to do dummy MMIO fill-in of the PCI bus or
     361     *        guest adds more alignment to an region. */
     362    cbRegion = RT_ALIGN_T(cbRegion, PAGE_SIZE, RTGCPHYS);
    358363
    359364    int rc = IOMR3MmioCreate(pVM, pDevIns, cbRegion, fFlags, pPciDev, iPciRegion,
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