VirtualBox

Changeset 71774 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Apr 9, 2018 2:50:53 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121877
Message:

PCI: Added a tiny bit of paranoia to address splitup.

Location:
trunk/src/VBox/Devices/Bus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r70181 r71774  
    127127    iDevice = (pGlobals->uConfigReg >> 8) & 0xff;
    128128    config_addr = (pGlobals->uConfigReg & 0xfc) | (addr & 3);
     129    RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */
    129130    if (iBus != 0)
    130131    {
     
    174175    iDevice = (pGlobals->uConfigReg >> 8) & 0xff;
    175176    config_addr = (pGlobals->uConfigReg & 0xfc) | (addr & 3);
     177    RT_UNTRUSTED_VALIDATED_FENCE();
    176178    if (iBus != 0)
    177179    {
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r71768 r71774  
    111111    pPciAddr->iDeviceFunc   = (GCPhysAddr >> 12) & ((1<<(5+3))   - 1); // 5 bits - device, 3 bits - function
    112112    pPciAddr->iRegister     = (GCPhysAddr >>  0) & ((1<<(6+4+2)) - 1); // 6 bits - register, 4 bits - extended register, 2 bits -Byte Enable
     113    RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */
    113114}
    114115
     
    118119    pPciAddr->iDeviceFunc  = (pPciRoot->uConfigReg >> 8) & 0xff;
    119120    pPciAddr->iRegister    = (pPciRoot->uConfigReg & 0xfc) | (addr & 3);
     121    RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */
    120122}
    121123
     
    689691 * @remarks Caller enters the device critical section.
    690692 */
    691 PDMBOTHCBDECL(int) ich9pciMcfgMMIORead (PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
     693PDMBOTHCBDECL(int) ich9pciMcfgMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    692694{
    693695    PDEVPCIROOT pPciRoot = PDMINS_2_DATA(pDevIns, PDEVPCIROOT);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette