-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
volatile-memory: add split_at() #126
Conversation
buildkite failure isn't fair: pytest rust-vmm-ci/integration_tests/test_coverage.py |
@elmarco yeah, that's not nice indeed. It isn't buidlkite's fault though, it is ours because the coverage test is implemented such that if the coverage is not the same as the one configured in coverage_config_x86_64.json, the test fails. You'll need to manually update the coverage score so that the test passes. It is a bit bizarre though that the coverage is increased when the code you added is not tested. |
@andreeaflorescu the added code is covered by the example test |
when does it need to split a slice buffer into reader and writer parter? |
This is not the concern here, but rather of DescriptorChainConsumer in rust-vmm/vm-virtio#33. It collects the readable() buffers for the Reader, and writable for the Writer. There is thus no buffer that can be dual read & write. |
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Looks good once the coverage % is fixed. |
This will come handy to implement rust-vmm/vm-virtio#33