crosvm/crosvm-fuzz
David Stevens 9df3eb7ef2 devices: virtio: disallow modification of ready queues
Disallow modification of a queue configuration's after it has been
enabled, since the spec states drivers MUST configure the other
virtqueue fields before setting enabling the virtqueue. This allows the
queue validation to be done once and then saved, instead of requiring
validation for every peek.

Before this change, modifications of running virtqueues were not well
defined, since the Queue instance owned by the VirtioPciDevice is not
the same as the Queue instance owned by the VirtioDevice implementation.

BUG=None
TEST=boot ARCVM and crostini on ManaTEE and non-ManaTEE

Change-Id: Ibd1f2bdb0a49865cedd8a0424199a72316696b4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3737409
Commit-Queue: David Stevens <stevensd@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2022-07-01 06:03:56 +00:00
..
.gitignore Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
block_fuzzer.rs devices: virtio: disallow modification of ready queues 2022-07-01 06:03:56 +00:00
Cargo.toml cros-fuzz: upgrade to rand_core 0.6 2022-06-30 23:22:39 +00:00
fs_server_fuzzer.rs clippy: Fix aarch64 and crosvm-fuzz 2022-02-04 19:16:05 +00:00
OWNERS Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
qcow_fuzzer.rs disk: qcow: rewrite tests using FileReadWriteAtVolatile 2022-02-17 22:04:23 +00:00
usb_descriptor_fuzzer.rs Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
virtqueue_fuzzer.rs devices: virtio: disallow modification of ready queues 2022-07-01 06:03:56 +00:00
zimage_fuzzer.rs clippy: Fix aarch64 and crosvm-fuzz 2022-02-04 19:16:05 +00:00