ed63b352 | 21-May-2025 |
Philipp Schuster <philipp.schuster@cyberus-technology.de> |
misc: vhost_user_block: streamline error Display::fmt()
The changes were mostly automatically applied using the Python script mentioned in the first commit of this series.
Signed-off-by: Philipp Sc
misc: vhost_user_block: streamline error Display::fmt()
The changes were mostly automatically applied using the Python script mentioned in the first commit of this series.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
show more ...
|
20296e90 | 26-May-2025 |
Philipp Schuster <philipp.schuster@cyberus-technology.de> |
misc: streamline thiserror cargo dep
As almost every sub crate depends on thiserror, lets upgrade it to a workspace dependency.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.
misc: streamline thiserror cargo dep
As almost every sub crate depends on thiserror, lets upgrade it to a workspace dependency.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
show more ...
|
eb0b14f7 | 19-May-2025 |
Philipp Schuster <philipp.schuster@cyberus-technology.de> |
misc: vhost_user_block: streamline #[source] and Error
This streamlines the code base to follow best practices for error handling in Rust: Each error struct implements std::error::Error (most due vi
misc: vhost_user_block: streamline #[source] and Error
This streamlines the code base to follow best practices for error handling in Rust: Each error struct implements std::error::Error (most due via thiserror::Error derive macro) and sets its source accordingly.
This allows future work that nicely prints the error chains, for example.
So far, the convention is that each error prints its sub error as part of its Display::fmt() impl.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
show more ...
|
ea4693a0 | 02-Apr-2025 |
Jinank Jain <jinankjain@microsoft.com> |
misc: Fix clippy error from beta compiler
Rust has a new way of constructing other error and clippy complains if we are still using the older way to construct error message. Thus, migrate to the new
misc: Fix clippy error from beta compiler
Rust has a new way of constructing other error and clippy complains if we are still using the older way to construct error message. Thus, migrate to the new approach suggested by the clippy.
Warning from beta compiler:
error: this can be `std::io::Error::other(_)` --> block/src/vhdx/mod.rs:142:17 | | / std::io::Error::new( | | std::io::ErrorKind::Other, | | format!("Failed to update VHDx header: {e}"), | | ) | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error help: use `std::io::Error::other`
std::io::Error::other( format!("Failed to update VHDx header: {e}"),
Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
show more ...
|
21f05ebb | 06-Jan-2025 |
Rob Bradford <rbradford@rivosinc.com> |
vhost_user_block: Automatically fix operator precedence clippy warning
Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
30cf1eed | 03-Dec-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump libc from 0.2.158 to 0.2.167
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.158 to 0.2.167. - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://
build: Bump libc from 0.2.158 to 0.2.167
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.158 to 0.2.167. - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://github.com/rust-lang/libc/blob/0.2.167/CHANGELOG.md) - [Commits](https://github.com/rust-lang/libc/compare/0.2.158...0.2.167)
--- updated-dependencies: - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
894a4dee | 28-Oct-2024 |
Ruoqing He <heruoqing@iscas.ac.cn> |
build: Centralize vhost-user-backend to workspace
`vhost-user-backend` is left behind in #6764, move it to root workspace.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn> |
61e57e1c | 29-Sep-2024 |
Ruoqing He <heruoqing@iscas.ac.cn> |
misc: Further improve imports styling
By introducing `imports_granularity="Module"` format strategy, effectively groups imports from the same module into one line or block, improving maintainability
misc: Further improve imports styling
By introducing `imports_granularity="Module"` format strategy, effectively groups imports from the same module into one line or block, improving maintainability and readability.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
show more ...
|
88a9f799 | 29-Sep-2024 |
Rob Bradford <rbradford@rivosinc.com> |
misc: Adapt consistent import style formatting
Historically the Cloud Hypervisor coding style has been to ensure that all imports are ordered and placed in a single group. Unfortunately cargo fmt ha
misc: Adapt consistent import style formatting
Historically the Cloud Hypervisor coding style has been to ensure that all imports are ordered and placed in a single group. Unfortunately cargo fmt has no support for ensuring that all imports are in a single group so if whitespace lines were added as part of the import statements then they would only be odered correctly in the group.
By adopting "group_imports="StdExternalCrate" we can enforce a style where imports are placed in at most three groups for std, external crates and the crate itself. Choosing a style enforceable by the tooling reduces the reviewer burden.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
show more ...
|
5a70d7ec | 27-Sep-2024 |
Ruoqing He <heruoqing@iscas.ac.cn> |
build: Centralize rust-vmm crates to workspace
Modify `Cargo.toml` in each member crate to follow the dependencies specified in root `Cargo.toml` file.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac
build: Centralize rust-vmm crates to workspace
Modify `Cargo.toml` in each member crate to follow the dependencies specified in root `Cargo.toml` file.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
show more ...
|
d90fa96b | 25-Sep-2024 |
Rob Bradford <rbradford@rivosinc.com> |
build: Bulk update vm-memory and related dependencies
Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
68468b85 | 05-Sep-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump libc from 0.2.155 to 0.2.158
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.155 to 0.2.158. - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://
build: Bump libc from 0.2.155 to 0.2.158
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.155 to 0.2.158. - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://github.com/rust-lang/libc/blob/0.2.158/CHANGELOG.md) - [Commits](https://github.com/rust-lang/libc/compare/0.2.155...0.2.158)
--- updated-dependencies: - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
5f814308 | 19-Aug-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump clap from 4.5.4 to 4.5.13
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.4 to 4.5.13. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com
build: Bump clap from 4.5.4 to 4.5.13
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.4 to 4.5.13. - [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-v4.5.4...clap_complete-v4.5.13)
--- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
fee769be | 09-Aug-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump libc from 0.2.153 to 0.2.155
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.153 to 0.2.155. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://gi
build: Bump libc from 0.2.153 to 0.2.155
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.153 to 0.2.155. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.153...0.2.155)
--- updated-dependencies: - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
dec4a820 | 15-Jul-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump log from 0.4.21 to 0.4.22
Bumps [log](https://github.com/rust-lang/log) from 0.4.21 to 0.4.22. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.c
build: Bump log from 0.4.21 to 0.4.22
Bumps [log](https://github.com/rust-lang/log) from 0.4.21 to 0.4.22. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.21...0.4.22)
--- updated-dependencies: - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
bc6acb84 | 13-Jul-2024 |
Changyuan Lyu <changyuanl@google.com> |
block: fix `status` value size
As per VirtIO spec 1.2 section 5.2.6, the `status` field is a byte, not u32. cloud-hypervisor writes an `u32` to guest memory, which accidentally zeros out the followi
block: fix `status` value size
As per VirtIO spec 1.2 section 5.2.6, the `status` field is a byte, not u32. cloud-hypervisor writes an `u32` to guest memory, which accidentally zeros out the following 3 bytes, and may corrupt guest OS internal state.
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
show more ...
|
08cf983d | 18-Jun-2024 |
Rob Bradford <rbradford@rivosinc.com> |
build: Fix Cargo.toml formatting
In 42e9632c53d14cd0040db4952d40ba806c4b6ee9 a fix was made to address a typo in the taplo configuration file. Fixing this typo indicated that many Cargo.toml files w
build: Fix Cargo.toml formatting
In 42e9632c53d14cd0040db4952d40ba806c4b6ee9 a fix was made to address a typo in the taplo configuration file. Fixing this typo indicated that many Cargo.toml files were no longer adhering to the formatting rules. Fix the formatting by running `taplo fmt`.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
show more ...
|
3f8cd52f | 08-May-2024 |
Rob Bradford <rbradford@rivosinc.com> |
build: Format Cargo.toml files using taplo
Run the taplo formatter with the newly added configuration file
Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
d10f20eb | 01-May-2024 |
Rob Bradford <rbradford@rivosinc.com> |
build: Bump vhost-user-backend, vhost, and virtio-queue
Update the vhost-user-backend crate version used along with related crates (vhost and virtio-queue.) This requires minor changes to the types
build: Bump vhost-user-backend, vhost, and virtio-queue
Update the vhost-user-backend crate version used along with related crates (vhost and virtio-queue.) This requires minor changes to the types used for the memory in the backends with the use of the BitmapMmapRegion type for the Bitmap implementation.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
show more ...
|
533710f0 | 17-Apr-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump env_logger from 0.10.2 to 0.11.3
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.10.2 to 0.11.3. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [C
build: Bump env_logger from 0.10.2 to 0.11.3
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.10.2 to 0.11.3. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.2...v0.11.3)
--- updated-dependencies: - dependency-name: env_logger dependency-type: direct:production update-type: version-update:semver-minor ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
7966925c | 06-Apr-2024 |
Rob Bradford <rbradford@rivosinc.com> |
build: Bulk update dependencies
Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
fa7a000d | 02-Apr-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump vm-memory from 0.14.0 to 0.14.1
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory) from 0.14.0 to 0.14.1. - [Release notes](https://github.com/rust-vmm/vm-memory/releases) - [Chang
build: Bump vm-memory from 0.14.0 to 0.14.1
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory) from 0.14.0 to 0.14.1. - [Release notes](https://github.com/rust-vmm/vm-memory/releases) - [Changelog](https://github.com/rust-vmm/vm-memory/blob/v0.14.1/CHANGELOG.md) - [Commits](https://github.com/rust-vmm/vm-memory/compare/v0.14.0...v0.14.1)
--- updated-dependencies: - dependency-name: vm-memory dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
d3fade85 | 29-Feb-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump clap from 4.4.7 to 4.5.1
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.7 to 4.5.1. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/c
build: Bump clap from 4.4.7 to 4.5.1
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.7 to 4.5.1. - [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-v4.4.7...clap_complete-v4.5.1)
--- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor ...
Signed-off-by: dependabot[bot] <support@github.com>
show more ...
|
0310c572 | 23-Feb-2024 |
Chris Webb <chris@arachsys.com> |
main: Show help text when run without arguments
cloud-hypervisor, ch-remote, vhost-user-block and vhost-user-net all need at least one argument to do anything useful, so printing command help is hel
main: Show help text when run without arguments
cloud-hypervisor, ch-remote, vhost-user-block and vhost-user-net all need at least one argument to do anything useful, so printing command help is helpful when they are run without arguments or a subcommand.
Use clap::Command::arg_required_else_help(true) to do this.
Signed-off-by: Chris Webb <chris@arachsys.com>
show more ...
|
adb318f4 | 19-Feb-2024 |
Rob Bradford <rbradford@rivosinc.com> |
misc: Remove redundant "use" imports
With the nightly toolchain (2024-02-18) cargo check will flag up redundant imports either because they are pulled in by the prelude on earlier match.
Remove tho
misc: Remove redundant "use" imports
With the nightly toolchain (2024-02-18) cargo check will flag up redundant imports either because they are pulled in by the prelude on earlier match.
Remove those redundant imports.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
show more ...
|