vmsilo fork of vhost rust libraries
In many places we access the `VhostUserHandler::vrings` array many times and at the beginning of each function we check the index to avoid OOB. It happened that we forgot about this check (see #211), so let's avoid this error-prone pattern by taking the reference to the vring using `Vec::get()`, and avoiding multiple indexing. Suggested-by: Erik Schilling <erik.schilling@linaro.org> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> |
||
|---|---|---|
| .buildkite | ||
| .cargo | ||
| .github | ||
| rust-vmm-ci@0100de0f57 | ||
| vhost | ||
| vhost-user-backend | ||
| .gitignore | ||
| .gitmodules | ||
| Cargo.toml | ||
| CODEOWNERS | ||
| coverage_config_aarch64.json | ||
| coverage_config_x86_64.json | ||
| LICENSE | ||
| LICENSE-BSD-3-Clause | ||
| README.md | ||
vhost
The vhost workspace hosts libraries related to the vhost and vhost-user
protocols. It currently consists of the following crates:
vhost-> A pure rust library for vDPA, vhost and vhost-user.vhost-user-backend-> It provides a framework to implementvhost-userbackend services.