Changeset 81367 in vbox
- Timestamp:
- Oct 18, 2019 7:24:25 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 134080
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r81267 r81367 1492 1492 pThis->szMsg[pThis->iMsg] = '\0'; 1493 1493 if (pThis->iMsg) 1494 LogRel 2(("efi: %s\n", pThis->szMsg));1494 LogRel(("efi: %s\n", pThis->szMsg)); 1495 1495 pThis->iMsg = 0; 1496 1496 } … … 1500 1500 { 1501 1501 pThis->szMsg[pThis->iMsg] = '\0'; 1502 LogRel 2(("efi: %s\n", pThis->szMsg));1502 LogRel(("efi: %s\n", pThis->szMsg)); 1503 1503 pThis->iMsg = 0; 1504 1504 } -
trunk/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VolInfo/VolInfo.c
r80721 r81367 38 38 #include "ParseInf.h" 39 39 #include "PeCoffLib.h" 40 /* 40 41 41 42 #ifdef __GNUC__ 42 43 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" 43 44 #endif 44 45 */ 45 46 // 46 47 // Utility global variables -
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/VirtioScsiDxe/VirtioScsi.c
r80721 r81367 338 338 // response code 339 339 // 340 DEBUG((DEBUG_VERBOSE, "virtio: Response = %d\n", Response->Response)); 341 340 342 switch (Response->Response) { 341 343 case VIRTIO_SCSI_S_OK: -
trunk/src/VBox/Devices/EFI/Firmware/vbox-tools_def.txt
r80935 r81367 241 241 *_*_*_DTC_PATH = DEF(DTC_BIN) 242 242 243 DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror-Wno-array-bounds -include AutoGen.h -fno-common243 DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Wno-array-bounds -include AutoGen.h -fno-common 244 244 DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-probe @VBOX_MINGW32_Wno@ 245 245 DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe @VBOX_MINGW32_Wno@ … … 259 259 DEFINE GCC_X64_RC_FLAGS = -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii 260 260 261 DEFINE GCC48_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror-Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings261 DEFINE GCC48_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings 262 262 DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20 263 263 DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-pie -fno-pic -
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r81349 r81367 92 92 #define VIRTIOSCSI_REQ_QUEUE_CNT 1 /**< Number of req queues exposed by dev. */ 93 93 #define VIRTIOSCSI_QUEUE_CNT VIRTIOSCSI_REQ_QUEUE_CNT + 2 94 #define VIRTIOSCSI_MAX_LUN 256/* < VirtIO specification, section 5.6.4 */95 #define VIRTIOSCSI_MAX_COMMANDS_PER_LUN 128 96 #define VIRTIOSCSI_MAX_SEG_COUNT 126 /* < T.B.D. What is a good value for this? */94 #define VIRTIOSCSI_MAX_LUN 1 /* < VirtIO specification, section 5.6.4 */ 95 #define VIRTIOSCSI_MAX_COMMANDS_PER_LUN 128 /* < T.B.D. What is a good value for this? */ 96 #define VIRTIOSCSI_MAX_SEG_COUNT 126 /* < T.B.D. What is a good value for this? */ 97 97 #define VIRTIOSCSI_MAX_SECTORS_HINT 0x10000 /* < VirtIO specification, section 5.6.4 */ 98 98 #define VIRTIOSCSI_MAX_CHANNEL_HINT 0 /* < VirtIO specification, section 5.6.4 should be 0 */ … … 781 781 RT_NOREF(pszCtrlRespText); 782 782 783 RTSGSEG aRe qSegs[2];784 aRe qSegs[0].cbSeg = sizeof(pRespHdr);785 aRe qSegs[0].pvSeg = pRespHdr;786 aRe qSegs[1].cbSeg = pThis->virtioScsiConfig.uSenseSize;787 aRe qSegs[1].pvSeg = abSenseBuf;783 RTSGSEG aRespSegs[2]; 784 aRespSegs[0].cbSeg = sizeof(struct REQ_RESP_HDR); 785 aRespSegs[0].pvSeg = pRespHdr; 786 aRespSegs[1].cbSeg = pThis->virtioScsiConfig.uSenseSize; 787 aRespSegs[1].pvSeg = abSenseBuf; 788 788 789 789 if (pbSense && pRespHdr->uSenseLen) … … 792 792 pRespHdr->uSenseLen = 0; 793 793 794 RTSGBUF re qSegBuf;795 RTSgBufInit(&re qSegBuf, aReqSegs, RT_ELEMENTS(aReqSegs));794 RTSGBUF respSegBuf; 795 RTSgBufInit(&respSegBuf, aRespSegs, RT_ELEMENTS(aRespSegs)); 796 796 797 797 if (pThis->fResetting) 798 798 pRespHdr->uResponse = VIRTIOSCSI_S_RESET; 799 799 800 virtioQueuePut(pThis->hVirtio, qIdx, &re qSegBuf, pDescChain, true /* fFence */);800 virtioQueuePut(pThis->hVirtio, qIdx, &respSegBuf, pDescChain, true /* fFence */); 801 801 virtioQueueSync(pThis->hVirtio, qIdx); 802 802 … … 966 966 RTSGSEG aReqSegs[4]; 967 967 aReqSegs[cSegs].pvSeg = &respHdr; 968 aReqSegs[cSegs++].cbSeg = sizeof( respHdr);968 aReqSegs[cSegs++].cbSeg = sizeof(x); 969 969 970 970 aReqSegs[cSegs].pvSeg = pReq->pbSense; … … 1145 1145 } 1146 1146 else 1147 if (RT_UNLIKELY(uTarget >= pThis->cTargets || !pTarget->fPresent)) 1148 { 1149 Log2Func(("Error submitting request, target not present!!\n")); 1150 uint8_t abSense[] = { RT_BIT(7) | SCSI_SENSE_RESPONSE_CODE_CURR_FIXED, 1151 0, SCSI_SENSE_NOT_READY, 0, 0, 0, 0, 10, 0, 0, 0 }; 1152 struct REQ_RESP_HDR respHdr = { 0 }; 1153 respHdr.uSenseLen = sizeof(abSense); 1154 respHdr.uStatus = SCSI_STATUS_CHECK_CONDITION; 1155 respHdr.uResponse = VIRTIOSCSI_S_BAD_TARGET; 1156 respHdr.uResidual = cbDataIn + cbDataOut; 1157 virtioScsiReqErr(pThis, qIdx, pDescChain, &respHdr , abSense); 1158 return VINF_SUCCESS; 1159 } 1160 else 1147 1161 if (RT_UNLIKELY(uScsiLun != 0)) 1148 1162 { 1149 Log2Func(("Error submitting request to bad target (%d) or bad LUN (%d)\n", uTarget, uScsiLun));1163 Log2Func(("Error submitting request to bad LUN (%d)\n", uScsiLun)); 1150 1164 uint8_t abSense[] = { RT_BIT(7) | SCSI_SENSE_RESPONSE_CODE_CURR_FIXED, 1151 1165 0, SCSI_SENSE_ILLEGAL_REQUEST, … … 1157 1171 respHdr.uResidual = cbDataOut + cbDataIn; 1158 1172 virtioScsiReqErr(pThis, qIdx, pDescChain, &respHdr, abSense); 1159 return VINF_SUCCESS;1160 }1161 else1162 if (RT_UNLIKELY(uTarget >= pThis->cTargets || !pTarget->fPresent))1163 {1164 Log2Func(("Error submitting request, target not present!!\n"));1165 uint8_t abSense[] = { RT_BIT(7) | SCSI_SENSE_RESPONSE_CODE_CURR_FIXED,1166 0, SCSI_SENSE_NOT_READY, 0, 0, 0, 0, 10, 0, 0, 0 };1167 struct REQ_RESP_HDR respHdr = { 0 };1168 respHdr.uSenseLen = sizeof(abSense);1169 respHdr.uStatus = SCSI_STATUS_CHECK_CONDITION;1170 respHdr.uResponse = VIRTIOSCSI_S_BAD_TARGET;1171 respHdr.uResidual = cbDataIn + cbDataOut;1172 virtioScsiReqErr(pThis, qIdx, pDescChain, &respHdr , abSense);1173 1173 return VINF_SUCCESS; 1174 1174 }
Note:
See TracChangeset
for help on using the changeset viewer.