Ruoqing He
17195e1a46
vmm: Enable firmware boot for riscv64
...
Implement firmware boot (UEFI boot) for riscv64 architecture.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-08-11 10:10:27 +00:00
Ruoqing He
0df4b1ac4f
vmm: Define riscv64 UEFI Error
...
Error::UefiLoad is required for load_firmware to propagate errors
encountered, define it for riscv64.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-08-11 10:10:27 +00:00
Ruoqing He
2e0ec8095c
vmm: Enable uefi_flash field for riscv64
...
uefi_flash field in memory_manager is required for uefi loading and
booting, enable it for riscv64 architecture.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-08-11 10:10:27 +00:00
Ruoqing He
ef2bbe5012
arch: riscv: Introduce UEFI module
...
Provide Error definitions and load_uefi to be referenced while loading
firmware.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-08-11 10:10:27 +00:00
Ruoqing He
2524b015b8
arch: riscv: Introduce UEFI related constants
...
Set UEFI_START and UEFI_SIZE for riscv64 layout.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-08-11 10:10:27 +00:00
Demi Marie Obenour
9825397350
misc: option_parser: allow quoting special characters
...
The option parser did not allow quoting any special characters, which
means that some strings could not be passed via command-line options.
Fix this by allowing double quotes to quote all the special characters,
such as '@', ',', '[', and ']'. '"' can be escaped by doubling it. The
implementation uses some tricks to stay modular.
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com >
2025-08-10 11:25:24 +00:00
Songqian Li
a637940be7
ci: Fix link check failed
...
### Errors in src/main.rs
* [404] <https://github.com/cloud-hypervisor/cloud-hypervisor/issues/new
/n> | Rejected status code (this depends on your "accept" configuration)
: Not Found
Signed-off-by: Songqian Li <sionli@tencent.com >
2025-08-10 09:14:07 +00:00
Songqian Li
684fb1dfce
ci: Improve link checker conditions
...
Link checker excludes checks on local links and links with variables.
Signed-off-by: Songqian Li <sionli@tencent.com >
2025-08-10 09:14:07 +00:00
dependabot[bot]
e718e0ad36
build: Bump async-trait from 0.1.86 to 0.1.88
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.86 to 0.1.88.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.86...0.1.88 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-version: 0.1.88
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-09 01:23:59 +00:00
dependabot[bot]
f87772cd36
build: Bump crate-ci/typos from 1.35.2 to 1.35.3
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.35.2 to 1.35.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.35.2...v1.35.3 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-version: 1.35.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-09 00:29:54 +00:00
dependabot[bot]
0d9a941a2c
build: Bump redox_users from 0.5.0 to 0.5.2
...
Bumps redox_users from 0.5.0 to 0.5.2.
---
updated-dependencies:
- dependency-name: redox_users
dependency-version: 0.5.2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-08 04:58:07 +00:00
dependabot[bot]
4f4940b02a
build: Bump crate-ci/typos from 1.35.1 to 1.35.2
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.35.1 to 1.35.2.
- [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.35.1...v1.35.2 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-version: 1.35.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-08 00:18:56 +00:00
Songqian Li
0bfa160360
hypervisor: Replacing pdf link with new available link
...
Replacing pdf link with new available link to fix the failed CI.
Signed-off-by: Songqian Li <sionli@tencent.com >
2025-08-07 16:53:59 +00:00
Songqian Li
530719a57a
build: Bump MSRV to 1.87.0
...
rustc 1.90.0-beta.1 (788da80fc 2025-08-04) suggests using library
feature `unsigned_is_multiple_of`. It is stabled in Rust 1.87.0.
Update image to 20250807-0 since MSRV in Dockerfile is updated.
Signed-off-by: Songqian Li <sionli@tencent.com >
Signed-off-by: Bo Chen <bchen@crusoe.ai >
2025-08-07 16:53:59 +00:00
Songqian Li
cd2c43b489
misc: Fix beta clippy errors
...
Fix clippy error: "error: manual implementation of `.is_multiple_of()
`" from rustc 1.90.0-beta.1 (788da80fc 2025-08-04).
Signed-off-by: Songqian Li <sionli@tencent.com >
2025-08-07 16:53:59 +00:00
Bo Chen
394fd230b0
vmm: acpi: Clarify the return of 'create_acpi_tables_internal'
...
Signed-off-by: Bo Chen <bchen@crusoe.ai >
2025-08-06 21:11:27 +00:00
Bo Chen
abcec231eb
vmm: acpi: Clarify variable naming in 'create_acpi_tables_internal'
...
When generating ACPI tables, we are not using "offset", instead we
are using (guest physical) addresses.
Signed-off-by: Bo Chen <bchen@crusoe.ai >
2025-08-06 21:11:27 +00:00
Bo Chen
cda1ea53a5
vmm: acpi: Make 'create_acpi_tables' more flexible
...
Now 'create_acpi_tables_internal()' can generate ACPI tables with
different dsdt offset, so that it can be reused for generating ACPI
tables for `fw_cfg`.
Signed-off-by: Bo Chen <bchen@crusoe.ai >
Signed-off-by: Alex Orozco <alexorozco@google.com >
2025-08-06 21:11:27 +00:00
dependabot[bot]
e2d2b2f2f0
build: Bump rand from 0.9.1 to 0.9.2
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.1...rand_core-0.9.2 )
---
updated-dependencies:
- dependency-name: rand
dependency-version: 0.9.2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-05 12:12:45 +00:00
dependabot[bot]
9ee3b29a11
build: Bump crate-ci/typos from 1.34.0 to 1.35.1
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.34.0 to 1.35.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.34.0...v1.35.1 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-version: 1.35.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-05 08:15:40 +00:00
dependabot[bot]
eb147cb3cc
build: Bump rustc-demangle from 0.1.24 to 0.1.26
...
Bumps [rustc-demangle](https://github.com/rust-lang/rustc-demangle ) from 0.1.24 to 0.1.26.
- [Release notes](https://github.com/rust-lang/rustc-demangle/releases )
- [Changelog](https://github.com/rust-lang/rustc-demangle/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/rustc-demangle/compare/0.1.24...rustc-demangle-v0.1.26 )
---
updated-dependencies:
- dependency-name: rustc-demangle
dependency-version: 0.1.26
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-05 07:06:06 +00:00
dependabot[bot]
b630b22ed9
build: Bump landlock from 0.4.0 to 0.4.2
...
Bumps [landlock](https://github.com/landlock-lsm/rust-landlock ) from 0.4.0 to 0.4.2.
- [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.0...v0.4.2 )
---
updated-dependencies:
- dependency-name: landlock
dependency-version: 0.4.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-02 00:20:14 +00:00
dependabot[bot]
a7645ae9d6
build: Bump async-process from 2.3.0 to 2.4.0
...
Bumps [async-process](https://github.com/smol-rs/async-process ) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/smol-rs/async-process/releases )
- [Changelog](https://github.com/smol-rs/async-process/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-process/compare/v2.3.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: async-process
dependency-version: 2.4.0
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-01 00:05:35 +00:00
dependabot[bot]
254db85a33
build: Bump anyhow from 1.0.94 to 1.0.98
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.94 to 1.0.98.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.94...1.0.98 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-version: 1.0.98
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-31 03:29:16 +00:00
dependabot[bot]
16b0e08482
build: Bump tj-actions/changed-files from 40 to 46 in /.github/workflows
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 40 to 46.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v40...v46 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-version: '46'
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-31 00:01:11 +00:00
Shubham Chakrawar
8a37e154db
ci: Prevent link checker rate limits
...
Optimize lychee workflow to check only changed
files in pull requests, avoiding excessive API
calls to prevent rate limits.
Fixes #7056
Signed-off-by: Shubham Chakrawar <schakrawar@crusoe.ai >
2025-07-30 22:30:36 +00:00
dependabot[bot]
003e89e8cd
build: Bump anstream from 0.6.15 to 0.6.19
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.15 to 0.6.19.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.15...anstream-v0.6.19 )
---
updated-dependencies:
- dependency-name: anstream
dependency-version: 0.6.19
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-30 00:37:23 +00:00
Muminul Islam
8e010f1aa3
vmm: don't configure system if rsdp is not available
...
In case of CVM guest rsdp is set to none. Unwrapping it
make the vmm crashed. Don't call configure system if the
rsdb address is none.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2025-07-29 15:55:06 +00:00
dependabot[bot]
7c631b2d1b
build: Bump toml_datetime from 0.6.8 to 0.6.11
...
Bumps [toml_datetime](https://github.com/toml-rs/toml ) from 0.6.8 to 0.6.11.
- [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.6.8...toml_datetime-v0.6.11 )
---
updated-dependencies:
- dependency-name: toml_datetime
dependency-version: 0.6.11
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-29 05:33:35 +00:00
dependabot[bot]
ba962a30d5
build: Bump r-efi from 5.2.0 to 5.3.0
...
Bumps [r-efi](https://github.com/r-efi/r-efi ) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/r-efi/r-efi/releases )
- [Changelog](https://github.com/r-efi/r-efi/blob/main/NEWS.md )
- [Commits](https://github.com/r-efi/r-efi/compare/v5.2.0...v5.3.0 )
---
updated-dependencies:
- dependency-name: r-efi
dependency-version: 5.3.0
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-29 03:50:24 +00:00
Oliver Anderson
8c136041cb
build: Use workspace dependencies
...
Many of the workspace members in the Cloud-hypervisor workspace share
common dependencies. Making these workspace dependencies reduces
duplication and improves maintainability.
Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de >
On-behalf-of: SAP oliver.anderson@sap.com
2025-07-28 20:19:27 +00:00
dependabot[bot]
b0bf889d58
build: Bump serde_with from 3.9.0 to 3.14.0
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.9.0 to 3.14.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.9.0...v3.14.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-version: 3.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-26 00:03:54 +00:00
Lucas Grosche
2c3e6cd93d
docs: Add Windows 11 support information
...
The current documentation only mentions Windows
server support. Since only minimal adjustments
are needed for Windows 11 support, these were
added where applicable.
Also contains whitespace fixes, adds missing `\`
in example code and adds more cross references.
Signed-off-by: Lucas Grosche <lucas.grosche@cyberus-technology.de >
2025-07-25 22:30:59 +00:00
dependabot[bot]
985dcfbf3e
build: Bump async-signal from 0.2.11 to 0.2.12
...
Bumps [async-signal](https://github.com/smol-rs/async-signal ) from 0.2.11 to 0.2.12.
- [Release notes](https://github.com/smol-rs/async-signal/releases )
- [Changelog](https://github.com/smol-rs/async-signal/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-signal/compare/v0.2.11...v0.2.12 )
---
updated-dependencies:
- dependency-name: async-signal
dependency-version: 0.2.12
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-25 00:38:42 +00:00
Oliver Anderson
511a100842
tpm: Use the same log version as other workspace members
...
The other workspace members in the Cloud-hypervisor workspace
currently declare log version 0.4.22, but the tpm crate
has an older version. This inconsistency is addressed by this PR
which opens the door for declaring log as a workspace dependency.
Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de >
On-behalf-of: SAP oliver.anderson@sap.com
2025-07-24 23:52:45 +00:00
Wei Liu
8a26380657
performance-metrics: Add all supported formats to block tests
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-24 23:37:09 +00:00
Wei Liu
76d8d47f6a
performance-metrics: Initialize tests after setting overrides
...
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-24 23:37:09 +00:00
dependabot[bot]
423280fb96
build: Bump enumflags2 from 0.7.10 to 0.7.12
...
Bumps [enumflags2](https://github.com/meithecatte/enumflags2 ) from 0.7.10 to 0.7.12.
- [Release notes](https://github.com/meithecatte/enumflags2/releases )
- [Commits](https://github.com/meithecatte/enumflags2/compare/v0.7.10...v0.7.12 )
---
updated-dependencies:
- dependency-name: enumflags2
dependency-version: 0.7.12
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-24 16:47:13 +00:00
Wei Liu
5f2392c095
tests: Avoid repeatedly downloading files from GitHub
...
Running one or two tests in a tight loop can cause the download
functions to quickly hit GitHub's API rate limit. That causes the test
script to fail for no apparent reason.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-24 16:46:43 +00:00
Wei Liu
2d9fc3beb6
tests: Reenable test_virtio_block_dynamic_vhdx_expand
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-24 01:06:12 +00:00
Wei Liu
4cae96f070
tests: Avoid races in the VHDX expansion test
...
Generate the data disk under a temporary directory so that multiple
instances of the test suites can run at the same time.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-24 01:06:12 +00:00
Wei Liu
f6568042ce
tests: Fix an error message in VHDX expansion test
...
The VHDX image is generated directly, not converted from a RAW image.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-24 01:06:12 +00:00
Oliver Anderson
2ae5b2567b
tpm: Use the same libc crate version as other workspace members
...
The other workspace members in the Cloud-hypervisor workspace
currently declare libc crate version 0.2.167, but the tpm crate
has an older version. This inconsistency is addressed by this PR
which opens the door for declaring libc as a workspace dependency.
Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de >
On-behalf-of: SAP oliver.anderson@sap.com
2025-07-24 01:05:08 +00:00
Oliver Anderson
6d70c570f3
tpm: Use the same anyhow version as other workspace members
...
The other workspace members in the Cloud-hypervisor workspace
currently declare anyhow version 1.0.94, but the tpm crate
has an older version. This inconsistency is addressed by this PR
which opens the door for declaring anyhow as a workspace dependency.
Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de >
On-behalf-of: SAP oliver.anderson@sap.com
2025-07-23 16:29:34 +00:00
Wei Liu
930a911862
block: Simplify AsyncAdaptor
...
It shouldn't be necessary to lock the file for the adaptor. This removes
two layers of indirection for QcowDiskSync and VhdxDiskSync.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-22 22:00:35 +00:00
Bo Chen
03b22a510d
tests: Disable 'test_virtio_block_dynamic_vhdx_expand'
...
This issue is tracked via #7209 .
Signed-off-by: Bo Chen <bchen@crusoe.ai >
2025-07-22 21:06:54 +00:00
Bo Chen
62001b65e9
build: Release v47.0
...
Signed-off-by: Bo Chen <bchen@crusoe.ai >
v47.0
2025-07-22 21:06:54 +00:00
Wei Liu
4be2ca4c10
vhost_user_net: Use Mutex::get_mut() where possible
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-17 19:20:59 +00:00
Wei Liu
5716af09a5
vhost_user_block: Use Mutex::get_mut() where possible
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-17 19:20:59 +00:00
Wei Liu
4ea40b4bea
rate_limiter: Use Mutex::get_mut() in update_buckets
...
There is no need to lock. That function already holds a mutable
reference to self.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2025-07-17 19:20:59 +00:00