Commit graph

14 commits

Author SHA1 Message Date
dependabot[bot]
3242b37d32 Update vmm-sys-util requirement from 0.8 to 0.9
Updates the requirements on [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util) to permit the latest version.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases)
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: vmm-sys-util
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 12:01:35 +02:00
Sergio Lopez
f4ee3226c0 Cargo: update vhost dependency to v0.2.0
In addition to bringing the features from the new vhost crate, this
fixes the breakage caused by rust-vmm/vmm-sys-util#135

Signed-off-by: Sergio Lopez <slp@redhat.com>
2021-09-23 19:34:47 +08:00
Viresh Kumar
f0af5f7fc2 backend: Set rev for virtio-queue
The builds are failing since the remote branch's name is changed to
main from master. Fix it by adding the rev for virtio-queue.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2021-09-03 21:24:22 +08:00
Liu Jiang
6b685925a1 Add more unit test cases
Add more unit test cases to improve code coverage.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
2021-08-30 17:52:22 +08:00
Liu Jiang
ca2b434900 Implement Display for Error
Implement Display for Error, and minor documentation enhancement.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
2021-08-30 17:52:21 +08:00
Liu Jiang
e22aed6d5a Update denpendent crates to latest versions
Update dependent crates to the latest versions:
- vhost v0.1
- vm-memory v0.6
- vmm-sys-util v0.8

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
2021-08-30 17:39:40 +08:00
Gaelan Steele
5f82c6b9be Rename vm-virtio to virtio-queue.
The former was split into multiple crates; everything we use is in
virtio-queue.

Signed-off-by: Gaelan Steele <gbs@canishe.com>
2021-06-27 19:50:40 -07:00
Sebastien Boeuf
89d7c60c19 Cargo.toml: Update vhost crate name
Instead of renaming the vhost crate with vhost_rs, let's keep the crate
name.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2021-03-12 11:33:57 +01:00
Sergio Lopez
37b0a24f96 Reorder dependencies in Cargo.toml
Put depedencies in alphabetical order in Cargo.toml

Signed-off-by: Sergio Lopez <slp@redhat.com>
2020-11-25 17:01:17 +01:00
Sergio Lopez
796677d013 Rename package to vhost-user-backend
Rename package from vhost_user_backend to vhost-user-backend to
accommodate to rust-vmm's conventions.

Signed-off-by: Sergio Lopez <slp@redhat.com>
2020-11-25 17:01:17 +01:00
Sergio Lopez
9ad51070f4 Switch to using rust-vmm's vhost and vm-virtio
The main change is that Queue now requires a type parameter of
something that implements GuestAddressSpace. As we already switched to
using GuestMemoryAtomic in a previous commit, we just need to add the
annotations.

There's also a minor change to access Queue::next_avail using
accessors instead of the field.

Signed-off-by: Sergio Lopez <slp@redhat.com>
2020-11-25 17:01:17 +01:00
Sergio Lopez
260a9e4e31 Wrap GuestMemoryMmap in GuestMemoryAtomic
GuestMemoryAtomic enables support for mutable memory maps, and also
acts as a convenient wrapper around GuestMemory without its lifetime
restrictions.

Signed-off-by: Sergio Lopez <slp@redhat.com>
2020-11-25 17:01:17 +01:00
Arron Wang
309d82bf2b Add Cargo.toml file
Signed-off-by: Arron Wang <arron.wang@intel.com>
2020-11-25 17:01:17 +01:00
Andreea Florescu
292c1c6c58 Initial commit 2020-09-17 13:51:21 +03:00