VirtualBox

Changeset 82864 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 27, 2020 5:22:40 AM (5 years ago)
Author:
vboxsync
Message:

Move function unused in R0 into R3 guards to fix burn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp

    r82863 r82864  
    224224                          &elem, sizeof(elem));
    225225}
     226
     227DECLINLINE(void) virtioWriteUsedFlags(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue, uint32_t fFlags)
     228{
     229    AssertMsg(pVirtio->uDeviceStatus & VIRTIO_STATUS_DRIVER_OK, ("Called with guest driver not ready\n"));
     230    RT_UNTRUSTED_VALIDATED_FENCE(); /* VirtIO 1.0, Section 3.2.1.4.1 */
     231    PDMDevHlpPCIPhysWrite(pDevIns,
     232                          pVirtio->aGCPhysQueueUsed[idxQueue] + RT_UOFFSETOF(VIRTQ_USED_T, fFlags),
     233                          &fFlags, sizeof(fFlags));
     234}
     235
    226236#endif
    227237
     
    254264                      &fFlags, sizeof(fFlags));
    255265    return fFlags;
    256 }
    257 
    258 DECLINLINE(void) virtioWriteUsedFlags(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue, uint32_t fFlags)
    259 {
    260     AssertMsg(pVirtio->uDeviceStatus & VIRTIO_STATUS_DRIVER_OK, ("Called with guest driver not ready\n"));
    261     RT_UNTRUSTED_VALIDATED_FENCE(); /* VirtIO 1.0, Section 3.2.1.4.1 */
    262     PDMDevHlpPCIPhysWrite(pDevIns,
    263                           pVirtio->aGCPhysQueueUsed[idxQueue] + RT_UOFFSETOF(VIRTQ_USED_T, fFlags),
    264                           &fFlags, sizeof(fFlags));
    265266}
    266267
     
    688689    virtioWriteUsedFlags(pVirtio->pDevIns, pVirtio, idxQueue, fFlags);
    689690}
    690 
    691691
    692692/**
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