forked from virtio-win/kvm-guest-drivers-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The virtqueue_add_buf() routine will return 0 on SUCCESS or otherwise a negative number, usually -28 (ENOSPC), i.e no space for buffer. An inline comment is added for edification. Refactored virtqueue_add_buf() handling to only process the SRB if virtqueue_add_buf() returns SUCCESS. Presently, other positive return codes would be processed. Variable renames: res to add_buffer_req_status index to vq_req_idx MessageID to MessageId -- Also cleaned up variable init table New definitions: VQ_ADD_BUFFER_SUCCESS is defined in vioscsi\helper.h header file. -- Used to initialize add_buffer_req_status variable. (Credit: @JonKohler) To ensure valid data is reported we also move the trace event on failure to above the call to CompleteRequest() and wrap the line for improved readability. -- Add add_buffer_req_status content to trace output on error (Credit: @JonKohler) Signed-off-by: benyamin-codez <115509179+benyamin-codez@users.noreply.github.com>
- Loading branch information
1 parent
bd6caf9
commit c9ed8eb
Showing
2 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters