b686a5bb | 02-Apr-2025 |
Jinank Jain <jinankjain@microsoft.com> |
vm-allocator: Fix clippy warning for implicit saturating sub
Use the builtin function to improve the readability of the code.
Warning from beta compiler:
error: manual arithmetic check found --> v
vm-allocator: Fix clippy warning for implicit saturating sub
Use the builtin function to improve the readability of the code.
Warning from beta compiler:
error: manual arithmetic check found --> vm-allocator/src/address.rs:151:30 | |let adjust = if alignment > 1 { alignment - 1 } else { 0 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with: `alignment.saturating_sub(1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub = note: `-D clippy::implicit-saturating-sub` implied by `-D warnings` = help: to override `-D warnings` add`#[allow(clippy::implicit_saturating_sub)]`
Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
show more ...
|
50bac169 | 13-Dec-2024 |
Alyssa Ross <hi@alyssa.is> |
vmm: support PCI I/O regions on all architectures
While non-Intel CPU architectures don't have a special concept of IO address space, support for PCI I/O regions is still needed to be able to handle
vmm: support PCI I/O regions on all architectures
While non-Intel CPU architectures don't have a special concept of IO address space, support for PCI I/O regions is still needed to be able to handle PCI devices that use them.
With this change, I'm able to pass through an e1000e device from QEMU to a cloud-hypervisor VM on aarch64 and use it in the cloud-hypervisor guest. Previously, it would hit the unimplemented!().
Signed-off-by: Alyssa Ross <hi@alyssa.is>
show more ...
|
5b715f48 | 04-Dec-2024 |
Ruoqing He <heruoqing@iscas.ac.cn> |
vm-allocator: Introduce RISC-V architecture
Provide implementation for GSI allocator to work on riscv64 architecture, and doc comment for riscv64 as well.
Signed-off-by: Ruoqing He <heruoqing@iscas
vm-allocator: Introduce RISC-V architecture
Provide implementation for GSI allocator to work on riscv64 architecture, and doc comment for riscv64 as well.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
show more ...
|
1e602bd9 | 04-Dec-2024 |
Ruoqing He <heruoqing@iscas.ac.cn> |
vm-allocator: Enable build with kvm feature
Currently `vm-allocator` module cannot be solely built, by add `features` section and specifying `arch/kvm` to turn on the features required for its depen
vm-allocator: Enable build with kvm feature
Currently `vm-allocator` module cannot be solely built, by add `features` section and specifying `arch/kvm` to turn on the features required for its dependency - `arch` module to build. Thus enabling `vm-allocator` crate to be built and tested with command:
```sh cargo build -p vm-allocator --features kvm ```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
show more ...
|
6b57f301 | 04-Dec-2024 |
Ruoqing He <heruoqing@iscas.ac.cn> |
vm-allocator: Enable arch module for riscv64
`arch` module are required to provide definitions for riscv64 system irq and memroy allocation, enabling `arch` module in target specific dependencies se
vm-allocator: Enable arch module for riscv64
`arch` module are required to provide definitions for riscv64 system irq and memroy allocation, enabling `arch` module in target specific dependencies section.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
show more ...
|
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 ...
|
80b2c98a | 21-Nov-2024 |
Rob Bradford <rbradford@rivosinc.com> |
vm-allocator: Add an allocator KVM memory slots
Add an allocator for KVM memory slots, a finite resource in the kernel - these need to be manipulated across different crates with a common dependency
vm-allocator: Add an allocator KVM memory slots
Add an allocator for KVM memory slots, a finite resource in the kernel - these need to be manipulated across different crates with a common dependency on this crate.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
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 ...
|
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 ...
|
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> |
f6cd3bd8 | 29-Apr-2024 |
Wei Liu <liuwe@microsoft.com> |
block, pci, rate_limiter, vm-allocator: drop legacy numeric constants
Signed-off-by: Wei Liu <liuwe@microsoft.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 ...
|
5641e3a2 | 07-Feb-2024 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump libc from 0.2.151 to 0.2.153
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.151 to 0.2.153. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://gi
build: Bump libc from 0.2.151 to 0.2.153
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.151 to 0.2.153. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.151...0.2.153)
--- 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 ...
|
3ce0fef7 | 23-Jan-2024 |
Bo Chen <chen.bo@intel.com> |
build: Bump vmm-sys-util crate and its consumers
This patch bumps the following crates, including `kvm-bindings@0.7.0`*, `kvm-ioctls@0.16.0`**, `linux-loader@0.11.0`, `versionize@0.2.0`, `versionize
build: Bump vmm-sys-util crate and its consumers
This patch bumps the following crates, including `kvm-bindings@0.7.0`*, `kvm-ioctls@0.16.0`**, `linux-loader@0.11.0`, `versionize@0.2.0`, `versionize_derive@0.1.6`***, `vhost@0.10.0`, `vhost-user-backend@0.13.1`, `virtio-queue@0.11.0`, `vm-memory@0.14.0`, `vmm-sys-util@0.12.1`, and the latest of `vfio-bindings`, `vfio-ioctls`, `mshv-bindings`,`mshv-ioctls`, and `vfio-user`.
* A fork of the `kvm-bindings` crate is being used to support serialization of various structs for migration [1]. Also, code changes are made to accommodate the updated `struct xsave` from the Linux kernel. Note: these changes related to `struct xsave` break live-upgrade.
** The new `kvm-ioctls` crate introduced breaking changes for the `get/set_one_reg` API on `aarch64` [2], so code changes are made to the new APIs.
*** A fork of the `versionize_derive` crate is being used to support versionize on packed structs [3].
[1] https://github.com/cloud-hypervisor/kvm-bindings/tree/ch-v0.7.0 [2] https://github.com/rust-vmm/kvm-ioctls/pull/223 [3] https://github.com/cloud-hypervisor/versionize_derive/tree/ch-0.1.6
Fixes: #6072
Signed-off-by: Bo Chen <chen.bo@intel.com>
show more ...
|
45b01d59 | 14-Nov-2023 |
Thomas Barrett <tbarrett@crusoeenergy.com> |
vmm: assign each pci segment 32-bit mmio allocator
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com> |
4d7a4c59 | 07-Nov-2023 |
Bo Chen <chen.bo@intel.com> |
build: Upgrade vm-memory crates and its consumers
Signed-off-by: Bo Chen <chen.bo@intel.com> |
274f1aa2 | 18-Oct-2023 |
Muminul Islam <muislam@microsoft.com> |
virtio-devices,vm-allocator: Fix clippy warnings
Signed-off-by: Muminul Islam <muislam@microsoft.com> |
7bf0cc1e | 31-Aug-2023 |
Philipp Schuster <philipp.schuster@cyberus-technology.de> |
misc: Fix various spelling errors using typos
This fixes all typos found by the typos utility with respect to the config file.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.d
misc: Fix various spelling errors using typos
This fixes all typos found by the typos utility with respect to the config file.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
show more ...
|
07d1208d | 07-Sep-2023 |
Rob Bradford <rbradford@rivosinc.com> |
build: Bump vm-memory and its consumers
Update to the latest vm-memory and all the crates that also depend upon it.
Fix some deprecation warnings.
Signed-off-by: Rob Bradford <rbradford@rivosinc.c
build: Bump vm-memory and its consumers
Update to the latest vm-memory and all the crates that also depend upon it.
Fix some deprecation warnings.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
show more ...
|
2571e594 | 14-Aug-2023 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build: Bump libc from 0.2.144 to 0.2.147
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.144 to 0.2.147. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://gi
build: Bump libc from 0.2.144 to 0.2.147
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.144 to 0.2.147. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.144...0.2.147)
--- 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 ...
|
99a98f27 | 26-Jun-2023 |
Ravi kumar Veeramally <ravikumar.veeramally@intel.com> |
vm-allicator: Remove "new_without_default" clippy
Add a Default implementation that delegates to new, so that clippy can be removed.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel
vm-allicator: Remove "new_without_default" clippy
Add a Default implementation that delegates to new, so that clippy can be removed.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com>
show more ...
|
5a9dd748 | 02-Jun-2023 |
Jianyong Wu <jianyong.wu@arm.com> |
vm-allocator: Add page size related functions
To avoid code duplication extract page related functions to their own module and add utility functions for manipulating addresses related to page sizes
vm-allocator: Add page size related functions
To avoid code duplication extract page related functions to their own module and add utility functions for manipulating addresses related to page sizes
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
show more ...
|