Stefano Garzarella
d6775cd90d
vsock: clean up comments and fix log messages
...
Remove old comments, useless code, and code commented.
Avoid println!() to print messages and replaced with dbg!(), info!(),
or error!().
Also init `env_logger` like other daemons in the main().
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2022-10-12 14:39:27 +02:00
Stefano Garzarella
df1073bf2e
vsock: use VsockPacket from the virtio-vsock crate
...
Replace our VsockPacket with the new one implemented in the
virtio-vsock crate.
Based on Alex Bennée and Laura Loghin commit:
https://github.com/stsquad/vhost-device/commit/6752266608dd
To achieve this the following changes where made:
- deleted the internal packet.rs
- convert the send_pkt/recv_pkt helpers to be BitmapSlice aware
- update push from LocalTxBuf
- tweak a few API calls due to minor diffs
Fixed tests and moved some helpers from the removed
vsock/src/packet.rs file.
Co-developed-by: Laura Loghin <lauralg@amazon.com>
Co-developed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2022-10-12 14:21:54 +02:00
Stefano Garzarella
896d346135
vsock: replace the deprecated App::from_yaml
...
clap::App::from_yaml() is deprecated since clap-3.0.0, let's
switch to clap::Parser.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2022-10-12 14:21:54 +02:00
Stefano Garzarella
a1daeec3bc
vsock: update Cargo.toml dependencies
...
Update the dependencies aligning with the other crates
in this workspace.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2022-10-12 14:21:54 +02:00
Harshavardhan Unnibhavi
e20698695b
vhost-user-vsock: virtio-vsock device emulation
...
This commit introduces a vhost-user-vsock device that enables
communicaton between an application running in the guest i.e
inside a VM and an application running on the host i.e outside
the VM. The device exposes unix sockets to which the VMM and
host-side applications connect to. Applications in the guest
communicate over VM sockets. Applicaitons on the host connect to
the unix socket i.e communicate over AF_UNIX sockets.
Signed-off-by: Harshavardhan Unnibhavi <harshanavkis@gmail.com>
[sgarzare: rebased, updated Cargo.lock, updated clap version to
avoid build issues, and fixed clap issues with the new version]
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2022-10-12 14:21:54 +02:00
Viresh Kumar
a0b0d96578
Merge branch 'main' into dependabot/cargo/syn-1.0.102
2022-10-11 16:31:28 +05:30
Viresh Kumar
af2bc114b1
Merge branch 'main' into dependabot/cargo/clap-4.0.11
2022-10-11 09:55:24 +05:30
Viresh Kumar
b972efccd7
Merge branch 'main' into dependabot/cargo/syn-1.0.102
2022-10-11 09:55:21 +05:30
dependabot[bot]
cf8f5ca5a8
build(deps): bump unicode-ident from 1.0.4 to 1.0.5
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 04:07:16 +00:00
dependabot[bot]
758c6d9de5
build(deps): bump syn from 1.0.101 to 1.0.102
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.101...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 04:07:11 +00:00
dependabot[bot]
92e3a8ca2f
build(deps): bump clap from 4.0.9 to 4.0.11
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.9 to 4.0.11.
- [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/v4.0.9...v4.0.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 04:07:06 +00:00
dependabot[bot]
ff45d48450
build(deps): bump clap from 4.0.8 to 4.0.9
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.8 to 4.0.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/v4.0.8...v4.0.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-10-04 20:19:37 +00:00
Viresh Kumar
624a7f8372
Merge branch 'main' into dependabot/cargo/libc-0.2.134
2022-10-04 09:28:44 +05:30
Viresh Kumar
1f5641bef1
Merge branch 'main' into dependabot/cargo/clap-4.0.8
2022-10-04 09:18:54 +05:30
Viresh Kumar
d3e45f9a68
Merge branch 'main' into dependabot/cargo/libc-0.2.134
2022-10-04 09:03:48 +05:30
Viresh Kumar
3477b05e73
Merge branch 'main' into dependabot/cargo/libc-0.2.134
2022-10-04 08:29:29 +05:30
Viresh Kumar
f920bf8ba6
Merge branch 'main' into dependabot/cargo/virtio-queue-0.6.1
2022-10-04 08:29:04 +05:30
dependabot[bot]
9e8f2f8109
build(deps): bump libc from 0.2.133 to 0.2.134
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.133 to 0.2.134.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.133...0.2.134 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 02:47:00 +00:00
Viresh Kumar
84ce44a697
Merge branch 'main' into dependabot/cargo/virtio-queue-0.6.1
2022-10-04 08:16:34 +05:30
Viresh Kumar
5eb37c0d80
Merge branch 'main' into dependabot/cargo/clap-4.0.8
2022-10-04 08:16:24 +05:30
Viresh Kumar
421567b0f4
Merge branch 'main' into dependabot/cargo/proc-macro2-1.0.46
2022-10-04 08:16:17 +05:30
dependabot[bot]
74f77abc90
build(deps): bump clap from 3.2.22 to 4.0.8
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.22 to 4.0.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.2.22...v4.0.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 04:07:26 +00:00
dependabot[bot]
40628be43a
build(deps): bump virtio-queue from 0.6.0 to 0.6.1
...
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases )
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.6.0...virtio-queue-v0.6.1 )
---
updated-dependencies:
- dependency-name: virtio-queue
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 04:07:19 +00:00
dependabot[bot]
d067474164
build(deps): bump proc-macro2 from 1.0.44 to 1.0.46
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 04:07:15 +00:00
dependabot[bot]
a253237f29
build(deps): bump syn from 1.0.100 to 1.0.101
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.100...1.0.101 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 04:07:11 +00:00
dependabot[bot]
908fc35c85
build(deps): bump thiserror from 1.0.35 to 1.0.37
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.35 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.35...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-28 14:12:29 +00:00
Mathieu Poirier
b01e081089
Merge branch 'main' into dependabot/cargo/proc-macro2-1.0.44
2022-09-28 08:05:56 -06:00
dependabot[bot]
348072d6f9
build(deps): bump proc-macro2 from 1.0.43 to 1.0.44
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 04:06:33 +00:00
dependabot[bot]
5d4001d428
build(deps): bump once_cell from 1.14.0 to 1.15.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 04:06:19 +00:00
Viresh Kumar
9420e636c5
Update cargo dependencies
...
Run cargo update to move to latest version of the dependencies.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-09-20 16:13:36 +05:30
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
Mathieu Poirier
3007ffa6a3
Merge branch 'main' into dependabot/cargo/thiserror-1.0.34
2022-09-07 08:33:10 -06:00
dependabot[bot]
5ffa803af4
build(deps): bump clap from 3.2.17 to 3.2.20
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.17 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.17...v3.2.20 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 04:13:29 +00:00
dependabot[bot]
390a8d320b
build(deps): bump thiserror from 1.0.32 to 1.0.34
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.32 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.32...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 04:13:20 +00:00
Viresh Kumar
66c904b30f
Merge branch 'main' into dependabot/cargo/aho-corasick-0.7.19
2022-09-06 09:38:47 +05:30
dependabot[bot]
78d8e2f8e3
build(deps): bump once_cell from 1.13.1 to 1.14.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 13:37:38 +00:00
dependabot[bot]
b5c72db4f8
build(deps): bump aho-corasick from 0.7.18 to 0.7.19
...
Bumps [aho-corasick](https://github.com/BurntSushi/aho-corasick ) from 0.7.18 to 0.7.19.
- [Release notes](https://github.com/BurntSushi/aho-corasick/releases )
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.7.18...0.7.19 )
---
updated-dependencies:
- dependency-name: aho-corasick
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 13:37:33 +00:00
Viresh Kumar
8961456287
Merge branch 'main' into dependabot/cargo/libc-0.2.132
2022-08-22 15:43:45 +05:30
dependabot[bot]
d5deaea75a
build(deps): bump once_cell from 1.13.0 to 1.13.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 04:08:00 +00:00
dependabot[bot]
8b432b9bd1
build(deps): bump libc from 0.2.131 to 0.2.132
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.131 to 0.2.132.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.131...0.2.132 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 04:07:52 +00:00
Viresh Kumar
5a7efb1d0e
Run cargo update to update all dependencies together
...
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-08-16 10:37:11 +05:30
dependabot[bot]
c83e9887fb
build(deps): bump clap from 3.2.16 to 3.2.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.17/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.16...v3.2.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 04:06:47 +00:00
Viresh Kumar
62dde1a215
Run cargo update to update everything together
...
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-08-04 10:23:33 +05:30
dependabot[bot]
9c2e1ce0bf
build(deps): bump clap from 3.2.15 to 3.2.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.15 to 3.2.16.
- [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.2.15...v3.2.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 12:41:43 +00:00
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
fe5189da7e
Merge branch 'main' into dependabot/cargo/redox_syscall-0.2.16
2022-07-27 15:30:19 +05:30
dependabot[bot]
b6c3f44b70
build(deps): bump redox_syscall from 0.2.15 to 0.2.16
...
Bumps redox_syscall from 0.2.15 to 0.2.16.
---
updated-dependencies:
- dependency-name: redox_syscall
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-27 09:38:47 +00:00
dependabot[bot]
25e832aee5
build(deps): bump proc-macro2 from 1.0.41 to 1.0.42
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.41...1.0.42 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-27 09:38:45 +00:00