Commit Graph

348 Commits

Author SHA1 Message Date
Viresh Kumar
fd33833346
Merge pull request #155 from rust-vmm/dependabot/cargo/libc-0.2.125
build(deps): bump libc from 0.2.124 to 0.2.125
2022-05-07 05:44:54 +05:30
dependabot[bot]
c337ed24ec
build(deps): bump libc from 0.2.124 to 0.2.125
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.124 to 0.2.125.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.124...0.2.125)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 18:54:04 +00:00
Viresh Kumar
89a24c0e15
Merge pull request #152 from rust-vmm/dependabot/cargo/memchr-2.5.0
build(deps): bump memchr from 2.4.1 to 2.5.0
2022-05-07 00:22:24 +05:30
Viresh Kumar
7ca8728df2
Merge branch 'main' into dependabot/cargo/memchr-2.5.0 2022-05-03 19:02:38 +05:30
Viresh Kumar
7e802bcc45
Merge pull request #154 from rust-vmm/dependabot/cargo/unicode-xid-0.2.3
build(deps): bump unicode-xid from 0.2.2 to 0.2.3
2022-05-03 19:02:05 +05:30
Viresh Kumar
b68e356e9e
Merge branch 'main' into dependabot/cargo/unicode-xid-0.2.3 2022-05-03 18:58:09 +05:30
Viresh Kumar
f9396ea175
Merge pull request #150 from vireshk/gpio/config
gpio: Fix get_config()
2022-05-03 18:57:00 +05:30
Viresh Kumar
3712996ab3
Merge branch 'main' into gpio/config 2022-05-03 18:53:41 +05:30
dependabot[bot]
73a161c926
build(deps): bump memchr from 2.4.1 to 2.5.0
Bumps [memchr](https://github.com/BurntSushi/memchr) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/BurntSushi/memchr/releases)
- [Commits](https://github.com/BurntSushi/memchr/compare/2.4.1...2.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 13:02:56 +00:00
dependabot[bot]
014cc2bdd5
build(deps): bump unicode-xid from 0.2.2 to 0.2.3
Bumps [unicode-xid](https://github.com/unicode-rs/unicode-xid) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/unicode-rs/unicode-xid/releases)
- [Commits](https://github.com/unicode-rs/unicode-xid/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 13:02:36 +00:00
Viresh Kumar
f7a1a4dea7
Merge pull request #151 from rust-vmm/dependabot/cargo/syn-1.0.92
build(deps): bump syn from 1.0.91 to 1.0.92
2022-05-03 18:31:31 +05:30
dependabot[bot]
9e0ec79cdc
build(deps): bump syn from 1.0.91 to 1.0.92
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.91...1.0.92)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 04:08:36 +00:00
Viresh Kumar
413a840d0b gpio: Fix get_config()
get_config() must return only the relevant part of the config, as
requested by the caller, instead of returning entire config structure.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-29 16:00:36 +05:30
Viresh Kumar
015421b2d4
Merge pull request #148 from rust-vmm/dependabot/cargo/clap-3.1.12
build(deps): bump clap from 3.1.9 to 3.1.12
2022-04-29 14:31:17 +05:30
dependabot[bot]
15bc2f0f56
build(deps): bump clap from 3.1.9 to 3.1.12
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.9 to 3.1.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.1.9...v3.1.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 13:52:21 +00:00
Viresh Kumar
86c56ebbbe
Merge pull request #149 from rust-vmm/dependabot/cargo/cc-1.0.73
build(deps): bump cc from 1.0.72 to 1.0.73
2022-04-25 19:20:57 +05:30
dependabot[bot]
fcd4db9151
build(deps): bump cc from 1.0.72 to 1.0.73
Bumps [cc](https://github.com/alexcrichton/cc-rs) from 1.0.72 to 1.0.73.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases)
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.72...1.0.73)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 04:08:30 +00:00
Viresh Kumar
4a7766f8fc
Merge pull request #76 from vireshk/gpio/backend
Gpio/backend
2022-04-20 23:16:29 +05:30
Viresh Kumar
8602c12e0c
Merge branch 'main' into gpio/backend 2022-04-20 09:10:43 +05:30
Viresh Kumar
e430c89c77
Merge pull request #147 from rust-vmm/dependabot/cargo/libc-0.2.124
build(deps): bump libc from 0.2.122 to 0.2.124
2022-04-20 09:10:15 +05:30
Viresh Kumar
4a3f49c7b3
Merge branch 'main' into gpio/backend 2022-04-19 21:58:25 +05:30
dependabot[bot]
ab978a06c7
build(deps): bump libc from 0.2.122 to 0.2.124
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.122 to 0.2.124.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.122...0.2.124)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 00:59:45 +00:00
Viresh Kumar
b37dda7c0b
Merge pull request #145 from rust-vmm/dependabot/cargo/clap-3.1.9
build(deps): bump clap from 3.1.8 to 3.1.9
2022-04-19 06:28:15 +05:30
Viresh Kumar
832feac5b0
Merge branch 'main' into dependabot/cargo/clap-3.1.9 2022-04-19 06:23:16 +05:30
Viresh Kumar
dd1f896beb
Merge pull request #146 from rust-vmm/dependabot/cargo/quote-1.0.18
build(deps): bump quote from 1.0.17 to 1.0.18
2022-04-19 06:22:54 +05:30
dependabot[bot]
6d19527f62
build(deps): bump quote from 1.0.17 to 1.0.18
Bumps [quote](https://github.com/dtolnay/quote) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.17...1.0.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-18 04:07:37 +00:00
dependabot[bot]
411f722c30
build(deps): bump clap from 3.1.8 to 3.1.9
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.8 to 3.1.9.
- [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.8...v3.1.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-18 04:07:33 +00:00
Viresh Kumar
991b069a07
Merge branch 'main' into gpio/backend 2022-04-13 08:17:38 +05:30
Viresh Kumar
8f4c718746
Merge pull request #143 from rust-vmm/dependabot/cargo/proc-macro2-1.0.37
build(deps): bump proc-macro2 from 1.0.36 to 1.0.37
2022-04-12 22:12:09 +05:30
dependabot[bot]
64bfff5ed8
build(deps): bump proc-macro2 from 1.0.36 to 1.0.37
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.36...1.0.37)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 14:55:06 +00:00
Viresh Kumar
ea65b5b589
Merge pull request #142 from rust-vmm/dependabot/cargo/libc-0.2.122
build(deps): bump libc from 0.2.121 to 0.2.122
2022-04-12 20:23:46 +05:30
mathieupoirier
f93af5d414
Merge branch 'main' into dependabot/cargo/libc-0.2.122 2022-04-12 08:50:48 -06:00
Viresh Kumar
c3d457ae0e
Merge pull request #141 from rust-vmm/dependabot/cargo/syn-1.0.91
build(deps): bump syn from 1.0.90 to 1.0.91
2022-04-12 20:20:00 +05:30
dependabot[bot]
1d02537cec
build(deps): bump libc from 0.2.121 to 0.2.122
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.121 to 0.2.122.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.121...0.2.122)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 04:08:27 +00:00
dependabot[bot]
15189beca0
build(deps): bump syn from 1.0.90 to 1.0.91
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.90...1.0.91)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 04:08:22 +00:00
Viresh Kumar
c58f1bd00f
Merge branch 'main' into gpio/backend 2022-04-07 15:13:23 +05:30
Viresh Kumar
ac18c60688
Merge pull request #139 from rust-vmm/dependabot/cargo/indexmap-1.8.1
build(deps): bump indexmap from 1.8.0 to 1.8.1
2022-04-04 17:37:52 +05:30
Viresh Kumar
00b0396dbf
Merge branch 'main' into dependabot/cargo/indexmap-1.8.1 2022-04-04 17:34:52 +05:30
Viresh Kumar
2ea64e1fd2
Merge pull request #138 from rust-vmm/dependabot/cargo/getrandom-0.2.6
build(deps): bump getrandom from 0.2.5 to 0.2.6
2022-04-04 17:34:40 +05:30
dependabot[bot]
d6898e8ae7
build(deps): bump indexmap from 1.8.0 to 1.8.1
Bumps [indexmap](https://github.com/bluss/indexmap) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/bluss/indexmap/releases)
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/1.8.0...1.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 11:48:37 +00:00
dependabot[bot]
30161469d9
build(deps): bump getrandom from 0.2.5 to 0.2.6
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.5 to 0.2.6.
- [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.5...v0.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 11:48:26 +00:00
Viresh Kumar
267ac8fb53
Merge pull request #140 from rust-vmm/dependabot/cargo/clap-3.1.8
build(deps): bump clap from 3.1.6 to 3.1.8
2022-04-04 17:17:27 +05:30
Viresh Kumar
131464787d gpio: Skip musl builds
Disable builds for musl, where libgpiod build fails on
rust-vmm-container due to missing tools and headers.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
a9678adfb9 gpio: Update Cargo.lock and coverage score
Update Cargo.lock and coverage score.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
c38dacd880 gpio: Update README.md and add one for gpio
This updates the main README and adds a specific one for GPIO crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
cc6d1e608f gpio: Add tests
Add tests to validate functionality of the GPIO crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
dependabot[bot]
92cdaa4287
build(deps): bump clap from 3.1.6 to 3.1.8
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.6 to 3.1.8.
- [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.6...v3.1.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 04:08:17 +00:00
Viresh Kumar
679224af8d gpio: Add support for interrupts
Add support for GPIO interrupts. Only edge interrupts are supported by
libgpiod.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
8a021c704f gpio: Process virtio requests
This patch implements process_queue() to process incoming requests.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
472870d44d gpio: Implement low level GPIO helpers
This patch implements the low level GPIO helpers responsible for pin
level functioning.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30