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
block_fuzzer.rs devices: virtio: disallow modification of ready queues 2022-07-01 06:03:56 +00:00
Cargo.toml
fs_server_fuzzer.rs
OWNERS
qcow_fuzzer.rs
usb_descriptor_fuzzer.rs
virtqueue_fuzzer.rs devices: virtio: disallow modification of ready queues 2022-07-01 06:03:56 +00:00
zimage_fuzzer.rs