vmsilo fork of vhost rust libraries
Find a file
Xuewei Niu 7e76859b3e Fix set_vring_addr issues
`VhostBackend::set_vring_addr()` receives a vring config data which
contains the addresses of desc table, used ring and avail ring.
`VhostBackend::is_valid()` checks the addresses in the guest address space.
`VHOST_SET_VRING_ADDR` uses the addresses in the host address space.
However, the method doesn't convert those addresses.

To address this issue, the addresses passed by the config are checked in
the guest address space. Then, they are converted by
`VringConfigData::to_vhost_vring_addr()` into the host address space to
setup the vring on the kernel.

Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
2023-05-12 17:37:38 +08:00
.buildkite Deprecate custom pipeline 2021-09-03 10:16:46 +03:00
.cargo fix link issues on aarch64 musl 2020-09-04 17:59:53 +03:00
.github update dependabot formatting 2021-09-10 17:24:49 +03:00
crates Fix set_vring_addr issues 2023-05-12 17:37:38 +08:00
rust-vmm-ci@99fe2eb2e0 build(deps): bump rust-vmm-ci from 99fe2eb to 5f36cc9 2022-09-20 16:04:12 +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 Merge remote-tracking branch 'vhost-user-backend/main' into workspace 2022-10-11 12:27:44 +05:30
CODEOWNERS fix CODEOWNERS file 2022-02-16 15:55:50 +01:00
coverage_config_aarch64.json Convert to a workspace 2022-10-11 11:59:25 +05:30
coverage_config_x86_64.json Merge remote-tracking branch 'vhost-user-backend/main' into workspace 2022-10-11 12:27:44 +05:30
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.