Add virtio-mem, virtio-balloon, and virtio-rng device support + CI - #7
Open
Zildj1an wants to merge 1 commit into
Open
Add virtio-mem, virtio-balloon, and virtio-rng device support + CI#7Zildj1an wants to merge 1 commit into
Zildj1an wants to merge 1 commit into
Conversation
Extend VirtFuzz to target additional virtio device drivers beyond
the original wireless/Bluetooth scope.
virtio-mem (id=24): single guest-request virtqueue; config space
initialised with a 2MiB block size, 256MiB region at 4GiB physical
base. Includes kernel config fragment (mem.config) enabling
CONFIG_VIRTIO_MEM and annotate-mem.sh to instrument
drivers/virtio/virtio_mem.c for kcov coverage.
virtio-balloon (id=5) and virtio-rng (id=4) added as minimal
stubs; their config structs and CLI.
All three devices are selectable via --device mem / balloon / rng
or via a JSON device-definition file.
Also added CI testing:
09:47 [VirtFuzz][virtio-mem-and-other-devices !?]$ cargo test qemu::device_config
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
Running unittests src/lib.rs (target/debug/deps/virtfuzz-9c10a25e26c60738)
running 2 tests
test qemu::device_config::tests::virtio_balloon_config_size ... ok
test qemu::device_config::tests::virtio_mem_config_size ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 13 filtered out; finished in 0.00s
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend VirtFuzz to target additional virtio device drivers beyond the original wireless/Bluetooth scope.
virtio-mem (id=24): single guest-request virtqueue; config space initialised with a 2MiB block size, 256MiB region at 4GiB physical base. Includes kernel config fragment (mem.config) enabling CONFIG_VIRTIO_MEM and annotate-mem.sh to instrument drivers/virtio/virtio_mem.c for kcov coverage.
virtio-balloon (id=5) and virtio-rng (id=4) added as minimal stubs; their config structs and CLI.
All three devices are selectable via --device mem / balloon / rng or via a JSON device-definition file.
Also added CI testing:
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 13 filtered out; finished in 0.00s