vmsilo fork of vhost rust libraries
Find a file
German Maglione eb452c8965 vhost_user: Remove non-standard request values
NOOP and MAX_CMD are not present in the vhost-user protocol, these are
use only  to verify that the value is correct before transmuting it to
an enum variant.

This has two problems, firstly it exposes of non-standard values in a
public interface, this internal implementaion detail could be
confusing, and secondly it assumes that the values are consecutive with
no "holes" between them.

This results in having to define requests that are not actually
supported, and error prone, which can generate UB when transmuting.

Instead, it is better to implement TryFrom<u32> for enums that need to
convert between variants and u32. This will allow, in the next commit,
to eliminate the need to use an unsafe transmute.

Signed-off-by: German Maglione <gmaglione@redhat.com>
2023-11-14 15:18:46 +01:00
.buildkite vhost: Adopt new backend naming 2023-09-13 13:00:10 +02:00
.cargo fix link issues on aarch64 musl 2020-09-04 17:59:53 +03:00
.github dependabot: enable update grouping 2023-11-14 15:04:11 +01:00
crates vhost_user: Remove non-standard request values 2023-11-14 15:18:46 +01:00
rust-vmm-ci@9751aaa0d0 build(deps): bump rust-vmm-ci from 665f31f to 9751aaa 2023-10-03 09:50:57 +02:00
.gitignore Update .gitignore file 2021-03-01 12:50:56 +01:00
.gitmodules Switch to rust-vmm-ci for the CI 2020-09-04 17:59:53 +03:00
Cargo.toml workspace: specify workspace.resolver = "2" 2023-10-02 10:46:44 +02:00
CODEOWNERS fix CODEOWNERS file 2022-02-16 15:55:50 +01:00
coverage_config_aarch64.json vhost: Adopt new backend naming 2023-09-13 13:00:10 +02:00
coverage_config_x86_64.json coverage: update the score 2023-09-14 16:40:26 +08:00
LICENSE Initial commit 2019-04-03 14:38:29 +08:00
LICENSE-BSD-3-Clause Refine BSD-3-Clause license file 2021-11-26 21:19:40 +08:00
README.md vhost: Add README for the workspace 2022-10-11 12:28:33 +05:30

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 implement vhost-user backend services.