Commit Graph

65 Commits

Author SHA1 Message Date
Viresh Kumar
ccc7464eff
Merge branch 'main' into dependabot/cargo/fastrand-1.7.0 2022-03-10 08:52:04 +05:30
dependabot[bot]
278fd507d6
build(deps): bump fastrand from 1.6.0 to 1.7.0
Bumps [fastrand](https://github.com/smol-rs/fastrand) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/smol-rs/fastrand/releases)
- [Changelog](https://github.com/smol-rs/fastrand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/fastrand/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: fastrand
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 21:07:49 +00:00
dependabot[bot]
3e611c01fd
build(deps): bump redox_syscall from 0.2.10 to 0.2.11
Bumps redox_syscall from 0.2.10 to 0.2.11.

---
updated-dependencies:
- dependency-name: redox_syscall
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 21:07:49 +00:00
mathieupoirier
be25b68a52
Merge branch 'main' into dependabot/cargo/clap-3.1.6 2022-03-09 14:01:33 -07:00
Viresh Kumar
b876aa75e9 Cargo.lock: Update regex version to fix error
Move regex to 1.5.5 to fix the build issues.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-09 10:49:30 +05:30
Viresh Kumar
9c818c23e4
Merge branch 'main' into dependabot/cargo/virtio-queue-0.2.0 2022-03-09 09:01:28 +05:30
mathieupoirier
53b4835cfb
Merge branch 'main' into dependabot/cargo/clap-3.1.6 2022-03-08 13:09:30 -07: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
dependabot[bot]
ff38c61ce1
build(deps): bump getrandom from 0.2.4 to 0.2.5
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.4...v0.2.5)

---
updated-dependencies:
- dependency-name: getrandom
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 03:54:05 +00:00
dependabot[bot]
da37cc43f4
build(deps): bump clap from 3.1.5 to 3.1.6
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.5 to 3.1.6.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.5...v3.1.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 03:53:56 +00:00
dependabot[bot]
a4b36fde29
build(deps): bump clap from 3.1.2 to 3.1.5
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.2 to 3.1.5.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 14:39:03 +00:00
dependabot[bot]
ec3a296e77
build(deps): bump clap_derive from 3.1.2 to 3.1.4
Bumps [clap_derive](https://github.com/clap-rs/clap) from 3.1.2 to 3.1.4.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.2...v3.1.4)

---
updated-dependencies:
- dependency-name: clap_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 14:38:59 +00:00
Mathieu Poirier
ad8bd113b9 rng: Initial vhost-device RNG implementation
This patch provides a vhost-user compliant daemon for Random Number
Generation (RNG) that implements the VhostUserBackend trait.  As such
it can be used seamlessly with any kind of VMM, regardless of the
underlying architecture or programming language.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2022-03-01 14:37:36 -07:00
dependabot[bot]
e1f5d454ad
build(deps): bump clap from 3.1.0 to 3.1.2
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v3.1.0...v3.1.2)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 10:42:28 +00:00
dependabot[bot]
d4b9fe1cde
build(deps): bump clap_derive from 3.1.0 to 3.1.2
Bumps [clap_derive](https://github.com/clap-rs/clap) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.0...v3.1.2)

---
updated-dependencies:
- dependency-name: clap_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 04:10:18 +00:00
mathieupoirier
97ac597adb
Merge branch 'main' into dependabot/cargo/clap-3.1.0 2022-02-22 16:58:27 -07:00
dependabot[bot]
91c206d8dd
build(deps): bump clap from 3.0.10 to 3.1.0
Bumps [clap](https://github.com/clap-rs/clap) from 3.0.10 to 3.1.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.10...clap_complete-v3.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 04:07:32 +00:00
dependabot[bot]
ea45853f84
build(deps): bump libc from 0.2.117 to 0.2.119
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.117 to 0.2.119.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.117...0.2.119)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 04:07:23 +00:00
Viresh Kumar
db0f0d7c70
Merge branch 'main' into dependabot/cargo/clap_derive-3.0.14 2022-02-09 14:56:03 +05:30
dependabot[bot]
f42281e54b
build(deps): bump clap_derive from 3.0.12 to 3.0.14
Bumps [clap_derive](https://github.com/clap-rs/clap) from 3.0.12 to 3.0.14.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.12...v3.0.14)

---
updated-dependencies:
- dependency-name: clap_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-09 09:17:01 +00:00
dependabot[bot]
d4cbb2b97c
build(deps): bump libc from 0.2.112 to 0.2.117
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.112 to 0.2.117.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.112...0.2.117)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-09 09:16:16 +00:00
Viresh Kumar
5e69e4203d
Merge branch 'main' into dependabot/cargo/autocfg-1.1.0 2022-02-09 14:34:55 +05:30
dependabot[bot]
79e4d533c0
build(deps): bump autocfg from 1.0.1 to 1.1.0
Bumps [autocfg](https://github.com/cuviper/autocfg) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/cuviper/autocfg/releases)
- [Commits](https://github.com/cuviper/autocfg/compare/1.0.1...1.1.0)

---
updated-dependencies:
- dependency-name: autocfg
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 20:21:29 +00:00
dependabot[bot]
24d0d571d9
build(deps): bump quote from 1.0.14 to 1.0.15
Bumps [quote](https://github.com/dtolnay/quote) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.14...1.0.15)

---
updated-dependencies:
- dependency-name: quote
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 20:20:17 +00:00
mathieupoirier
bbc2b2545a
Merge branch 'main' into dependabot/cargo/syn-1.0.86 2022-02-08 13:13:09 -07:00
dependabot[bot]
8560e15391
build(deps): bump syn from 1.0.85 to 1.0.86
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.85...1.0.86)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 08:27:36 +00:00
dependabot[bot]
54075c5bb0
build(deps): bump clap_derive from 3.0.6 to 3.0.12
Bumps [clap_derive](https://github.com/clap-rs/clap) from 3.0.6 to 3.0.12.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.6...v3.0.12)

---
updated-dependencies:
- dependency-name: clap_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 08:26:29 +00:00
Viresh Kumar
33c40e5c06 Update cargo.lock and coverage
Update cargo.lock and coverage to match the latest code.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-20 14:50:25 +05:30
dependabot[bot]
f2086060c3
build(deps): bump indexmap from 1.7.0 to 1.8.0
Bumps [indexmap](https://github.com/bluss/indexmap) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/bluss/indexmap/releases)
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.rst)
- [Commits](https://github.com/bluss/indexmap/compare/1.7.0...1.8.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 04:05:52 +00:00
Viresh Kumar
562428e7b9
Merge branch 'main' into i2c/logger 2022-01-06 15:50:30 +05:30
Viresh Kumar
60b139e7df
Merge branch 'main' into i2c/logger 2022-01-06 15:37:58 +05:30
Viresh Kumar
f9e7d80ef2
Merge branch 'main' into dependabot/cargo/syn-1.0.85 2022-01-06 15:25:25 +05:30
Viresh Kumar
2898424f0a
Merge branch 'main' into i2c/logger 2022-01-06 15:08:19 +05:30
Viresh Kumar
d6a86ed36c
Merge branch 'main' into dependabot/cargo/quote-1.0.14 2022-01-06 15:02:45 +05:30
Viresh Kumar
a22d282e1f
Merge branch 'main' into dependabot/cargo/syn-1.0.85 2022-01-06 15:02:42 +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
dependabot[bot]
2c731c07da
build(deps): bump quote from 1.0.10 to 1.0.14
Bumps [quote](https://github.com/dtolnay/quote) from 1.0.10 to 1.0.14.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.10...1.0.14)

---
updated-dependencies:
- dependency-name: quote
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 09:04:49 +00:00
dependabot[bot]
38afcccfff
build(deps): bump syn from 1.0.82 to 1.0.85
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.82 to 1.0.85.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.82...1.0.85)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 09:04:47 +00:00
dependabot[bot]
1b25e07312
build(deps): bump version_check from 0.9.3 to 0.9.4
Bumps [version_check](https://github.com/SergioBenitez/version_check) from 0.9.3 to 0.9.4.
- [Release notes](https://github.com/SergioBenitez/version_check/releases)
- [Commits](https://github.com/SergioBenitez/version_check/compare/v0.9.3...v0.9.4)

---
updated-dependencies:
- dependency-name: version_check
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-05 04:37:35 +00:00
dependabot[bot]
fabceddd83
build(deps): bump libc from 0.2.111 to 0.2.112
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.111 to 0.2.112.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.111...0.2.112)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 04:07:45 +00:00
dependabot[bot]
737f4f4736
build(deps): bump libc from 0.2.109 to 0.2.111
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.109 to 0.2.111.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.109...0.2.111)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 04:07:38 +00:00
dependabot[bot]
8229f20c02
build(deps): bump proc-macro2 from 1.0.32 to 1.0.33
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.32...1.0.33)

---
updated-dependencies:
- dependency-name: proc-macro2
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 11:26:03 +00:00
dependabot[bot]
1c3ce2b093
build(deps): bump libc from 0.2.108 to 0.2.109
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.108 to 0.2.109.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.108...0.2.109)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 04:07:19 +00:00
dependabot[bot]
5a2bb0ad8a
build(deps): bump syn from 1.0.81 to 1.0.82
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.81...1.0.82)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 08:56:44 +00:00
Viresh Kumar
a5fc3d1988
Merge branch 'main' into i2c/testing-wip 2021-11-25 17:33:12 +05:30
Viresh Kumar
84e7eee6bc
Merge branch 'main' into dependabot/cargo/libc-0.2.108 2021-11-25 16:39:44 +05:30
Viresh Kumar
8c92046701 [i2c] Test descriptor processing
Add tests to validate processing of descriptors and read/write data.

The design is based on the virtio_queue::mock::MockSplitQueue
implementation, which is used to add a set of descriptors to the memory.
The same memory is then processed via DescriptorChain and the same set
of descriptors magically appear.

This patch adds various tests for success and failure and also validate
the data read or written.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2021-11-25 16:22:53 +05:30