History log of /cloud-hypervisor/tests/integration.rs (Results 1 – 25 of 560)
Revision Date Author Comments
# 4182ef91 20-Jun-2025 Philipp Schuster <philipp.schuster@cyberus-technology.de>

misc: remove once_cell; superseded by std::*

We now have types in the Rust standard library.
Dropping the dependency.

I found this by using the `clippy::pedantic` group.

Signed-off-by: Philipp Sch

misc: remove once_cell; superseded by std::*

We now have types in the Rust standard library.
Dropping the dependency.

I found this by using the `clippy::pedantic` group.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com

show more ...


# 2b057537 13-Jun-2025 Bo Chen <bchen@crusoe.ai>

ci: Update reference kernel to 'v6.12.8-20250613'

This bump also includes another release 'ch-release-v6.12.8-20250422'
that changed the naming convention of the released kernel binaries
[1]. As a r

ci: Update reference kernel to 'v6.12.8-20250613'

This bump also includes another release 'ch-release-v6.12.8-20250422'
that changed the naming convention of the released kernel binaries
[1]. As a result, few changes are made to our integration tests and test
scripts.

[1] https://github.com/cloud-hypervisor/linux/releases/tag/ch-release-v6.12.8-20250422

Signed-off-by: Bo Chen <bchen@crusoe.ai>

show more ...


# dce82a34 02-May-2025 Gregory Anders <ganders@cloudflare.com>

net_util: add support for IPv6 addresses on tap interfaces

Allow tap interfaces to be configured with an IPv6 address. The change
is fairly straightforward: we need to update the API types and CLI
p

net_util: add support for IPv6 addresses on tap interfaces

Allow tap interfaces to be configured with an IPv6 address. The change
is fairly straightforward: we need to update the API types and CLI
parsing to accept either an IPv6 or IPv4 and then match on the IP
address type when the tap device is configured.

For IPv6 addresses, the netmask (prefix) must be provided at the same
time as the address itself (in the SIOCSIFADDR ioctl). They cannot be
configured separately. So we remove the separate "set_netmask" function
and convert "set_ip_addr" to also accept a netmask. For IPv4 addresses,
the IP address and netmask were already always set together, so this
should have no functional impact for users of IPv4 addresses.

Signed-off-by: Gregory Anders <ganders@cloudflare.com>

show more ...


# d4718a9b 14-May-2025 Philipp Schuster <philipp.schuster@cyberus-technology.de>

tests: fix parallel rw disk access

The new locking behavior uncovered that unfortunate test situation:
Many tests running in parallel access the same disk image with
rw permissions. Luckily, none of

tests: fix parallel rw disk access

The new locking behavior uncovered that unfortunate test situation:
Many tests running in parallel access the same disk image with
rw permissions. Luckily, none of the tests actually writes to
the disk. Therefore, we can set it to readonly=true. In case this
changes, the test needs to be moved to the sequential test module.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com

show more ...


# 10ee003d 12-May-2025 Bo Chen <bchen@crusoe.ai>

misc: Fix beta clippy issues

Fixing the following clippy issue using `cargo clippy --fix`:

error: variables can be used directly in the `format!` string
--> build.rs:25:27
|
25 | versi

misc: Fix beta clippy issues

Fixing the following clippy issue using `cargo clippy --fix`:

error: variables can be used directly in the `format!` string
--> build.rs:25:27
|
25 | version.push_str(&format!("-{}", extra_version));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

Signed-off-by: Bo Chen <bchen@crusoe.ai>

show more ...


# 29b08929 12-Apr-2025 Rob Bradford <rbradford@rivosinc.com>

tests: Move test_virtio_pmem_persist_writes to sequential group

This test has been generating a flaky OOM situation when run in the
parallel group.

Signed-off-by: Rob Bradford <rbradford@rivosinc.c

tests: Move test_virtio_pmem_persist_writes to sequential group

This test has been generating a flaky OOM situation when run in the
parallel group.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>

show more ...


# 396aba7a 06-Mar-2025 Ruoqing He <heruoqing@iscas.ac.cn>

tests: Skip test_snapshot_restore_with_fd on aarch64

`test_snapshot_restore_with_fd` uses unsafe file descriptors and with
rust 1.82.0 it errors with:

```
fatal runtime error: IO Safety violation:

tests: Skip test_snapshot_restore_with_fd on aarch64

`test_snapshot_restore_with_fd` uses unsafe file descriptors and with
rust 1.82.0 it errors with:

```
fatal runtime error: IO Safety violation: owned file descriptor already
closed
```

so has been skipped for now.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>

show more ...


# 5a8df362 08-Jan-2025 Nikolay Edigaryev <edigaryev@gmail.com>

tests: ensure that IOMMU maximum address width in bits is respected

Signed-off-by: Nikolay Edigaryev <edigaryev@gmail.com>


# c801929f 13-Dec-2024 Rob Bradford <rbradford@rivosinc.com>

tests: Update interrupt group name on ARM

This has changed with kernel 6.12.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>


# bbd8d3b7 10-Dec-2024 Jinrong Liang <cloudliang@tencent.com>

tests: live-migration: Add integration test for tcp live migration

Add integration test for tcp live migration to ensure live migration
functions as expected.

Signed-off-by: Jinrong Liang <cloudlia

tests: live-migration: Add integration test for tcp live migration

Add integration test for tcp live migration to ensure live migration
functions as expected.

Signed-off-by: Jinrong Liang <cloudliang@tencent.com>

show more ...


# ab7b2946 29-Nov-2024 Ruoqing He <heruoqing@iscas.ac.cn>

misc: Replace map_or on false with is_some_and

Replace `map_or()` on false condition with `is_some_and` to provide
better readability, as suggestted by v1.84.0-beta.1 `cargo clippy`.

Signed-off-by:

misc: Replace map_or on false with is_some_and

Replace `map_or()` on false condition with `is_some_and` to provide
better readability, as suggestted by v1.84.0-beta.1 `cargo clippy`.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>

show more ...


# 107bfe10 21-Oct-2024 Rob Bradford <rbradford@rivosinc.com>

tests: Fix missing wait() on spawned support commands

Compiling cloud-hypervisor v41.0.0 (/home/rob/src/cloud-hypervisor)
warning: spawned process is never `wait()`ed on
--> tests/integration

tests: Fix missing wait() on spawned support commands

Compiling cloud-hypervisor v41.0.0 (/home/rob/src/cloud-hypervisor)
warning: spawned process is never `wait()`ed on
--> tests/integration.rs:4250:31
|
4250 | let mut socat_child = socat_command.spawn().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: consider calling `.wait()`
= note: not doing so might leave behind zombie processes
= note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes
= note: `#[warn(clippy::zombie_processes)]` on by default

warning: spawned process is never `wait()`ed on
--> tests/integration.rs:6687:9
|
6687 | / Command::new("/usr/local/bin/spdk-nvme/nvmf_tgt")
6688 | | .args(["-i", "0", "-m", "0x1"])
6689 | | .spawn()
6690 | | .unwrap();
| | ^- help: try: `.wait()`
| |_____________________|
|
|
= note: not doing so might leave behind zombie processes
= note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes

warning: `cloud-hypervisor` (test "integration") generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.83s

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>

show more ...


# 416fe5ea 18-Oct-2024 Ruoqing He <heruoqing@iscas.ac.cn>

misc: Remove redundant return statement

As clippy of rust-toolchain version 1.83.0-beta.1 suggests, remove
redundant `return` statement to keep code clean.

Signed-off-by: Ruoqing He <heruoqing@isca

misc: Remove redundant return statement

As clippy of rust-toolchain version 1.83.0-beta.1 suggests, remove
redundant `return` statement to keep code clean.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>

show more ...


# fc0d8082 05-Oct-2024 Rob Bradford <rbradford@rivosinc.com>

tests: Adjust test_tpm memory usage

After updating the OS image to the latest jammy version this test now
requires more memory to run

Fixes: #6782

Signed-off-by: Rob Bradford <rbradford@rivosinc.c

tests: Adjust test_tpm memory usage

After updating the OS image to the latest jammy version this test now
requires more memory to run

Fixes: #6782

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>

show more ...


# caf15f0a 05-Oct-2024 Rob Bradford <rbradford@rivosinc.com>

tests: Give test_vfio_user more RAM

When running with the newer jammy OS image error messages from Rust
Hypervisor Firmware about lack of ram when rebooting where observed.
Increase the RAM allocati

tests: Give test_vfio_user more RAM

When running with the newer jammy OS image error messages from Rust
Hypervisor Firmware about lack of ram when rebooting where observed.
Increase the RAM allocation to allow it to boot after a reboot.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>

show more ...


# b1547c4c 04-Oct-2024 Rob Bradford <rbradford@rivosinc.com>

tests: Update version of Jammy image in use

This version is generated with the new script and adds kexec-tools.

Fixes: #6726

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>


# 81db2f02 12-Oct-2024 Rob Bradford <rbradford@rivosinc.com>

tests: Update for new VFIO worker

Adjust the VFIO device path and the disk image based on the new VFIO CI
worker.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>


# 297236a7 30-Sep-2024 Ruoqing He <heruoqing@iscas.ac.cn>

misc: Eliminate use of `assert!((...).is_ok())`

Asserting on .is_ok()/.is_err() leads to hard to debug failures (as if
the test fails, it will only say "assertion failed: false". We replace
these wi

misc: Eliminate use of `assert!((...).is_ok())`

Asserting on .is_ok()/.is_err() leads to hard to debug failures (as if
the test fails, it will only say "assertion failed: false". We replace
these with `.unwrap()`, which also prints the exact error variant that
was unexpectedly encountered (we can to this these days thanks to
efforts to implement Display and Debug for our error types). If the
assert!((...).is_ok()) was followed by an .unwrap() anyway, we just drop
the assert.

Inspired by and quoted from @roypat.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>

show more ...


# 61e57e1c 29-Sep-2024 Ruoqing He <heruoqing@iscas.ac.cn>

misc: Further improve imports styling

By introducing `imports_granularity="Module"` format strategy,
effectively groups imports from the same module into one line or block,
improving maintainability

misc: Further improve imports styling

By introducing `imports_granularity="Module"` format strategy,
effectively groups imports from the same module into one line or block,
improving maintainability and readability.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>

show more ...


# 88a9f799 29-Sep-2024 Rob Bradford <rbradford@rivosinc.com>

misc: Adapt consistent import style formatting

Historically the Cloud Hypervisor coding style has been to ensure that
all imports are ordered and placed in a single group. Unfortunately
cargo fmt ha

misc: Adapt consistent import style formatting

Historically the Cloud Hypervisor coding style has been to ensure that
all imports are ordered and placed in a single group. Unfortunately
cargo fmt has no support for ensuring that all imports are in a single
group so if whitespace lines were added as part of the import statements
then they would only be odered correctly in the group.

By adopting "group_imports="StdExternalCrate" we can enforce a style
where imports are placed in at most three groups for std, external
crates and the crate itself. Choosing a style enforceable by the tooling
reduces the reviewer burden.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>

show more ...


# be5fc769 20-Sep-2024 Bo Chen <chen.bo@intel.com>

tests: Relax rate limit check for group rate limiter

The rate-limiter worker now is running on Azure VMs whose performance
are more prone to be fluctuate, particularly on block performances. This
co

tests: Relax rate limit check for group rate limiter

The rate-limiter worker now is running on Azure VMs whose performance
are more prone to be fluctuate, particularly on block performances. This
commit relaxes the limit check for group rate limiter tests to make them
less flaky.

Signed-off-by: Bo Chen <chen.bo@intel.com>

show more ...


# b9f086bc 30-Jul-2024 Praveen K Paladugu <prapal@linux.microsoft.com>

tests: drop landlock parameter while starting dest

After moving landlock config to VMConfig, there is no need to start
destination VM with landlock cmdline options in
test_live_migration_with_landlo

tests: drop landlock parameter while starting dest

After moving landlock config to VMConfig, there is no need to start
destination VM with landlock cmdline options in
test_live_migration_with_landlock test.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>

show more ...


# 8452edfc 12-Jun-2024 Praveen K Paladugu <prapal@linux.microsoft.com>

tests: Test live migration with Landlock

Add a test case to check Live Migration with Landlock support.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>


# 466cc5e0 11-Jun-2024 Praveen K Paladugu <prapal@linux.microsoft.com>

tests: Add disk_hotplug test with Landlock

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>


# 034c674c 11-Jun-2024 Praveen K Paladugu <prapal@linux.microsoft.com>

tests: Add a basic Landlock test

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>


12345678910>>...23