Changeset 82864 in vbox for trunk/src/VBox
- Timestamp:
- Jan 27, 2020 5:22:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp
r82863 r82864 224 224 &elem, sizeof(elem)); 225 225 } 226 227 DECLINLINE(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 226 236 #endif 227 237 … … 254 264 &fFlags, sizeof(fFlags)); 255 265 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));265 266 } 266 267 … … 688 689 virtioWriteUsedFlags(pVirtio->pDevIns, pVirtio, idxQueue, fFlags); 689 690 } 690 691 691 692 692 /**
Note:
See TracChangeset
for help on using the changeset viewer.