diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-10-21 17:02:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-18 07:39:54 +0000 |
commit | e7c46cad4150ecb18a0832a61042522974543938 (patch) | |
tree | cd3a1eca4e3c4a888b1021a7e1e2154b5132fec4 /fuzz | |
parent | 917b90e2a38a0ab1f105aec73a263b54e1e45742 (diff) | |
download | crosvm-e7c46cad4150ecb18a0832a61042522974543938.tar crosvm-e7c46cad4150ecb18a0832a61042522974543938.tar.gz crosvm-e7c46cad4150ecb18a0832a61042522974543938.tar.bz2 crosvm-e7c46cad4150ecb18a0832a61042522974543938.tar.lz crosvm-e7c46cad4150ecb18a0832a61042522974543938.tar.xz crosvm-e7c46cad4150ecb18a0832a61042522974543938.tar.zst crosvm-e7c46cad4150ecb18a0832a61042522974543938.zip |
devices: virtio: block: refactor status_writer setup
This consolidates the status byte manipulation in process_one_request() instead of requiring both that function and execute_request() to deal with it. The tests are modified to run the full process_one_request() function instead of just execute_request() to exercise the full descriptor parsing logic, and they are adapted to read the status of the request from the status byte in the buffer from the descriptor since process_one_request() returns successfully as long as the descriptor parsing succeeded, even if the requested I/O failed. BUG=None TEST=./build_test Change-Id: I17affabc2d3c30c810643ce260152cf34893b772 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1918479 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'fuzz')
0 files changed, 0 insertions, 0 deletions