mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
cb5aaca8095e76ac13a2e5b3030ee141957bd47d
9006 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
cb5aaca809 |
hypervisor, vmm: Remove inner Mutex protecting VcpuFd
This was added in
|
||
|
|
0a25a77095 |
build: Bump crate-ci/typos from 1.38.0 to 1.38.1
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.38.0 to 1.38.1. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.38.0...v1.38.1) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.38.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
7d6c450cee |
virtio-devices: pci_common_config: Remove warning for feature pages > 2
The virtio spec defines the feature bit range and 4 x 32-bit pages. However no features are currently defined with bits > 63. However Linux has now started acking features in those higher pages. Since this is harmless (we drop the acks to those feature pages) and quietly return 0 for available features in those higher pages this warning can be removed. Fixes: #7414 Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
d39b56544a |
vmm: fix CpuManager::resume(): gracefully wait for run vCPU loop ACK
Fix a race condition that happens in resume()-pause() cycles.
It is odd that for pause(), the CpuManager waited via `state.paused`
for the vCPU thread to ACK the state change but not for `resume()`.
In the `resume()` case, oddly CpuManager "owned" the state change
in `state.paused`. This commit changes this so that the vCPU ACKs
its state change itself in `state.paused` when it transitions from
pause->run. Further, `CpuManager::resume()` now gracefully waits for
the vCPU to be resumed.
More technical:
This change ensures proper synchronization and prevents situations
in that park() follows right after unpark(), causing deadlocks and
other weird behavior due to race conditions.
Calling resume() now takes slightly longer, very similar to pause().
This is, however, even for 254 vCPUs in the range of less than 10ms,
and ultimately we now have correct behaviour.
## Reproducer
Since [0] is merged, the underlying problem can be tested without this
commit by modifying the pause() API call to run `CpuManager::pause()`
and `CpuManager::resume()` in a loop a thousand times.
`ch-remote --api-socket ... pause`
```patch
diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs
index d7bba25cc..35557d58f 100644
--- a/vmm/src/vm.rs
+++ b/vmm/src/vm.rs
@@ -2687,6 +2687,10 @@ impl Pausable for Vm {
MigratableError::Pause(anyhow!("Error activating pending virtio devices: {:?}", e))
})?;
+ for _ in 0..1000 {
+ self.cpu_manager.lock().unwrap().pause()?;
+ self.cpu_manager.lock().unwrap().resume()?;
+ }
self.cpu_manager.lock().unwrap().pause()?;
self.device_manager.lock().unwrap().pause()?;
```
## Outlook
Decades of experience in VMM development showed us that using
many AtomicBools is a footgun. They are not synchronized with each
other at all. On the long term, we might want to refactor things to
have a single shared AtomicU64 with different bits having different
meanings.
[0] https://github.com/cloud-hypervisor/cloud-hypervisor/pull/7290
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
|
||
|
|
8481026b60 |
vmm: refactor poor naming
These bindings actually refer to atomic bool shared across all vCPUs to instruct single vCPUs with their next action. As there are already enough Arc<AtomicBool>, this helps while debugging things to see that different bindings refer to the same atomic bool. In other words: This naming really confused us while debugging. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
e6ddfe07c3 |
vmm: remove noop
The vCPU lifecycle is already complicated. Let's remove dead code (the impl is a no-op). Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
221cbeba5a |
build: Bump fsfe/reuse-action from 5 to 6
Bumps [fsfe/reuse-action](https://github.com/fsfe/reuse-action) from 5 to 6. - [Release notes](https://github.com/fsfe/reuse-action/releases) - [Commits](https://github.com/fsfe/reuse-action/compare/v5...v6) --- updated-dependencies: - dependency-name: fsfe/reuse-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
99d08a2b7f |
tests: Replace fixed wait for VM to boot in test_net_hotplug
Use the notification mechanism now that the VM has it's primary network attached. Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
1b4b4fb0c2 |
tests: Validate secondary network connection in test_net_hotplug
Test that additional network interface by SSHing in using that secondary IP. Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
3ed44c41a6 |
tests: Use a secondary network interface for test_net_hotplug
This gives a reliable way of identifying if the VM has booted as well as a reliable way to validate the addition of the network interface. Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
11eabaf97d |
tests: Add second network interface definition to guest
Add a second L1 network interface definition to the guest Cloud Init configuration, including an additional host IP. Do this by splitting the network range into two /25s. For clarity the network struct members have also been renamed. Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
4290d4f20e |
build: Bump the non-rust-vmm group across 2 directories with 25 updates
Bumps the non-rust-vmm group with 20 updates in the / directory: | Package | From | To | | --- | --- | --- | | [igvm](https://github.com/microsoft/igvm) | ``9b67b6f`` | ``5d2b5a5`` | | [clap](https://github.com/clap-rs/clap) | `4.5.48` | `4.5.49` | | [libc](https://github.com/rust-lang/libc) | `0.2.176` | `0.2.177` | | [gdbstub](https://github.com/daniel5151/gdbstub) | `0.7.7` | `0.7.8` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.40` | `1.2.41` | | [clap_lex](https://github.com/clap-rs/clap) | `0.7.5` | `0.7.6` | | [env_filter](https://github.com/rust-cli/env_logger) | `0.1.3` | `0.1.4` | | [regex](https://github.com/rust-lang/regex) | `1.11.3` | `1.12.2` | | [regex-syntax](https://github.com/rust-lang/regex) | `0.8.6` | `0.8.8` | | [toml_datetime](https://github.com/toml-rs/toml) | `0.7.2` | `0.7.3` | | [toml_edit](https://github.com/toml-rs/toml) | `0.23.6` | `0.23.7` | | [windows-targets](https://github.com/microsoft/windows-rs) | `0.53.2` | `0.53.5` | | [windows_aarch64_gnullvm](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_aarch64_msvc](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_i686_gnu](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_i686_gnullvm](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_i686_msvc](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_x86_64_gnu](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_x86_64_gnullvm](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_x86_64_msvc](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | Bumps the non-rust-vmm group with 7 updates in the /fuzz directory: | Package | From | To | | --- | --- | --- | | [clap](https://github.com/clap-rs/clap) | `4.5.48` | `4.5.49` | | [libc](https://github.com/rust-lang/libc) | `0.2.176` | `0.2.177` | | [gdbstub](https://github.com/daniel5151/gdbstub) | `0.7.7` | `0.7.8` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.40` | `1.2.41` | | [clap_lex](https://github.com/clap-rs/clap) | `0.7.5` | `0.7.6` | | [toml_datetime](https://github.com/toml-rs/toml) | `0.7.2` | `0.7.3` | | [toml_edit](https://github.com/toml-rs/toml) | `0.23.6` | `0.23.7` | Updates `igvm` from `9b67b6f` to `5d2b5a5` - [Release notes](https://github.com/microsoft/igvm/releases) - [Commits]( |
||
|
|
a8335d0b06 |
ci: Extend typos to accept MSIS
Previous RISC-V ACPI related change introduced MSIS which will be rejected by typo check, let's extend the typos to accept it. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn> |
||
|
|
d10f6dd357 |
vmm: Enable RISC-V ACPI support
Add necessary definitions and RISC-V ACPI tables to enable ACPI feature. More specifically, this commit add MADT definitions for RISC-V AIA interrupt chips. Signed-off-by: Can Zhang <icloud9957@gmail.com> |
||
|
|
4dcd689cd9 |
ci: update MSHV workflow & job names
Rename the MSHV CI workflow to better align with the existing naming scheme and also make the arch explicit. Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com> |
||
|
|
68f9e82447 |
ci: set continue-on-error for mshv infra workflow
Set `continue-on-error` for infra-setup job so that the entire workflow doesn't fail. Signed-off-by: AASTHA RAWAT <aastharawat@microsoft.com> |
||
|
|
f256317ac6 |
ci: add timeout to mshv integration test workflow
Add step-level timeout for running integration tests so that the workflow doesn't get stuck on any test. Signed-off-by: AASTHA RAWAT <aastharawat@microsoft.com> |
||
|
|
0a785c1db2 |
build: Use v0.3.0 of vm-fdt instead of main branch
We are actually using v0.3.0 of vm-fdt since main branch of that crate already includes everything. Let's pin vm-fdt to v0.3.0 instead. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn> |
||
|
|
d3b8300e9c |
build: Update linux-loader to v0.13.1
Required kernel header are made public in v0.13.1, let's bump to consume the change. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn> |
||
|
|
bb9d3529db |
ci: update PR trigger for mshv workflow
Pull requests from forked repos cannot access GitHub secrets which results in failure of MSHV CI. Switching to pull_request_target resolves this. It allows the workflow to run with access to repo secrets and ensures that code from the base branch is used instead of forked code, preventing potential security risks. Signed-off-by: AASTHA RAWAT <aastharawat@microsoft.com> |
||
|
|
3cf310229c |
ci: add tag for mshv runner
Use mshv runner for mshv workflows. Disable manual trigger. Signed-off-by: AASTHA RAWAT <aastharawat@microsoft.com> |
||
|
|
0e50cc320e |
ci: add mshv integration tests workflow
Add workflow to run integration tests on mshv. It calls the azure infra setup workflow and executes integration tests in the provisioned environment. Signed-off-by: AASTHA RAWAT <aastharawat@microsoft.com> |
||
|
|
9cdcd920b2 |
ci: add azure infra setup workflow
Add workflow to setup Azure infra to validate MSHV. This is used to provision the environment before executing tests on it. Signed-off-by: AASTHA RAWAT <aastharawat@microsoft.com> |
||
|
|
256f0c39e9 |
vmm: Drop 'vfio container' when no active vfio devices
This provides clearer life-cycle management of resources around vfio, and aligns better with the kernel behavior as reported below with vfio legacy mode (with vfio container/group). Fixes: #7328 Signed-off-by: Bo Chen <bchen@crusoe.ai> Signed-off-by: Yi Wang <foxywang@tencent.com> |
||
|
|
205e62aaa8 |
scripts: Download jammy images for rate-limiter tests
We recently moved many of our tests to use focal to jammy as the guest images, including rate-limiter tests (#7367). We forgot to update the rate-limiter scripts to reflect such change. Our CI pipeline failed to report such error because our self-host runner happened to be not working at the time we land the changes (see #7405). Signed-off-by: Bo Chen <bchen@crusoe.ai> |
||
|
|
d760301c8d |
tests: Reduce parallelism on x86-64 testing
Only use 75% of the available threads - this will reduce dislk and memory pressure. Reducing the chance of flaky tests. See: #7405 Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
8e40413886 |
vmm: validate payload correctly when IGVM is provided
While an IGVM is provided validation fails as there is no kernel or firmware. This patch fixes the sev_snp boot failure. Signed-off-by: Muminul Islam <muislam@microsoft.com> |
||
|
|
5549d846da |
vmm: support firmware boot on mshv arm64
MSHV (Microsoft Hypervisor) doesn't expose an ITS to guests. Instead it exposes a GICv2m MSI Frame for mapping MSIs to SPIs. Update the MADT generation code to create the GIC MSI Frame structure instead of the ITS structure whenever the guest vGIC is using a GICv2m frame. This allows booting guests via firmware on MSHV. Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com> |
||
|
|
76bd1418a2 |
api_client: fix clippy
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
15db321245 |
build: Bump the non-rust-vmm group across 2 directories with 20 updates
Bumps the non-rust-vmm group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [serde_with](https://github.com/jonasbb/serde_with) | `3.14.1` | `3.15.0` | | [anstream](https://github.com/rust-cli/anstyle) | `0.6.20` | `0.6.21` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.39` | `1.2.40` | | [lock_api](https://github.com/Amanieu/parking_lot) | `0.4.13` | `0.4.14` | | [openssl-src](https://github.com/alexcrichton/openssl-src-rs) | `300.5.2+3.5.2` | `300.5.3+3.5.4` | | [parking_lot](https://github.com/Amanieu/parking_lot) | `0.12.4` | `0.12.5` | | redox_syscall | `0.5.17` | `0.5.18` | | [windows-link](https://github.com/microsoft/windows-rs) | `0.2.0` | `0.2.1` | Bumps the non-rust-vmm group with 14 updates in the /fuzz directory: | Package | From | To | | --- | --- | --- | | [serde_with](https://github.com/jonasbb/serde_with) | `3.14.1` | `3.15.0` | | [anstream](https://github.com/rust-cli/anstyle) | `0.6.20` | `0.6.21` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.39` | `1.2.40` | | [lock_api](https://github.com/Amanieu/parking_lot) | `0.4.13` | `0.4.14` | | [windows-link](https://github.com/microsoft/windows-rs) | `0.2.0` | `0.2.1` | | [windows-targets](https://github.com/microsoft/windows-rs) | `0.53.4` | `0.53.5` | | [windows_aarch64_gnullvm](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_aarch64_msvc](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_i686_gnu](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_i686_gnullvm](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_i686_msvc](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_x86_64_gnu](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_x86_64_gnullvm](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | | [windows_x86_64_msvc](https://github.com/microsoft/windows-rs) | `0.53.0` | `0.53.1` | Updates `serde_with` from 3.14.1 to 3.15.0 - [Release notes](https://github.com/jonasbb/serde_with/releases) - [Commits](https://github.com/jonasbb/serde_with/compare/v3.14.1...v3.15.0) Updates `anstream` from 0.6.20 to 0.6.21 - [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.20...anstream-v0.6.21) Updates `cc` from 1.2.39 to 1.2.40 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.39...cc-v1.2.40) Updates `find-msvc-tools` from 0.1.2 to 0.1.3 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/find-msvc-tools-v0.1.2...find-msvc-tools-v0.1.3) Updates `lock_api` from 0.4.13 to 0.4.14 - [Release notes](https://github.com/Amanieu/parking_lot/releases) - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-v0.4.13...lock_api-v0.4.14) Updates `openssl-src` from 300.5.2+3.5.2 to 300.5.3+3.5.4 - [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases) - [Commits](https://github.com/alexcrichton/openssl-src-rs/commits) Updates `parking_lot` from 0.12.4 to 0.12.5 - [Release notes](https://github.com/Amanieu/parking_lot/releases) - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/compare/parking_lot-v0.12.4...parking_lot-v0.12.5) Updates `parking_lot_core` from 0.9.11 to 0.9.12 - [Release notes](https://github.com/Amanieu/parking_lot/releases) - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/compare/parking_lot_core-v0.9.11...parking_lot_core-v0.9.12) Updates `redox_syscall` from 0.5.17 to 0.5.18 Updates `serde_with_macros` from 3.14.1 to 3.15.0 - [Release notes](https://github.com/jonasbb/serde_with/releases) - [Commits](https://github.com/jonasbb/serde_with/compare/v3.14.1...v3.15.0) Updates `windows-link` from 0.2.0 to 0.2.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows-targets` from 0.52.6 to 0.53.2 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_aarch64_gnullvm` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_aarch64_msvc` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_i686_gnu` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_i686_gnullvm` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_i686_msvc` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_x86_64_gnu` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_x86_64_gnullvm` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_x86_64_msvc` from 0.52.6 to 0.53.0 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `serde_with` from 3.14.1 to 3.15.0 - [Release notes](https://github.com/jonasbb/serde_with/releases) - [Commits](https://github.com/jonasbb/serde_with/compare/v3.14.1...v3.15.0) Updates `anstream` from 0.6.20 to 0.6.21 - [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.20...anstream-v0.6.21) Updates `cc` from 1.2.39 to 1.2.40 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.39...cc-v1.2.40) Updates `find-msvc-tools` from 0.1.2 to 0.1.3 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/find-msvc-tools-v0.1.2...find-msvc-tools-v0.1.3) Updates `lock_api` from 0.4.13 to 0.4.14 - [Release notes](https://github.com/Amanieu/parking_lot/releases) - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-v0.4.13...lock_api-v0.4.14) Updates `serde_with_macros` from 3.14.1 to 3.15.0 - [Release notes](https://github.com/jonasbb/serde_with/releases) - [Commits](https://github.com/jonasbb/serde_with/compare/v3.14.1...v3.15.0) Updates `windows-link` from 0.2.0 to 0.2.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows-targets` from 0.53.4 to 0.53.5 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_aarch64_gnullvm` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_aarch64_msvc` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_i686_gnu` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_i686_gnullvm` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_i686_msvc` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_x86_64_gnu` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_x86_64_gnullvm` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `windows_x86_64_msvc` from 0.53.0 to 0.53.1 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) --- updated-dependencies: - dependency-name: serde_with dependency-version: 3.15.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: anstream dependency-version: 0.6.21 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: cc dependency-version: 1.2.40 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: find-msvc-tools dependency-version: 0.1.3 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: lock_api dependency-version: 0.4.14 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: openssl-src dependency-version: 300.5.3+3.5.4 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: parking_lot dependency-version: 0.12.5 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: parking_lot_core dependency-version: 0.9.12 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: redox_syscall dependency-version: 0.5.18 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: serde_with_macros dependency-version: 3.15.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows-link dependency-version: 0.2.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows-targets dependency-version: 0.53.2 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_aarch64_gnullvm dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_aarch64_msvc dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_i686_gnu dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_i686_gnullvm dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_i686_msvc dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_x86_64_gnu dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_x86_64_gnullvm dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows_x86_64_msvc dependency-version: 0.53.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: serde_with dependency-version: 3.15.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: anstream dependency-version: 0.6.21 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: cc dependency-version: 1.2.40 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: find-msvc-tools dependency-version: 0.1.3 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: lock_api dependency-version: 0.4.14 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: serde_with_macros dependency-version: 3.15.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: windows-link dependency-version: 0.2.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows-targets dependency-version: 0.53.5 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_aarch64_gnullvm dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_aarch64_msvc dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_i686_gnu dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_i686_gnullvm dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_i686_msvc dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_x86_64_gnu dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_x86_64_gnullvm dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows_x86_64_msvc dependency-version: 0.53.1 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
15ca4751b7 |
build: Bump crate-ci/typos from 1.37.1 to 1.38.0
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.37.1 to 1.38.0. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.37.1...v1.38.0) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.38.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
017a366a6e |
tests: First pass at replacing focal images with jammy
Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
4e008e2dbc |
tests: Reduce use of focal/jammy variable names
In preparation for removing focal support - start by using a more generic "disk_config" variable name for the DiskConfig struct vs embedding the image type. Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
7eb5a6cd70 |
build: Bump crate-ci/typos from 1.37.0 to 1.37.1
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.37.0 to 1.37.1. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.37.0...v1.37.1) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.37.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
4961b93e69 |
tests: Fix typo/grammar in live migration tests
Signed-off-by: Rob Bradford <rbradford@rivosinc.com> |
||
|
|
44f187715f |
build: Bump crate-ci/typos from 1.36.3 to 1.37.0
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.36.3 to 1.37.0. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.36.3...v1.37.0) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.37.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
39e540ebb1 |
build: Bump the non-rust-vmm group across 2 directories with 20 updates
Bumps the non-rust-vmm group with 12 updates in the / directory: | Package | From | To | | --- | --- | --- | | [serde](https://github.com/serde-rs/serde) | `1.0.226` | `1.0.228` | | [libc](https://github.com/rust-lang/libc) | `0.2.175` | `0.2.176` | | [thiserror](https://github.com/dtolnay/thiserror) | `2.0.16` | `2.0.17` | | [anstyle](https://github.com/rust-cli/anstyle) | `1.0.11` | `1.0.13` | | [async-channel](https://github.com/smol-rs/async-channel) | `2.3.1` | `2.5.0` | | [backtrace](https://github.com/rust-lang/backtrace-rs) | `0.3.75` | `0.3.76` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.38` | `1.2.39` | | [hashbrown](https://github.com/rust-lang/hashbrown) | `0.15.5` | `0.16.0` | | [memchr](https://github.com/BurntSushi/memchr) | `2.7.5` | `2.7.6` | | [quote](https://github.com/dtolnay/quote) | `1.0.40` | `1.0.41` | | [regex](https://github.com/rust-lang/regex) | `1.11.2` | `1.11.3` | | [rustix](https://github.com/bytecodealliance/rustix) | `1.0.7` | `1.1.2` | Bumps the non-rust-vmm group with 8 updates in the /fuzz directory: | Package | From | To | | --- | --- | --- | | [serde](https://github.com/serde-rs/serde) | `1.0.226` | `1.0.228` | | [libc](https://github.com/rust-lang/libc) | `0.2.175` | `0.2.176` | | [thiserror](https://github.com/dtolnay/thiserror) | `2.0.16` | `2.0.17` | | [anstyle](https://github.com/rust-cli/anstyle) | `1.0.11` | `1.0.13` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.38` | `1.2.39` | | [memchr](https://github.com/BurntSushi/memchr) | `2.7.5` | `2.7.6` | | [quote](https://github.com/dtolnay/quote) | `1.0.40` | `1.0.41` | | [windows-targets](https://github.com/microsoft/windows-rs) | `0.53.3` | `0.53.4` | Updates `serde` from 1.0.226 to 1.0.228 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228) Updates `libc` from 0.2.175 to 0.2.176 - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://github.com/rust-lang/libc/blob/0.2.176/CHANGELOG.md) - [Commits](https://github.com/rust-lang/libc/compare/0.2.175...0.2.176) Updates `thiserror` from 2.0.16 to 2.0.17 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/2.0.16...2.0.17) Updates `anstyle` from 1.0.11 to 1.0.13 - [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.11...v1.0.13) Updates `async-channel` from 2.3.1 to 2.5.0 - [Release notes](https://github.com/smol-rs/async-channel/releases) - [Changelog](https://github.com/smol-rs/async-channel/blob/master/CHANGELOG.md) - [Commits](https://github.com/smol-rs/async-channel/compare/v2.3.1...v2.5.0) Updates `backtrace` from 0.3.75 to 0.3.76 - [Release notes](https://github.com/rust-lang/backtrace-rs/releases) - [Changelog](https://github.com/rust-lang/backtrace-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.75...backtrace-v0.3.76) Updates `cc` from 1.2.38 to 1.2.39 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.38...cc-v1.2.39) Updates `gimli` from 0.31.1 to 0.32.3 - [Changelog](https://github.com/gimli-rs/gimli/blob/master/CHANGELOG.md) - [Commits](https://github.com/gimli-rs/gimli/compare/0.31.1...0.32.3) Updates `hashbrown` from 0.15.5 to 0.16.0 - [Release notes](https://github.com/rust-lang/hashbrown/releases) - [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/hashbrown/compare/v0.15.5...v0.16.0) Updates `memchr` from 2.7.5 to 2.7.6 - [Commits](https://github.com/BurntSushi/memchr/compare/2.7.5...2.7.6) Updates `object` from 0.36.7 to 0.37.3 - [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md) - [Commits](https://github.com/gimli-rs/object/compare/0.36.7...0.37.3) Updates `quote` from 1.0.40 to 1.0.41 - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.40...1.0.41) Updates `regex` from 1.11.2 to 1.11.3 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.11.2...1.11.3) Updates `regex-automata` from 0.4.10 to 0.4.11 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/commits) Updates `rustix` from 1.0.7 to 1.1.2 - [Release notes](https://github.com/bytecodealliance/rustix/releases) - [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGES.md) - [Commits](https://github.com/bytecodealliance/rustix/compare/v1.0.7...v1.1.2) Updates `serde_core` from 1.0.226 to 1.0.228 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228) Updates `serde_derive` from 1.0.226 to 1.0.228 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228) Updates `windows-sys` from 0.59.0 to 0.60.2 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `serde` from 1.0.226 to 1.0.228 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228) Updates `libc` from 0.2.175 to 0.2.176 - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://github.com/rust-lang/libc/blob/0.2.176/CHANGELOG.md) - [Commits](https://github.com/rust-lang/libc/compare/0.2.175...0.2.176) Updates `thiserror` from 2.0.16 to 2.0.17 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/2.0.16...2.0.17) Updates `bitfield-struct` from 0.10.1 to 0.11.0 - [Release notes](https://github.com/wrenger/bitfield-struct-rs/releases) - [Commits](https://github.com/wrenger/bitfield-struct-rs/compare/0.10.1...0.11.0) Updates `anstyle` from 1.0.11 to 1.0.13 - [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.11...v1.0.13) Updates `cc` from 1.2.38 to 1.2.39 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.38...cc-v1.2.39) Updates `memchr` from 2.7.5 to 2.7.6 - [Commits](https://github.com/BurntSushi/memchr/compare/2.7.5...2.7.6) Updates `quote` from 1.0.40 to 1.0.41 - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.40...1.0.41) Updates `serde_core` from 1.0.226 to 1.0.228 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228) Updates `serde_derive` from 1.0.226 to 1.0.228 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228) Updates `windows-targets` from 0.53.3 to 0.53.4 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) --- updated-dependencies: - dependency-name: serde dependency-version: 1.0.228 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: libc dependency-version: 0.2.176 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: thiserror dependency-version: 2.0.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: anstyle dependency-version: 1.0.13 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: async-channel dependency-version: 2.5.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: backtrace dependency-version: 0.3.76 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: cc dependency-version: 1.2.39 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: gimli dependency-version: 0.32.3 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: hashbrown dependency-version: 0.16.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: memchr dependency-version: 2.7.6 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: object dependency-version: 0.37.3 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: quote dependency-version: 1.0.41 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: regex dependency-version: 1.11.3 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: regex-automata dependency-version: 0.4.11 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: rustix dependency-version: 1.1.2 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: serde_core dependency-version: 1.0.228 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: serde_derive dependency-version: 1.0.228 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows-sys dependency-version: 0.60.2 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: serde dependency-version: 1.0.228 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: libc dependency-version: 0.2.176 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: thiserror dependency-version: 2.0.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: bitfield-struct dependency-version: 0.11.0 dependency-type: indirect update-type: version-update:semver-minor dependency-group: non-rust-vmm - dependency-name: anstyle dependency-version: 1.0.13 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: cc dependency-version: 1.2.39 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: memchr dependency-version: 2.7.6 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: quote dependency-version: 1.0.41 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: serde_core dependency-version: 1.0.228 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: serde_derive dependency-version: 1.0.228 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm - dependency-name: windows-targets dependency-version: 0.53.4 dependency-type: indirect update-type: version-update:semver-patch dependency-group: non-rust-vmm ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
690741de13 |
hypervisor: kvm/x86_64: get and set nested guest state
Since the functionality of [0] was backported to kvm-bindings@v0.12.1 and kvm-ioctls@v0.22.1 [1, 2], we can now save nested KVM state. This way, nesting works across state save/resume and live-migration. [0] https://github.com/rust-vmm/kvm/pull/322 [1] https://github.com/rust-vmm/kvm/pull/349 [2] https://github.com/rust-vmm/kvm/pull/350 Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
4c16285dde |
vmm: Fix UB in AMX support checks
Rust's aliasing rules do not permit mutating a `usize` through a shared reference. Unsafe blocks and FFI are no exception. This PR fixes such a violation detected in the AMX support checks by passing a raw mutable pointer instead of a shared reference in the syscall. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP <oliver.anderson@sap.com> |
||
|
|
bb713e8c01 |
build: Bump crate-ci/typos from 1.36.2 to 1.36.3
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.36.2 to 1.36.3. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.36.2...v1.36.3) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.36.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
a6426e3615 |
devices: gracefully close preserved FDs on device remove
For a graceful resource management of externally provided FDs in Cloud Hypervisor, corresponding FDs need to be closed on a device removal. This is the case for virtio-net devices using external FDs, for example. With the fix introduced in this commit, we allow management software to properly clean up resources, e.g., libvirt can clean up tap devices. PS: CHV uses "added" and "removed", which has the same meaning as hot device attach/hotplug and hot device detach/unplug. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
f1206a19df |
block: fix error style
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
f2dfa7f6e0 |
misc: Use variables directly in format! string
Fix clippy warning `uninlined_format_args` reported by rustc rustc
1.89.0 (29483883e 2025-08-04).
```console
warning: variables can be used directly in the `format!` string
--> block/src/lib.rs:649:17
|
649 | info!("{} failed to create io_uring instance: {}", error_msg, e);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
649 - info!("{} failed to create io_uring instance: {}", error_msg, e);
649 + info!("{error_msg} failed to create io_uring instance: {e}");
|
```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
|
||
|
|
ea83fe314c |
build: Bump the non-rust-vmm group across 2 directories with 107 updates
Bumps the non-rust-vmm group with 57 updates in the / directory: | Package | From | To | | --- | --- | --- | | [zbus](https://github.com/dbus2/zbus) | `5.7.1` | `5.11.0` | | [serde](https://github.com/serde-rs/serde) | `1.0.208` | `1.0.226` | | [serde_json](https://github.com/serde-rs/json) | `1.0.143` | `1.0.145` | | [serde_with](https://github.com/jonasbb/serde_with) | `3.14.0` | `3.14.1` | | [anyhow](https://github.com/dtolnay/anyhow) | `1.0.99` | `1.0.100` | | [cfg-if](https://github.com/rust-lang/cfg-if) | `1.0.0` | `1.0.3` | | [clap](https://github.com/clap-rs/clap) | `4.5.47` | `4.5.48` | | [log](https://github.com/rust-lang/log) | `0.4.22` | `0.4.28` | | [thiserror](https://github.com/dtolnay/thiserror) | `2.0.12` | `2.0.16` | | [zerocopy](https://github.com/google/zerocopy) | `0.8.26` | `0.8.27` | | [bitfield-struct](https://github.com/wrenger/bitfield-struct-rs) | `0.10.1` | `0.11.0` | | [num_enum](https://github.com/illicitonion/num_enum) | `0.7.3` | `0.7.4` | | [blocking](https://github.com/smol-rs/blocking) | `1.6.1` | `1.6.2` | | [gdbstub](https://github.com/daniel5151/gdbstub) | `0.7.6` | `0.7.7` | | [micro_http](https://github.com/firecracker-microvm/micro-http) | ``bf50989`` | ``3248cee`` | | [anstream](https://github.com/rust-cli/anstyle) | `0.6.19` | `0.6.20` | | [anstyle-query](https://github.com/rust-cli/anstyle) | `1.1.2` | `1.1.4` | | [anstyle-wincon](https://github.com/rust-cli/anstyle) | `3.0.6` | `3.0.10` | | [async-broadcast](https://github.com/smol-rs/async-broadcast) | `0.7.1` | `0.7.2` | | [async-executor](https://github.com/smol-rs/async-executor) | `1.13.1` | `1.13.3` | | [async-io](https://github.com/smol-rs/async-io) | `2.5.0` | `2.6.0` | | [async-lock](https://github.com/smol-rs/async-lock) | `3.4.0` | `3.4.1` | | [async-signal](https://github.com/smol-rs/async-signal) | `0.2.12` | `0.2.13` | | [bumpalo](https://github.com/fitzgen/bumpalo) | `3.16.0` | `3.19.0` | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.34` | `1.2.38` | | [clap_lex](https://github.com/clap-rs/clap) | `0.7.4` | `0.7.5` | | [colorchoice](https://github.com/rust-cli/anstyle) | `1.0.3` | `1.0.4` | | [crc32fast](https://github.com/srijs/rust-crc32fast) | `1.4.2` | `1.5.0` | | [env_filter](https://github.com/rust-cli/env_logger) | `0.1.2` | `0.1.3` | | [errno](https://github.com/lambda-fairy/rust-errno) | `0.3.13` | `0.3.14` | | [event-listener-strategy](https://github.com/smol-rs/event-listener-strategy) | `0.5.3` | `0.5.4` | | [futures-lite](https://github.com/smol-rs/futures-lite) | `2.6.0` | `2.6.1` | | [glob](https://github.com/rust-lang/glob) | `0.3.2` | `0.3.3` | | [hashbrown](https://github.com/rust-lang/hashbrown) | `0.15.4` | `0.15.5` | | [indexmap](https://github.com/indexmap-rs/indexmap) | `2.8.0` | `2.11.4` | | libredox | `0.1.3` | `0.1.10` | | [libz-sys](https://github.com/rust-lang/libz-sys) | `1.1.18` | `1.1.22` | | [lock_api](https://github.com/Amanieu/parking_lot) | `0.4.12` | `0.4.13` | | [memchr](https://github.com/BurntSushi/memchr) | `2.7.2` | `2.7.5` | | [once_cell](https://github.com/matklad/once_cell) | `1.20.2` | `1.21.3` | | [openssl-src](https://github.com/alexcrichton/openssl-src-rs) | `300.3.2+3.3.2` | `300.5.2+3.5.2` | | [openssl-sys](https://github.com/sfackler/rust-openssl) | `0.9.104` | `0.9.109` | | [parking_lot](https://github.com/Amanieu/parking_lot) | `0.12.1` | `0.12.4` | | [pin-project-lite](https://github.com/taiki-e/pin-project-lite) | `0.2.15` | `0.2.16` | | [pkg-config](https://github.com/rust-lang/pkg-config-rs) | `0.3.31` | `0.3.32` | | [polling](https://github.com/smol-rs/polling) | `3.6.0` | `3.11.0` | | [ppv-lite86](https://github.com/cryptocorrosion/cryptocorrosion) | `0.2.20` | `0.2.21` | | [proc-macro-crate](https://github.com/bkchr/proc-macro-crate) | `3.3.0` | `3.4.0` | | [regex](https://github.com/rust-lang/regex) | `1.11.1` | `1.11.2` | | [regex-automata](https://github.com/rust-lang/regex) | `0.4.9` | `0.4.10` | | [regex-syntax](https://github.com/rust-lang/regex) | `0.8.5` | `0.8.6` | | [serde_repr](https://github.com/dtolnay/serde-repr) | `0.1.19` | `0.1.20` | | [tempfile](https://github.com/Stebalien/tempfile) | `3.12.0` | `3.23.0` | | [tracing](https://github.com/tokio-rs/tracing) | `0.1.40` | `0.1.41` | | [unicode-ident](https://github.com/dtolnay/unicode-ident) | `1.0.18` | `1.0.19` | | [wasi](https://github.com/bytecodealliance/wasi-rs) | `0.11.0+wasi-snapshot-preview1` | `0.11.1+wasi-snapshot-preview1` | | [zvariant_utils](https://github.com/dbus2/zbus) | `3.2.0` | `3.2.1` | Bumps the non-rust-vmm group with 44 updates in the /fuzz directory: | Package | From | To | | --- | --- | --- | | [serde](https://github.com/serde-rs/serde) | `1.0.208` | `1.0.226` | | [serde_json](https://github.com/serde-rs/json) | `1.0.143` | `1.0.145` | | [serde_with](https://github.com/jonasbb/serde_with) | `3.14.0` | `3.14.1` | | [cfg-if](https://github.com/rust-lang/cfg-if) | `1.0.0` | `1.0.3` | | [clap](https://github.com/clap-rs/clap) | `4.5.47` | `4.5.48` | | [log](https://github.com/rust-lang/log) | `0.4.22` | `0.4.28` | | [thiserror](https://github.com/dtolnay/thiserror) | `2.0.12` | `2.0.16` | | [zerocopy](https://github.com/google/zerocopy) | `0.8.26` | `0.8.27` | | [num_enum](https://github.com/illicitonion/num_enum) | `0.7.2` | `0.7.4` | | [getrandom](https://github.com/rust-random/getrandom) | `0.2.15` | `0.2.16` | | [gdbstub](https://github.com/daniel5151/gdbstub) | `0.7.6` | `0.7.7` | | [micro_http](https://github.com/firecracker-microvm/micro-http) | ``bf50989`` | ``3248cee`` | | [anstream](https://github.com/rust-cli/anstyle) | `0.6.15` | `0.6.20` | | [anstyle](https://github.com/rust-cli/anstyle) | `1.0.8` | `1.0.11` | | [anstyle-parse](https://github.com/rust-cli/anstyle) | `0.2.5` | `0.2.7` | | [anstyle-query](https://github.com/rust-cli/anstyle) | `1.1.1` | `1.1.4` | | [autocfg](https://github.com/cuviper/autocfg) | `1.3.0` | `1.5.0` | | [bumpalo](https://github.com/fitzgen/bumpalo) | `3.16.0` | `3.19.0` | | [cc](https://github.com/rust-lang/cc-rs) | `1.1.11` | `1.2.38` | | [colorchoice](https://github.com/rust-cli/anstyle) | `1.0.2` | `1.0.4` | | [enumflags2](https://github.com/meithecatte/enumflags2) | `0.7.10` | `0.7.12` | | [equivalent](https://github.com/indexmap-rs/equivalent) | `1.0.1` | `1.0.2` | | [futures-core](https://github.com/rust-lang/futures-rs) | `0.3.30` | `0.3.31` | | [futures-sink](https://github.com/rust-lang/futures-rs) | `0.3.30` | `0.3.31` | | [indexmap](https://github.com/indexmap-rs/indexmap) | `2.5.0` | `2.11.4` | | [itoa](https://github.com/dtolnay/itoa) | `1.0.11` | `1.0.15` | | [lock_api](https://github.com/Amanieu/parking_lot) | `0.4.12` | `0.4.13` | | [memchr](https://github.com/BurntSushi/memchr) | `2.7.4` | `2.7.5` | | [once_cell](https://github.com/matklad/once_cell) | `1.20.2` | `1.21.3` | | [ppv-lite86](https://github.com/cryptocorrosion/cryptocorrosion) | `0.2.20` | `0.2.21` | | [proc-macro-crate](https://github.com/bkchr/proc-macro-crate) | `3.2.0` | `3.4.0` | | [proc-macro2](https://github.com/dtolnay/proc-macro2) | `1.0.92` | `1.0.101` | | [quote](https://github.com/dtolnay/quote) | `1.0.37` | `1.0.40` | | [r-efi](https://github.com/r-efi/r-efi) | `5.2.0` | `5.3.0` | | [rand](https://github.com/rust-random/rand) | `0.9.0` | `0.9.2` | | [rustversion](https://github.com/dtolnay/rustversion) | `1.0.21` | `1.0.22` | | [ryu](https://github.com/dtolnay/ryu) | `1.0.18` | `1.0.20` | | [signal-hook-registry](https://github.com/vorner/signal-hook) | `1.4.2` | `1.4.6` | | [syn](https://github.com/dtolnay/syn) | `2.0.95` | `2.0.106` | | [unicode-ident](https://github.com/dtolnay/unicode-ident) | `1.0.13` | `1.0.19` | | [wasi](https://github.com/bytecodealliance/wasi-rs) | `0.11.0+wasi-snapshot-preview1` | `0.11.1+wasi-snapshot-preview1` | | [arbitrary](https://github.com/rust-fuzz/arbitrary) | `1.4.1` | `1.4.2` | | [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer) | `0.4.7` | `0.4.10` | | [jobserver](https://github.com/rust-lang/jobserver-rs) | `0.1.32` | `0.1.34` | Updates `zbus` from 5.7.1 to 5.11.0 - [Release notes](https://github.com/dbus2/zbus/releases) - [Commits](https://github.com/dbus2/zbus/compare/zbus-5.7.1...zbus-5.11.0) Updates `serde` from 1.0.208 to 1.0.226 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.208...v1.0.226) Updates `serde_json` from 1.0.143 to 1.0.145 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.143...v1.0.145) Updates `serde_with` from 3.14.0 to 3.14.1 - [Release notes](https://github.com/jonasbb/serde_with/releases) - [Commits](https://github.com/jonasbb/serde_with/compare/v3.14.0...v3.14.1) Updates `anyhow` from 1.0.99 to 1.0.100 - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.99...1.0.100) Updates `cfg-if` from 1.0.0 to 1.0.3 - [Release notes](https://github.com/rust-lang/cfg-if/releases) - [Changelog](https://github.com/rust-lang/cfg-if/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cfg-if/compare/1.0.0...v1.0.3) Updates `clap` from 4.5.47 to 4.5.48 - [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.47...clap_complete-v4.5.48) Updates `log` from 0.4.22 to 0.4.28 - [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.22...0.4.28) Updates `thiserror` from 2.0.12 to 2.0.16 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/2.0.12...2.0.16) Updates `zerocopy` from 0.8.26 to 0.8.27 - [Release notes](https://github.com/google/zerocopy/releases) - [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md) - [Commits](https://github.com/google/zerocopy/compare/v0.8.26...v0.8.27) Updates `bitfield-struct` from 0.10.1 to 0.11.0 - [Release notes](https://github.com/wrenger/bitfield-struct-rs/releases) - [Commits](https://github.com/wrenger/bitfield-struct-rs/compare/0.10.1...0.11.0) Updates `num_enum` from 0.7.3 to 0.7.4 - [Commits](https://github.com/illicitonion/num_enum/compare/0.7.3...0.7.4) Updates `blocking` from 1.6.1 to 1.6.2 - [Release notes](https://github.com/smol-rs/blocking/releases) - [Changelog](https://github.com/smol-rs/blocking/blob/master/CHANGELOG.md) - [Commits](https://github.com/smol-rs/blocking/compare/v1.6.1...v1.6.2) Updates `gdbstub` from 0.7.6 to 0.7.7 - [Release notes](https://github.com/daniel5151/gdbstub/releases) - [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md) - [Commits](https://github.com/daniel5151/gdbstub/compare/0.7.6...0.7.7) Updates `micro_http` from `bf50989` to `3248cee` - [Commits]( |
||
|
|
ad0f695352 |
ci: Make package-ecosystem combination unique
"Update configs must have a unique combination of 'package-ecosystem', 'directory', and 'target-branch'. Ecosystem 'cargo' has overlapping directories for target branch 'main'." Drop `target-branch` in rust-vmm group to make those two unique. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn> |
||
|
|
70c798d2b9 |
build: Bump landlock from 0.4.2 to 0.4.3
Bumps [landlock](https://github.com/landlock-lsm/rust-landlock) from 0.4.2 to 0.4.3. - [Release notes](https://github.com/landlock-lsm/rust-landlock/releases) - [Changelog](https://github.com/landlock-lsm/rust-landlock/blob/main/CHANGELOG.md) - [Commits](https://github.com/landlock-lsm/rust-landlock/compare/v0.4.2...v0.4.3) --- updated-dependencies: - dependency-name: landlock dependency-version: 0.4.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
db37ef2ad7 |
ci: Group dependabot updates to reduce noise
Use a workaround [1] to group rust-vmm and non-rust-vmm updates raised by dependabot, which reduces noise from dependabot. [1] https://github.com/dependabot/dependabot-core/issues/1778#issuecomment-1988140219 Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn> |
||
|
|
452424b66e |
vmm: api: abstract FD handling behind functions
## TL;DR This unifies error handling, implementation, and logging of config objects that are populated with additional FDs received as part of the HTTP API request from the management software. This prevents current and future code in repetition. In the future, if we want to support let's say virtio-blk with external FDs, the AddBlk API handler simply needs a call to `attach_fds_to_cfg()` and gets all the magic for free. ## Motivation The motivation of the new abstraction is to provide a verbose, solid, and bulletproof solution for a complex domain. The interaction between - the management layer, - the passing of file descriptors over UNIX domain sockets via SCM_RIGHTS, - the attachment of configurations to those FDs, - and the ability to give new developers clear insights into what happens under the hood is not trivial. These factors justify encapsulating the complexity behind a convenient and well-documented abstraction, making the system both robust in production and approachable for new developers. In addition, it allows us to perform unit testing. Further, We get rid of existing partial code duplication and inconsistencies. Finally, while this approach may initially result in more code, every new handler that accepts FDs benefits from reduced duplication and a correct implementation by relying on the shared abstraction. This will also enable future functionality, such as virtio-blk devices backed by FDs which can then be integrated with ease. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
ed27e93b81 |
vmm: remove special serialization of network FDs
Deserializing values as `-1` makes sense to prevent errors, so let's keep it. However, serializing them differently adds confusion. For example, a `ch-remote info` call should not report `-1` but the actual FDs. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com |
||
|
|
0cd87053ee |
vmm: document + FD (de)serialization + warn -> debug
(1) The old messages are missing the "why" part. With this change, users
of Cloud Hypervisor have somehow more context and people looking at
the code perfectly know what's going on.
(2) Using warn! implies that the user should take action, but in this
case, there’s nothing the user can do. If the API is used correctly
and file descriptors are passed via an SCM_RIGHTS message over a
UNIX domain socket, everything works as intended. In that case,
there's no need to issue a warning — debug! is sufficient.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
|