Commit Graph

28 Commits

Author SHA1 Message Date
Viresh Kumar
3d2237d960 Update virtio-queue, vhost-user-backend and vm-memory
Update these to fix build issues.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-09-20 16:12:48 +05:30
dependabot[bot]
bd42e8c7f8
build(deps): bump vhost from 0.4.0 to 0.5.0
Bumps [vhost](https://github.com/rust-vmm/vhost) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/rust-vmm/vhost/releases)
- [Changelog](https://github.com/rust-vmm/vhost/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-vmm/vhost/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: vhost
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 04:08:20 +00:00
Obei Sideg
870546c06d Remove use std::convert::TryFrom
Signed-off-by: Obei Sideg <obei.sideg@gmail.com>
2022-08-30 17:00:22 +03:00
Mathieu Poirier
843a03590b Preparation for upgrade to Rust version to 1.63.0
In preparation to upgrade to Rust version 1.63.0, address clippy
warning demanding that 'Eq' be derived when 'PartialEq' is.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2022-08-29 15:37:02 -06:00
Obei Sideg
b7e0a7ed89 Upgrade to 2021 edition
Signed-off-by: Obei Sideg <obei.sideg@gmail.com>
2022-08-26 18:17:08 +03:00
Viresh Kumar
e50d717be5 Update code based on virtio-queue update to 0.5.0
virtio-queue update has API interface changes, adapt to them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-08-03 17:27:07 +05:30
Viresh Kumar
00d6e7b2bf Update vhost-user-backend version to 0.6.0
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-08-03 15:01:34 +05:30
dependabot[bot]
f3338d8e60
build(deps): bump virtio-queue from 0.4.0 to 0.5.0
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases)
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.4.0...virtio-queue-v0.5.0)

---
updated-dependencies:
- dependency-name: virtio-queue
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-27 15:41:49 +00:00
Viresh Kumar
b11516613a Update vhost-user-backend and libgpiod's versions
Update them to match all the entities for the same version of
vmm-sys-util.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-07-25 16:12:02 +05:30
dependabot[bot]
82a931e0a5
build(deps): bump vmm-sys-util from 0.9.0 to 0.10.0
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util) from 0.9.0 to 0.10.0.
- [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.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: vmm-sys-util
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-19 03:56:31 +00:00
Viresh Kumar
c037e60442 Update versions of rust-vmm dependency crates
Update a number of rust-vmm crates to align to the common version of
vm-memory.

Also update the tests to fix the build.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-07-11 13:33:47 +05:30
Viresh Kumar
1bed5dfdbe build: Relax vm-memory dependency
This allows the use of newer versions of vm-memory and matches with
other crates (e.g. vhost, vhost-user-backend, etc) who also have such a
relaxed vm-memory dependency.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-05-04 12:45:15 +05:30
Viresh Kumar
0542190d73 Update vhost-user-backend
Update vhost-user-backend to avoid vhost version conflicts.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-28 10:05:01 +05:30
dependabot[bot]
d19669dc7c
build(deps): bump vhost from 0.3.0 to 0.4.0
Bumps [vhost](https://github.com/rust-vmm/vhost) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/rust-vmm/vhost/releases)
- [Changelog](https://github.com/rust-vmm/vhost/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-vmm/vhost/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: vhost
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 05:53:46 +00:00
Viresh Kumar
f7f0361d76 vhost-device: Update vhost-user-backend to 0.2.0
The versions of virtio-queue conflicts as both vhost-device and
vhost-user-backend are trying to fetch different versions of it. Fix it
by updating vhost-user-backend as well.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-08 10:33:16 +05:30
dependabot[bot]
b2092fb501
build(deps): bump virtio-queue from 0.1.0 to 0.2.0
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases)
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.1.0...virtio-queue-v0.2.0)

---
updated-dependencies:
- dependency-name: virtio-queue
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 04:39:37 +00:00
Viresh Kumar
b29a5e2285 i2c: Trim the socket-path to avoid errors
If the user passes socket-path with whitespace before or after, like -l
" /tmp/vi2c.sock", then the Listener API fails and errors out. Fix this
by trimming the argument for whitespace at start or end.

Also add a test for the same.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-02-18 10:51:37 +05:30
Viresh Kumar
d052e66bbe i2c: Trim the device list to avoid errors
If the user passes device list with whitespace before or after, like -l
" 6:32", then " 6".parse::<u32>() fails. Fix this by trimming the
argument for whitespace at start or end.

Also add a test for the same.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-02-17 21:45:11 +05:30
Viresh Kumar
24c77b1452 i2c: Write constructor for struct I2cArgs
Remove get_cmd_args() and add a constructor of struct I2cArgs for the
same purpose.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-02-09 16:47:31 +05:30
Viresh Kumar
6f588d6809 i2c: Move to newer version of Clap
Lets not use beta release anymore, since we have a stable version
available now.

The newer version doesn't support Yamls anymore, but rather another
feature "derive", which is quite easy to use actually. Lets migrate to
it.

Some of the tests can't be done anymore, drop them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-20 14:46:44 +05:30
Sergii Glushchenko
c2e8d01cb9 Fix clippy warnings and adjust coverage
Signed-off-by: Sergii Glushchenko <gsserge@amazon.com>
2022-01-19 13:30:06 +01:00
Viresh Kumar
be99550269 i2c: Improve test coverage
Add more tests to increase coverage.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-10 12:50:52 +05:30
Viresh Kumar
78da64c7f2 i2c: Always pass vring to process_requests()
For tests we can pass a non related vring to just make it run, hence no
need of making it optional. Always pass the vring.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-10 12:50:34 +05:30
Viresh Kumar
2898424f0a
Merge branch 'main' into i2c/logger 2022-01-06 15:08:19 +05:30
Viresh Kumar
8d8950b4cf i2c: Initialize env_logger
The i2c crate now uses log crate to publish error, info and warn
messages, but doesn't initialize a logger yet and these messages never
make it out.

Initialize the env_logger to see these messages.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-06 14:41:32 +05:30
Viresh Kumar
7492b83692 i2c: Fix build issues with vhost update
Update version of other dependencies and fix minor build issues.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-06 14:37:13 +05:30
dependabot[bot]
50312eadfc build(deps): bump vhost from 0.2.0 to 0.3.0
Bumps [vhost](https://github.com/rust-vmm/vhost) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/rust-vmm/vhost/releases)
- [Changelog](https://github.com/rust-vmm/vhost/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-vmm/vhost/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: vhost
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 14:37:13 +05:30
Viresh Kumar
677b897576 i2c: Move i2c to top folder
The workspace section in Rust documentation suggests adding new crates
in the top level directory itself instead of the src folder. Remove the
top level src folder.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-05 11:09:33 +05:30