Commit Graph

241 Commits

Author SHA1 Message Date
Viresh Kumar
f36dfae52c
Merge pull request #119 from mathieupoirier/vhost-device-rng-v8
RNG: Initial vhost-device RNG implementation (v8)
2022-03-07 20:07:49 +05:30
Mathieu Poirier
198fa54325 rng: Add testing module for vhost-device RNG
This patch adds testing modules for both main.rs and vu_rng.rs
in order to satisfy functional testing and code coverage.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2022-03-01 14:37:36 -07: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
Viresh Kumar
7e6ffb0d0e
Merge pull request #117 from rust-vmm/dependabot/cargo/clap-3.1.2
build(deps): bump clap from 3.1.0 to 3.1.2
2022-03-01 01:58:44 +05:30
Viresh Kumar
77ec3704ef
Merge branch 'main' into dependabot/cargo/clap-3.1.2 2022-02-28 17:33:14 +05:30
Viresh Kumar
224cf330c7
Merge pull request #115 from rust-vmm/dependabot/submodules/rust-vmm-ci-99fe2eb
build(deps): bump rust-vmm-ci from `ee6be8c` to `99fe2eb`
2022-02-28 17:32:41 +05:30
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]
2a9f09037c
build(deps): bump rust-vmm-ci from ee6be8c to 99fe2eb
Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci) from `ee6be8c` to `99fe2eb`.
- [Release notes](https://github.com/rust-vmm/rust-vmm-ci/releases)
- [Commits](ee6be8ca18...99fe2eb2e0)

---
updated-dependencies:
- dependency-name: rust-vmm-ci
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 10:41:41 +00:00
Viresh Kumar
9f7289df32
Merge pull request #116 from rust-vmm/dependabot/cargo/clap_derive-3.1.2
build(deps): bump clap_derive from 3.1.0 to 3.1.2
2022-02-28 16:10:58 +05:30
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
60084df482
Merge pull request #114 from rust-vmm/dependabot/cargo/clap-3.1.0
build(deps): bump clap from 3.0.10 to 3.1.0
2022-02-22 17:17:03 -07:00
mathieupoirier
97ac597adb
Merge branch 'main' into dependabot/cargo/clap-3.1.0 2022-02-22 16:58:27 -07:00
mathieupoirier
e1c6d79e10
Merge pull request #112 from rust-vmm/dependabot/cargo/libc-0.2.119
build(deps): bump libc from 0.2.117 to 0.2.119
2022-02-22 16:57:49 -07:00
mathieupoirier
007f01a43b
Merge branch 'main' into dependabot/cargo/libc-0.2.119 2022-02-22 16:43:48 -07:00
mathieupoirier
e578c8057f
Merge pull request #111 from rust-vmm/dependabot/submodules/rust-vmm-ci-ee6be8c
build(deps): bump rust-vmm-ci from `d216a46` to `ee6be8c`
2022-02-22 16:43:21 -07:00
mathieupoirier
7133d135ba
Merge branch 'main' into dependabot/submodules/rust-vmm-ci-ee6be8c 2022-02-22 16:34:53 -07:00
Viresh Kumar
02fdac85e0
Merge pull request #109 from vireshk/i2c/trim
i2c: Trim the device list to avoid errors
2022-02-23 02:39:06 +05:30
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
dependabot[bot]
c27270a449
build(deps): bump rust-vmm-ci from d216a46 to ee6be8c
Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci) from `d216a46` to `ee6be8c`.
- [Release notes](https://github.com/rust-vmm/rust-vmm-ci/releases)
- [Commits](d216a46879...ee6be8ca18)

---
updated-dependencies:
- dependency-name: rust-vmm-ci
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 04:06:06 +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
819fedbbae
Merge pull request #108 from lauralt/fix_codeown
fix CODEOWNERS file
2022-02-15 21:51:23 +05:30
Laura Loghin
3bb86c423f fix CODEOWNERS file
The gatekeeper-PullAssigner was not correctly added in
the codeowners file (with its github handle). Removed it
from the file, so that the codewners are automatically
requested to review a new PR.
Since I was hear, also reordered alphabetically the users.

Signed-off-by: Laura Loghin <lauralg@amazon.com>
2022-02-15 17:39:39 +02:00
Viresh Kumar
16af167f66
Merge pull request #107 from vireshk/i2c/construct_i2cargs
i2c: Write constructor for struct I2cArgs
2022-02-10 13:42:02 +05:30
Viresh Kumar
e0deacbadb
Merge branch 'main' into i2c/construct_i2cargs 2022-02-10 10:11:35 +05:30
Viresh Kumar
7efc5be7e0
Merge pull request #103 from stsquad/docs/coverage
Docs/coverage
2022-02-10 02:27:40 +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
fe4dcd2414
Merge branch 'main' into docs/coverage 2022-02-09 15:05:13 +05:30
Viresh Kumar
f1c6c542cb
Merge pull request #106 from rust-vmm/dependabot/cargo/clap_derive-3.0.14
build(deps): bump clap_derive from 3.0.12 to 3.0.14
2022-02-09 15:04:27 +05:30
Viresh Kumar
db0f0d7c70
Merge branch 'main' into dependabot/cargo/clap_derive-3.0.14 2022-02-09 14:56:03 +05:30
Viresh Kumar
7c8c3d13c3
Merge pull request #102 from rust-vmm/dependabot/cargo/libc-0.2.117
build(deps): bump libc from 0.2.112 to 0.2.117
2022-02-09 14:55:49 +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
mathieupoirier
571bd6226c
Merge pull request #104 from rust-vmm/dependabot/cargo/autocfg-1.1.0
build(deps): bump autocfg from 1.0.1 to 1.1.0
2022-02-09 02:14:13 -07:00
Viresh Kumar
5e69e4203d
Merge branch 'main' into dependabot/cargo/autocfg-1.1.0 2022-02-09 14:34:55 +05:30
mathieupoirier
944635aae6
Merge pull request #105 from rust-vmm/dependabot/cargo/quote-1.0.15
build(deps): bump quote from 1.0.14 to 1.0.15
2022-02-09 02:04:32 -07:00
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
66bdfb2584
Merge pull request #97 from rust-vmm/dependabot/cargo/syn-1.0.86
build(deps): bump syn from 1.0.85 to 1.0.86
2022-02-08 13:18:10 -07:00
mathieupoirier
bbc2b2545a
Merge branch 'main' into dependabot/cargo/syn-1.0.86 2022-02-08 13:13:09 -07:00
Alex Bennée
c69e61be90
Merge pull request #99 from rust-vmm/dependabot/cargo/clap_derive-3.0.12
build(deps): bump clap_derive from 3.0.6 to 3.0.12
2022-02-08 15:09:46 +00:00
Alex Bennée
bcea111620 README.md: document repository coverage rules
This attempts to finesse the rule of no coverage regressions for
discussion with the wider community.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2022-02-07 12:09:05 +00:00
mathieupoirier
f38441a96e
Merge branch 'main' into dependabot/cargo/syn-1.0.86 2022-01-31 16:51:38 -07:00
mathieupoirier
c60cd2dbaa
Merge branch 'main' into dependabot/cargo/clap_derive-3.0.12 2022-01-31 16:40:45 -07:00
Alex Bennée
9e54e29064
Merge pull request #94 from rust-vmm/dependabot/submodules/rust-vmm-ci-d216a46
build(deps): bump rust-vmm-ci from `d023262` to `d216a46`
2022-01-26 17:29:24 +00:00
Sergii Glushchenko
3cc37dada4 Adjust test coverage
Signed-off-by: Sergii Glushchenko <gsserge@amazon.com>
2022-01-25 10:13:02 +01:00
dependabot[bot]
31489cc5b0 build(deps): bump rust-vmm-ci from d023262 to d216a46
Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci) from `d023262` to `d216a46`.
- [Release notes](https://github.com/rust-vmm/rust-vmm-ci/releases)
- [Commits](d023262164...d216a46879)

---
updated-dependencies:
- dependency-name: rust-vmm-ci
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 09:39:19 +01: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