Rob Bradford
e9b2639757
build: Release v40.0
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-06-21 08:40:44 +00:00
dependabot[bot]
98d0aabb99
build: Bump clap from 4.5.4 to 4.5.7 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.4 to 4.5.7.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.4...v4.5.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-20 00:36:09 +00:00
dependabot[bot]
d206586683
build: Bump crossbeam-utils from 0.8.19 to 0.8.20
...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) from 0.8.19 to 0.8.20.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.19...crossbeam-utils-0.8.20 )
---
updated-dependencies:
- dependency-name: crossbeam-utils
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-19 00:32:27 +00:00
dependabot[bot]
19f2800d9e
build: Bump clap_lex from 0.7.0 to 0.7.1 in /fuzz
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.7.0...clap_lex-v0.7.1 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-19 00:09:29 +00:00
Rob Bradford
08cf983d42
build: Fix Cargo.toml formatting
...
In 42e9632c53 a fix was made to address a
typo in the taplo configuration file. Fixing this typo indicated that
many Cargo.toml files were no longer adhering to the formatting rules.
Fix the formatting by running `taplo fmt`.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-06-18 16:19:12 +00:00
dependabot[bot]
243dc5918c
build: Bump regex-automata from 0.4.6 to 0.4.7
...
Bumps [regex-automata](https://github.com/rust-lang/regex ) from 0.4.6 to 0.4.7.
- [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/regex-automata-0.4.6...regex-automata-0.4.7 )
---
updated-dependencies:
- dependency-name: regex-automata
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-18 14:26:39 +00:00
Songqian Li
544de7d000
tests: send SIGTERM to kill GuestCommand
...
Killing CLH by SIGKILL will cause inaccurate code coverage
information. This patch changes the signal to SIGTERM.
Fixes : #6507
Signed-off-by: Songqian Li <sionli@tencent.com >
2024-06-18 08:03:09 +00:00
dependabot[bot]
796db588ea
build: Bump serde from 1.0.202 to 1.0.203 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.202 to 1.0.203.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.202...v1.0.203 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-17 23:59:43 +00:00
dependabot[bot]
397c76dd20
build: Bump cc from 1.0.97 to 1.0.99
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.97 to 1.0.99.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.97...1.0.99 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-15 08:23:35 +00:00
Bo Chen
cdd3ff5e5a
virtio-devices: vdpa: Don't restore on paused state
...
Since vdpa device does not support pause/resume [1], it does not make
sense to restore on paused state.
[1] 099cdd2af8
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-06-15 07:32:58 +00:00
Bo Chen
6cb76abbf1
virtio-devices: vdpa: Don't error out on resume if not paused
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-06-15 07:32:58 +00:00
dependabot[bot]
3a5e5364b9
build: Bump cc from 1.0.98 to 1.0.99 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.98...1.0.99 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-15 00:37:02 +00:00
dependabot[bot]
f2b2d033f7
build: Bump colorchoice from 1.0.0 to 1.0.1 in /fuzz
...
Bumps [colorchoice](https://github.com/rust-cli/anstyle ) from 1.0.0 to 1.0.1.
- [Commits](https://github.com/rust-cli/anstyle/compare/colorchoice-v1.0.0...colorchoice-v1.0.1 )
---
updated-dependencies:
- dependency-name: colorchoice
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-14 00:52:33 +00:00
dependabot[bot]
c41461c9c2
build: Bump getrandom from 0.2.13 to 0.2.14
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.13 to 0.2.14.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.13...v0.2.14 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-13 23:55:04 +00:00
Yu Li
9257322330
block: qcow: add unit test for max nesting depth
...
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2024-06-13 01:42:11 +00:00
Yu Li
220455caaf
block: qcow: limit max nesting depth for backing file
...
Impose a limit on the maximum nesting of file formats that can open more
files. For example, a qcow2 file can have a backing file, which could be
another qcow2 file with a backing file (or even the same file as the
original), potentially causing unbounded recursion.
This commit is based on crosvm implementation:
eb1640e301
Fixes : #6472
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2024-06-13 01:42:11 +00:00
dependabot[bot]
c206c14318
build: Bump anstyle-query from 1.0.2 to 1.1.0 in /fuzz
...
Bumps [anstyle-query](https://github.com/rust-cli/anstyle ) from 1.0.2 to 1.1.0.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-query-v1.0.2...anstyle-query-v1.1.0 )
---
updated-dependencies:
- dependency-name: anstyle-query
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-13 00:31:02 +00:00
dependabot[bot]
777757254b
build: Bump async-io from 2.3.2 to 2.3.3
...
Bumps [async-io](https://github.com/smol-rs/async-io ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/smol-rs/async-io/releases )
- [Changelog](https://github.com/smol-rs/async-io/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-io/compare/v2.3.2...v2.3.3 )
---
updated-dependencies:
- dependency-name: async-io
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-13 00:22:10 +00:00
Wei Liu
9c42d98e6a
devices: move LocalTime to test module
...
It is only used there.
Drop all its doc strings and pub annotations.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-06-12 16:59:20 +00:00
Wei Liu
254db7b96a
vmm: fix documentation formatting
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-06-12 16:59:20 +00:00
Wei Liu
b3a73d6634
virtio-devices: fix documentation formatting
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-06-12 16:59:20 +00:00
Wei Liu
9cd214b0a1
rate_limiter: fix documentation indentation
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-06-12 16:59:20 +00:00
Praveen K Paladugu
9f969ee18d
vmm: Use cloned fd to check if dev is a tty
...
While checking if the console device is a tty use the cloned fd instead
of libc::STDOUT_FILENO.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
c3fcddf830
vmm: Fix console dev handling in live migration
...
Console devices are created after vm_config is received and the created
devices are passed Vm during vm_receive_state.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
11d98fccac
vmm: fix a typo in ioctl name
...
Rename TIOCGTPEER ioctl to it proper name:TIOCGPTPEER.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
a8fa2af64b
vmm: dup serial fds to preserve them across reboots
...
During vm_shutdown or vm_snapshot, all the console devices will be
closed. When this happens stdout (FD #2 ) will also be closed as the
console device using these FD is closed. If the VM were to be started
later, FD#2 can be assigned to a different file. But
pre_create_console_devices looks for FD#2 while opening tty device,
which could point to any file.
To avoid this problem, the STDOUT FD is duplicated when being
assigned to a console device. Even if the console devices were to be
closed, the duplicated FD will be closed and FD#2 will continue to
point to STDOUT.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
dc723171a7
vmm: cleanup legacy console device management
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
52eebaf6b2
vmm: refactor DeviceManager to use console_info
...
While adding console devices, DeviceManager will now use the FDs in
console_info instead of creating them.
To reduce the size of this commit, I marked some variables are unused
with '_' prefix. All those variables are cleaned up in next commit.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
380ba564f4
vmm: populate console_info during vm actions
...
Use pre_create_console_devices method to create and populate console
device FDs into console_info in Vmm Object.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
385f9a9aa9
vmm: save console_resize_pipe info to Vmm
...
With this change all the information to manage console devices is now
available within Vmm Object.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
d784bf0c75
vmm: move listen_for_sigwinch_on_tty method
...
Move listen_for_sigwinch_on_tty to sigwinch_listener.rs module.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
Praveen K Paladugu
cf6115a73c
vmm: Introduce console_devices module
...
Introduce ConsoleInfo struct. This struct will be used to store FDs of
console devices created in pre_create_console_devices and passed to
vm_boot.
Move set_raw_mode, create_pty methods to console_devices.rs to
consolidate console management methods into a single module.
Lastly, copy the logic to create and configure console devices into
pre_create_console_devices method.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-06-12 15:47:19 +00:00
dependabot[bot]
0991b881de
build: Bump syn from 2.0.64 to 2.0.66 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.64 to 2.0.66.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.64...2.0.66 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-12 00:40:31 +00:00
dependabot[bot]
e048da6f73
build: Bump blocking from 1.5.1 to 1.6.1
...
Bumps [blocking](https://github.com/smol-rs/blocking ) from 1.5.1 to 1.6.1.
- [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.5.1...v1.6.1 )
---
updated-dependencies:
- dependency-name: blocking
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-12 00:32:18 +00:00
dependabot[bot]
6a08133efb
build: Bump darling from 0.20.8 to 0.20.9
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.8 to 0.20.9.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/commits )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-11 00:20:03 +00:00
Sean Banko
2e50f5769f
arch: x86_64: fall back to host cpuid l1 cache info if omitted by kvm
...
If the KVM version is older than v6.6, KVM_GET_SUPPORTED_CPUID will omit
the L1 cache information in CPUID function 0x8000_0005. Fall back to
the host L1 cache information if it is omitted by KVM.
Signed-off-by: Sean Banko <sbanko@crusoe.ai >
2024-06-09 07:37:17 +00:00
Josh Soref
42e9632c53
misc: Fix spelling issues
...
Misspellings were identified by:
https://github.com/marketplace/actions/check-spelling
* Initial corrections based on forbidden patterns from the action
* Additional corrections by Google Chrome auto-suggest
* Some manual corrections
* Adding markdown bullets to readme credits section
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-06-08 16:31:30 +00:00
dependabot[bot]
46c5fb5f2c
build: Bump fastrand from 2.0.2 to 2.1.0
...
Bumps [fastrand](https://github.com/smol-rs/fastrand ) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/smol-rs/fastrand/releases )
- [Changelog](https://github.com/smol-rs/fastrand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/fastrand/compare/v2.0.2...v2.1.0 )
---
updated-dependencies:
- dependency-name: fastrand
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-08 00:15:59 +00:00
dependabot[bot]
81b41b55fd
build: Bump rustix from 0.38.32 to 0.38.34
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.32 to 0.38.34.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.32...v0.38.34 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-07 00:13:21 +00:00
dependabot[bot]
112a971c56
build: Bump rustc-demangle from 0.1.23 to 0.1.24
...
Bumps [rustc-demangle](https://github.com/rust-lang/rustc-demangle ) from 0.1.23 to 0.1.24.
- [Commits](https://github.com/rust-lang/rustc-demangle/compare/0.1.23...0.1.24 )
---
updated-dependencies:
- dependency-name: rustc-demangle
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-06 00:32:52 +00:00
Jinank Jain
9b87a7e699
misc: Update description in Cargo.toml to include MSHV
...
Since CloudHypervisor also supports running on top of Microsoft
Hypervisor (MSHV).
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-06-05 08:01:00 +00:00
Wei Liu
1bd8afeffa
docs: remove executable permission from releases.md
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-06-04 16:13:53 -07:00
Jinank Jain
3414586995
arch: Change the default topology for x86 guests
...
Currently by default each core is allocated it's own socket. Basically
it is n socket 1 core 1 thread/core kind of a structure as witnessed
from within the guest.
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 8
NUMA node(s): 1
This is not a good default topology because resources are distributed
across multiple sockets. For example, a Linux guest with multi socket
configuration will have to calibrate TSC per socket due to which it
might observe a higher amount of boot time than usual.
A better idea for default topology would be 1 socket n core 1
thread/core which ensure better resource locality.
After this change topology would change to:
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
NUMA node(s): 1
Fixes : #6497
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-06-04 17:08:18 +00:00
Muminul Islam
06e8d1c40c
hypervisor: mshv: fix topology for Intel HW on MSHV
...
Populating these cpuid with default values so that
CLH can patch with topology information. Otherwise it gets
skipped while setting some topology information.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-06-04 04:57:34 +00:00
dependabot[bot]
b70b8dfa4c
build: Bump zvariant from 4.0.2 to 4.1.1
...
Bumps [zvariant](https://github.com/dbus2/zbus ) from 4.0.2 to 4.1.1.
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zvariant-4.0.2...zvariant-4.1.1 )
---
updated-dependencies:
- dependency-name: zvariant
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-04 00:40:46 +00:00
dependabot[bot]
57e450a7a8
build: Bump anstream from 0.6.13 to 0.6.14 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.13 to 0.6.14.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.13...anstream-v0.6.14 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-04 00:34:22 +00:00
dependabot[bot]
d82846c954
build: Bump range_map_vec from 0.1.0 to 0.2.0
...
Bumps [range_map_vec](https://github.com/microsoft/range_map_vec ) from 0.1.0 to 0.2.0.
- [Commits](https://github.com/microsoft/range_map_vec/compare/v0.1.0...v0.2.0 )
---
updated-dependencies:
- dependency-name: range_map_vec
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-01 00:53:03 +00:00
dependabot[bot]
714b61846c
build: Bump crc-any from 2.4.4 to 2.5.0 in /fuzz
...
Bumps [crc-any](https://github.com/magiclen/crc-any ) from 2.4.4 to 2.5.0.
- [Commits](https://github.com/magiclen/crc-any/compare/v2.4.4...v2.5.0 )
---
updated-dependencies:
- dependency-name: crc-any
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-31 23:52:57 +00:00
Wei Liu
6bb3ad1b96
build: update IGVM crates
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-31 20:16:37 +00:00
dependabot[bot]
dd820d69ba
build: Bump anstyle from 1.0.6 to 1.0.7 in /fuzz
...
Bumps [anstyle](https://github.com/rust-cli/anstyle ) from 1.0.6 to 1.0.7.
- [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.6...v1.0.7 )
---
updated-dependencies:
- dependency-name: anstyle
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-31 00:22:03 +00:00
Songqian Li
77c80f67ed
tests: add snapshot_restore_pvpanic test
...
Add test_snapshot_restore_pvpanic to integration tests since pvpanic
already supports snapshot.
Signed-off-by: Songqian Li <sionli@tencent.com >
2024-05-30 17:07:12 +00:00
Rob Bradford
eb4dd90532
arch: x86_64: Avoid calling cpuid for setting LAPIC ID
...
Rather than calling cpuid and then updating the APIC ID field - use the
existing common CPUID data which already includes CPUID data for eax=1
(aka function = 1). This removes the need to call cpuid per vCPU thread
created. This has a positive impact on boot time with multiple vCPUs as
the cpuid instruction is serialising.
Fixes : #5646
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-30 17:03:03 +00:00
dependabot[bot]
d3cd25566b
build: Bump zerocopy from 0.7.32 to 0.7.34 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.32 to 0.7.34.
- [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.7.32...v0.7.34 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-30 00:34:05 +00:00
dependabot[bot]
925ab090af
build: Bump getrandom from 0.2.14 to 0.2.15 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.14 to 0.2.15.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.14...v0.2.15 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-29 08:39:37 +00:00
Wei Liu
8caf29ec01
build: drop an invalid dependency in fuzz
...
The cloud-hypervisor package does not have a lib target, so it is
invalid. Cargo just ignores that line.
Dropping it removes a warning.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-29 09:35:32 +01:00
Alexandru Matei
091ce85473
main: update expand_fdtable comment
...
Updated the comment so it is sync with the code
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com >
2024-05-28 14:50:40 +01:00
dependabot[bot]
133ac463c2
build: Bump serde_json from 1.0.115 to 1.0.117 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.115 to 1.0.117.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.115...v1.0.117 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-27 23:50:51 +00:00
Wei Liu
400837ff99
vmm: wrap a new fd in UnixListener in serial manager
...
The original code gave an owned fd to UnixListener. That made the same
fd wrapped into two owned files.
When the files were dropped, the same fd would be closed more than once.
A newly introduced check in Rust's stdlib caught that error.
A newly cloned fd should be given to UnixListener.
Fixes : #6485
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-27 19:24:28 +00:00
Wei Liu
a9e41c417a
vmm: add a check to avoid wrapping -1 into an owned file
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-27 19:24:28 +00:00
Wei Liu
1845e63e7c
devices: make IOAPIC log a bit more useful
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-27 19:24:28 +00:00
Alexandru Matei
f13d8f1412
main: fix high latency generated by file handle creation
...
Whenever the file descriptor table is full, Linux expands it by doubling
it's size.
The filesystem code that does this uses RCU synchronization to ensure
all pre-existing RCU read-side critical sections have completed. The
latency induced by this synchronization is a big part of the total time
required to restore a snapshot.
The kernel has an optimization in code, where it doesn't call
synchronize_rcu() if there is only one thread in the process. We can
take advantage of this optimization by expanding the descriptor table at
the application start, when it has only one thread.
This commit tries to expand the table to 4096 entries, this way we avoid
any expansion that could take place later.
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com >
2024-05-25 01:09:10 +00:00
dependabot[bot]
bfe0106566
build: Bump proc-macro2 from 1.0.81 to 1.0.83 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.81 to 1.0.83.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.81...1.0.83 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-24 23:57:13 +00:00
dependabot[bot]
7c46e610e7
build: Bump linux-raw-sys from 0.4.13 to 0.4.14
...
Bumps [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys ) from 0.4.13 to 0.4.14.
- [Commits](https://github.com/sunfishcode/linux-raw-sys/compare/v0.4.13...v0.4.14 )
---
updated-dependencies:
- dependency-name: linux-raw-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-24 00:10:07 +00:00
dependabot[bot]
b13de200f5
build: Bump io-uring from 0.6.3 to 0.6.4 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.6.3 to 0.6.4.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-23 23:58:38 +00:00
SamrutGadde
c3d69a9bac
api_client: Updated error message for sending fds
...
Updated error message for the SocketSendFds error to be more
descriptive.
Signed-off-by: SamrutGadde <samrut.gadde@gmail.com >
2024-05-23 20:54:36 +00:00
SamrutGadde
51a9f78625
hypervisor: aarch64: Use thiserror for errors
...
Updated error enums in hypervisor under aarch64 to use thiserror crate
Signed-off-by: SamrutGadde <samrut.gadde@gmail.com >
2024-05-23 20:54:36 +00:00
SamrutGadde
89b429c768
devices: Use thiserror for errors
...
Updated error enums in device package to use thiserror crate
Signed-off-by: SamrutGadde <samrut.gadde@gmail.com >
2024-05-23 20:54:36 +00:00
SamrutGadde
f25315d151
block: qcow: Use thiserror for errors
...
Added thiserror for missing files in the qcow module.
Signed-off-by: SamrutGadde <samrut.gadde@gmail.com >
2024-05-23 20:54:36 +00:00
SamrutGadde
193c006669
arch: Use thiserror for errors
...
Added thiserror crate for missing files in the arch package
Signed-off-by: SamrutGadde <samrut.gadde@gmail.com >
2024-05-23 20:54:36 +00:00
SamrutGadde
5d0d56f50b
api_client: Use thiserror for errors
...
Added thiserror crate for Error enums to the api_client package
Signed-off-by: SamrutGadde <samrut.gadde@gmail.com >
2024-05-23 20:54:36 +00:00
Nuno Das Neves
30b6e412af
hypervisor: mshv: Pin mshv crates to release tag v0.2.0
...
And bump vfio commit in Cargo.lock to align, since it should also point
to mshv v0.2.0.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-05-23 17:37:49 +00:00
Jinank Jain
6c90623c8e
hypervisor: mshv: Only perform SNP operation for x86 partition
...
SEV-SNP partitions are only supported on x86 architecture.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-05-23 15:18:00 +00:00
Jinank Jain
94fe22da62
hypervisor: mshv: Only set unimplemented MSR for x86 partition
...
This partition property is only supported for x86 partition. Thus,
reduce the scope of it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-05-23 15:18:00 +00:00
Omer Faruk Bayram
036e7e3797
vmm: ch-remote: replace deprecated zbus macros with new equivalents
...
Fixes deprecation related warnings introduced in #6400 .
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2024-05-23 12:20:06 +00:00
dependabot[bot]
5a811af099
build: Bump lock_api from 0.4.11 to 0.4.12 in /fuzz
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.11 to 0.4.12.
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.11...lock_api-0.4.12 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-23 00:46:31 +00:00
dependabot[bot]
7ac2e56fa6
build: Bump ryu from 1.0.17 to 1.0.18
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.17...1.0.18 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-22 23:47:28 +00:00
dependabot[bot]
eb8f959361
build: Bump zbus from 3.15.2 to 4.1.2
...
Bumps [zbus](https://github.com/dbus2/zbus ) from 3.15.2 to 4.1.2.
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zbus-3.15.2...zbus-4.1.2 )
---
updated-dependencies:
- dependency-name: zbus
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-22 15:51:56 +00:00
dependabot[bot]
27fd114cbf
---
...
updated-dependencies:
- dependency-name: num-traits
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-22 12:16:40 +00:00
dependabot[bot]
ba488f5c33
---
...
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-22 00:22:23 +00:00
Jinank Jain
af1f94e5b8
hypervisor: mshv: Reduce the scope of VMEXITs to x86_64
...
Certain VMEXITs can only happen for x86 guests, thus reduce the scope to
x86_64 at the compilation stage.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-05-21 16:16:29 +00:00
dependabot[bot]
22621df084
---
...
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-21 00:06:51 +00:00
dependabot[bot]
972b4bf248
---
...
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-20 23:55:32 +00:00
dependabot[bot]
f4aa3de335
build: Bump syn from 2.0.60 to 2.0.64 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.60 to 2.0.64.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.60...2.0.64 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-18 07:08:39 +00:00
dependabot[bot]
b2d25a582d
build: Bump waker-fn from 1.1.1 to 1.2.0
...
Bumps [waker-fn](https://github.com/smol-rs/waker-fn ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/smol-rs/waker-fn/releases )
- [Changelog](https://github.com/smol-rs/waker-fn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/waker-fn/compare/v1.1.1...v1.2.0 )
---
updated-dependencies:
- dependency-name: waker-fn
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-17 23:46:56 +00:00
dependabot[bot]
a3262ad570
build: Bump async-signal from 0.2.5 to 0.2.6
...
Bumps [async-signal](https://github.com/smol-rs/async-signal ) from 0.2.5 to 0.2.6.
- [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.5...v0.2.6 )
---
updated-dependencies:
- dependency-name: async-signal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-17 06:59:03 +00:00
dependabot[bot]
034283fc83
build: Bump remain from 0.2.13 to 0.2.14 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.13 to 0.2.14.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.13...0.2.14 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-17 00:30:09 +00:00
Muminul Islam
860939d677
vmm: pause/resume VM during the VM events
...
For MSHV we always create frozen partition, so we
resume the VM during boot. Also during pause and resume
VM events we call hypervisor specific API.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-05-16 14:17:07 +00:00
Muminul Islam
a5a41bf797
hypervisor: always create a frozen partition
...
Create a partition frozen always, then unfreeze the partition
during boot phase or resume phase. We also freeze the
partition during pause event. Time is freeze during the
time between freeze and unfreeze.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-05-16 14:17:07 +00:00
Muminul Islam
aabfc9513e
hypervisor: implement pause/resume API for MSHV
...
Implementing pause/Resume API for MSHV.
Here we set/reset the partition property(TIME_FREEZE)
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-05-16 14:17:07 +00:00
Muminul Islam
3fe9b87736
hypervisor: Add pause/resume definitions to VM trait
...
Add Pause/Resume functions for VM trait. For KVM it
will be empty implementations. For MSHV it needs to freeze
and unfreeze the partition.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-05-16 14:17:07 +00:00
dependabot[bot]
9e338d86f5
build: Bump serde from 1.0.201 to 1.0.202 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.201 to 1.0.202.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.201...v1.0.202 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-16 00:12:16 +00:00
dependabot[bot]
5f9c6bc84f
build: Bump autocfg from 1.2.0 to 1.3.0
...
Bumps [autocfg](https://github.com/cuviper/autocfg ) from 1.2.0 to 1.3.0.
- [Commits](https://github.com/cuviper/autocfg/compare/1.2.0...1.3.0 )
---
updated-dependencies:
- dependency-name: autocfg
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-15 23:52:04 +00:00
Songqian Li
de38e4b777
tests: restart systemd daemon to reload systemd configuration
...
Currently, the watchdog configuration in systemd is reloaded by
reboot. We can cancel this reboot operation by restarting the
systemd daemon process.
Signed-off-by: Songqian Li <sionli@tencent.com >
2024-05-15 11:17:42 +00:00
dependabot[bot]
6c4947e9ba
build: Bump anstyle-wincon from 3.0.2 to 3.0.3
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 3.0.2 to 3.0.3.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.2...anstyle-wincon-v3.0.3 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-15 00:08:08 +00:00
dependabot[bot]
63df8599dc
build: Bump serde from 1.0.198 to 1.0.201 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.198 to 1.0.201.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.198...v1.0.201 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-14 23:59:46 +00:00
Rob Bradford
b6003cb428
build: Use correct MSRV version for release workflow
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-14 14:45:10 +00:00
dependabot[bot]
340a51d08e
build: Bump ryu from 1.0.17 to 1.0.18 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.17...1.0.18 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-14 11:50:39 +00:00
dependabot[bot]
507a03e7ee
build: Bump cc from 1.0.95 to 1.0.97
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.95 to 1.0.97.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.95...1.0.97 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-14 11:23:25 +00:00
Purna Pavan Chandra
fe86f90ba6
tests: add back tests_snapshot_restore* but to common_sequential
...
tests_snapshot_restore* have been earlier removed from common_parallel
due to the falkiness they add testsuite. Running them sequentially would
eliminate the flakiness. Hence, add the tests back to testsuite but into
common_sequential module.
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-05-14 10:52:46 +00:00
Purna Pavan Chandra
3769b18a70
tests: remove test_snapshot_restore* tests from common_parallel
...
test_snapshot_restore_* tests often have transient failures and add to
overall flakiness of the integration testsuite. Hence, remove them from
common_parallel. However, these tests need to be added back to
common_sequential
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-05-14 10:52:46 +00:00
Purna Pavan Chandra
6d74393833
tests: Add test_snapshot_restore_with_fd to integration tests
...
VM is created with FDs explicitly passed to CH via --net parameter
and snapshotted. New net FDs are passed in turn during restore.
Boilerplate code from _test_snapshot_restore().
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-05-14 10:52:46 +00:00
Purna Pavan Chandra
26670e4778
docs: Update snapshot/restore documentation
...
Add a section about restoring VM with new Net FDs explicitly passed to
ch-remote via 'net_fds' parameter
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-05-14 10:52:46 +00:00
Purna Pavan Chandra
555c4c41ab
ch-remote: allow fds to be sent along with 'restore'
...
Enable restore command the ability to send file descriptors along with
HTTP request. This is useful when restoring a VM with explicit FDs
passed to NetConfig(s).
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-05-14 10:52:46 +00:00
Purna Pavan Chandra
b82f25572b
vmm: http_endpoint: Change PutHandler for VmRestore
...
Consume FDs passed via SCM_RIGHTs to VmRestore API and assign them
appropriately to RestoredNetConfig's fds field.
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-05-14 10:52:46 +00:00
Purna Pavan Chandra
584784a0f8
vmm: Support passing Net FDs to Restore
...
'NetConfig' FDs, when explicitly passed via SCM_RIGHTS during VM
creation, are marked as invalid during snapshot. See: #6332 .
So, Restore should support input for the new net FDs. This patch adds
new field 'net_fds' to 'RestoreConfig'. The FDs passed using this new
field are replaced into the 'fds' field of NetConfig appropriately.
The 'validate()' function ensures all net devices from 'VmConfig' backed
by FDs have a corresponding 'RestoreNetConfig' with a matched 'id' and
expected number of FDs.
The unit tests provide different inputs to parse and validate functions
to make sure parsing and error handling is as per expectation.
Fixes #6286
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
Co-authored-by: Bo Chen <chen.bo@intel.com >
2024-05-14 10:52:46 +00:00
Yi Wang
4fd5070f5d
ch-remote: fix help of remove-device
...
remove-device can remove not only VFIO device but also pci device.
No functional change.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-05-09 14:34:30 +00:00
Wei Liu
241d1d5cdb
hypervisor: kvm: add missing capability requirements
...
The list is gathered from going through various code paths in the code
base.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-09 06:50:57 +00:00
Wei Liu
c07671edb4
hypervisor: kvm: introduce a check_extension macro
...
That reduces code repetition.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-09 06:50:57 +00:00
Wei Liu
8093820965
hypervisor: kvm: sort the required capabilities
...
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-09 06:50:57 +00:00
Wei Liu
86cf50565e
hypervisor: kvm: drop the check for Cap::SignalMsi
...
Per the KVM API document, that capability is only valid with in-kernel
irqchip that handles MSIs.
Through out the code base, there is no call to KVM_IOCTL_SIGNAL_MSI.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-05-09 06:50:57 +00:00
Rob Bradford
95fd684ad7
pci: Remove extra whitespace line from Cargo.toml
...
This was preventing the Cargo.toml formatter (taplo) from correctly
alphabetically ordering.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 21:46:13 +00:00
Rob Bradford
ce8e76cf94
build: Add GitHub action to run taplo for Cargo.toml formatting
...
Check that the Cargo.toml files meet the formatting requirements.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 21:46:13 +00:00
Rob Bradford
3f8cd52ffd
build: Format Cargo.toml files using taplo
...
Run the taplo formatter with the newly added configuration file
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 21:46:13 +00:00
Rob Bradford
f9d3c73c15
build: Add taplo configuration file for Cargo.toml files
...
This configuration enforces the alphebetical ordering of arrays and keys
in the Cargo.toml files.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 21:46:13 +00:00
Rob Bradford
7e25cc2aa0
build: Add "fuzzing" as a valid cfg(..) attribute
...
The compiler is now able to warn if an invalid attribute (e.g like a
feature) is not available.
See https://blog.rust-lang.org/2024/05/06/check-cfg.html for more
details.
Add build.rs files in the crates that use #cfg(fuzzing) to add fuzzing
to the list of valid cfg attributes.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 08:10:28 +00:00
Rob Bradford
8b86c7724b
build: Bump MSRV to 1.77.0
...
The ability to control the rustc flags (required for adding new
attributes to the allowed list of #[cfg(..)]) requires bumping the MSRV
to 1.77.0
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 08:10:28 +00:00
Rob Bradford
ea23c16c5a
build: Expose and use "sev_snp" feature on virtio-devices
...
Code in this crate is conditional on this feature so it necessary to
expose as a new feature and use that feature as a dependency when the
feature is enabled on the vmm crate.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 08:10:28 +00:00
Rob Bradford
3def18f502
fuzz: Fix use of "guest_debug" conditional code
...
Enable the use of the vmm crate with the "guest_debug" feature and make
the code that exercises that in the fuzzer unconditional on
"guest_debug" as a feature (as that is not specified as a feature in the
fuzz workspace itself.)
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 08:10:28 +00:00
Rob Bradford
2bf6f9300a
hypervisor: Remove derivations conditional on non-existant feature
...
The "with-serde" feature does not exist so these [#derive(..)]
statements are never compiled in.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 08:10:28 +00:00
Rob Bradford
fd43b79f96
build: Correctly enable dhat support in vmm crate
...
The "dhat-heap" feature needs to be enabled inside the vmm crate as a
depenency from the top-level as there is build time check for that
feature inside the vmm crate.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-08 08:10:28 +00:00
dependabot[bot]
a70808bae9
build: Bump thiserror from 1.0.58 to 1.0.60
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.58 to 1.0.60.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.58...1.0.60 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-08 00:08:24 +00:00
dependabot[bot]
97d617f071
build: Bump windows-targets from 0.52.4 to 0.52.5 in /fuzz
...
Bumps [windows-targets](https://github.com/microsoft/windows-rs ) from 0.52.4 to 0.52.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows-targets
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-07 23:43:32 +00:00
dependabot[bot]
0194a635f7
build: Bump libc from 0.2.153 to 0.2.154 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.153 to 0.2.154.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.153...0.2.154 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-07 00:15:23 +00:00
dependabot[bot]
e5d0acf0a9
build: Bump concurrent-queue from 2.4.0 to 2.5.0
...
Bumps [concurrent-queue](https://github.com/smol-rs/concurrent-queue ) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/smol-rs/concurrent-queue/releases )
- [Changelog](https://github.com/smol-rs/concurrent-queue/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/concurrent-queue/compare/v2.4.0...v2.5.0 )
---
updated-dependencies:
- dependency-name: concurrent-queue
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-06 23:52:00 +00:00
Rob Bradford
622a1a3735
tests: Serialise the live migration/upgrade NUMA/balloon tests
...
These tests use relatively large memory allocations and if they are
allowed to run in parallel can result in the container encountering an
OOM situation.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-04 10:06:04 +00:00
Rob Bradford
f5abb168e3
tests: Re-enable live upgrade tests
...
And bump release verion used to v39.0
Fixes : #6134
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-04 10:06:04 +00:00
dependabot[bot]
1e3ef1a548
build: Bump async-recursion from 1.1.0 to 1.1.1
...
Bumps [async-recursion](https://github.com/dcchut/async-recursion ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/dcchut/async-recursion/releases )
- [Commits](https://github.com/dcchut/async-recursion/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: async-recursion
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-04 00:05:22 +00:00
dependabot[bot]
275a63655b
build: Bump autocfg from 1.2.0 to 1.3.0 in /fuzz
...
Bumps [autocfg](https://github.com/cuviper/autocfg ) from 1.2.0 to 1.3.0.
- [Commits](https://github.com/cuviper/autocfg/commits )
---
updated-dependencies:
- dependency-name: autocfg
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-03 23:48:51 +00:00
dependabot[bot]
16651db712
build: Bump anstyle-wincon from 3.0.2 to 3.0.3 in /fuzz
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 3.0.2 to 3.0.3.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.2...anstyle-wincon-v3.0.3 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-03 08:21:38 +00:00
dependabot[bot]
d03e43facc
build: Bump async-task from 4.7.0 to 4.7.1
...
Bumps [async-task](https://github.com/smol-rs/async-task ) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/smol-rs/async-task/releases )
- [Changelog](https://github.com/smol-rs/async-task/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-task/compare/v4.7.0...v4.7.1 )
---
updated-dependencies:
- dependency-name: async-task
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-02 23:42:46 +00:00
dependabot[bot]
c2ed82f3af
build: Bump vfio-ioctls from da8c5b6 to df7de6b
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `da8c5b6` to `df7de6b`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](da8c5b6709...df7de6b256 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-02 00:31:05 +00:00
dependabot[bot]
5fc71dec34
build: Bump syn from 2.0.58 to 2.0.60 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.58 to 2.0.60.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.58...2.0.60 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-02 00:14:18 +00:00
Rob Bradford
d10f20eb71
build: Bump vhost-user-backend, vhost, and virtio-queue
...
Update the vhost-user-backend crate version used along with related
crates (vhost and virtio-queue.) This requires minor changes to the
types used for the memory in the backends with the use of the
BitmapMmapRegion type for the Bitmap implementation.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-01 18:29:36 +00:00
Rob Bradford
6c0dedd560
block: Replace specific bitmap implementation with trait
...
Replace the specific Bitmap implementation from the type signature used
for functions that take memory. This allows more flexibility when using
these functions in particular when these functions are used by the
vhost-user-block backend. An updated vhost-user-backend crate requires
extra constraints on the Bitmap implementation used (it must support
BitmapReplace which AtomicBitmap does not.)
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-01 18:29:36 +00:00
Rob Bradford
b29edfbee8
net_util: Replace specific bitmap implementation with trait
...
Replace the specific Bitmap implementation from the type signature used
for functions that take memory. This allows more flexibility when using
these functions in particular when these functions are used by the
vhost-user-net backend. An updated vhost-user-backend crate requires
extra constraints on the Bitmap implementation used (it must support
BitmapReplace which AtomicBitmap does not.)
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-05-01 18:29:36 +00:00
Bo Chen
75e1dc2bce
vmm: openapi: Do not provide default values for required fields
...
This is to resolve the inconsistencies from our openapi specification,
as default values do not make sense for required fields.
Reported-by: James O. D. Hunt <james.o.hunt@intel.com >
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-05-01 17:31:36 +00:00
dependabot[bot]
6ba4f6de95
build: Bump serde_with from 3.8.0 to 3.8.1 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.8.0...v3.8.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-01 07:35:24 +00:00
Purna Pavan Chandra
de1f055481
tests: Reduce Guest memory in _test_snapshot_restore
...
Change from default 4G to 2G to reduce the memory usage. This will help
avoid "No disk space left" errors when all snapshot tests run at once.
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-04-30 07:36:59 +00:00
Purna Pavan Chandra
1a94c6c932
tests: clean up snapshot dir after restore
...
The snapshot_dir is not needed anymore fter the guest is restored.
Hence, remove it. This will potentially avoid transient failures caused
due to insufficient disk space.
Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com >
2024-04-30 07:36:59 +00:00
Wei Liu
1aeaee221d
devices: rtc_pl031: drop TimstampUs
...
It is not used anywhere in code.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
Wei Liu
862a056105
virtio-devices: vsock: fix two clippy warnings
...
The mem_size field is not needed in TestContext. Drop it.
Make sure guest_evvq is read once. Clippy cannot figured out that it was
used.
While at it, add an extra assert for the spurious rxvq event test, too.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
Wei Liu
fe704bd44a
arch: simplify MP table signature generation code
...
Clippy complained one use of the char_array macro.
Instead of fixing that use case, the observation is that the macro was
needed only because MP table types mixed c_char and c_uchar for no
particular reason.
Only use c_uchar in those types, and drop char_array.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
Wei Liu
f6cd3bd86d
block, pci, rate_limiter, vm-allocator: drop legacy numeric constants
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
Wei Liu
0816c8292f
pci: drop a useless check
...
The end_addr is a 64-bit value which cannot possibly be larger than
u64::max_value().
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
Wei Liu
319538fbed
block: annotate two transmute calls
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
Wei Liu
4f1e74b553
net_util: annotate a transmute call
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-30 07:32:08 +00:00
dependabot[bot]
24f8d15b14
build: Bump jobserver from 0.1.30 to 0.1.31 in /fuzz
...
Bumps [jobserver](https://github.com/rust-lang/jobserver-rs ) from 0.1.30 to 0.1.31.
- [Commits](https://github.com/rust-lang/jobserver-rs/commits )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-30 00:10:11 +00:00
Rob Bradford
f4b0443489
build: Mark release as draft when creating GitHub releases
...
The maintainer can then replace the plaintext body (derived from the
tag) with a markdown version and then publish.
As part of 6c4144e943 creating a draft
release was accidentally dropped.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-29 16:47:46 +00:00
Muminul Islam
030d84eb08
vmm: make clock data independent of hypervisor
...
As MSHV also implements set/get_clock data, this patch
removes the KVM feature guard and make it x86_64 only and
both for KVM and MSHV.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-29 16:46:26 +00:00
Muminul Islam
4847f5c4f6
hypervisor: implement clock data for MSHV
...
This PR implement time reference for Microsoft
Hypervisor based partition/VM.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-29 16:46:26 +00:00
Muminul Islam
bf6c9e6447
build: Update mshv crate commit in Cargo.lock
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-29 16:46:26 +00:00
Wei Liu
f6d99d9a9b
build: use released version of the IGVM crates
...
No functional change.
While at it, consolidate some of the IGVM related import directives.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-29 11:13:59 +00:00
Songqian Li
e38a69f0d2
net_util: import derive feature for serde
...
Import derive feature since `net_util` uses macro
`Serialize` and `Deserialize`.
Fixes : #6421
Signed-off-by: Songqian Li <sionli@tencent.com >
2024-04-29 11:13:05 +00:00
Rob Bradford
4f96fa15a8
build: Release v39.0
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-27 12:21:30 +00:00
dependabot[bot]
ed1f906d46
build: Bump serde_with from 3.7.0 to 3.8.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.7.0...v3.8.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-27 08:27:15 +00:00
Thomas Barrett
3b64b7723b
docs: add documentation for GPUDirect P2P
...
Signed-off-by: Thomas Barrett <tbarrett1200@icloud.com >
2024-04-27 07:47:40 +00:00
dependabot[bot]
6925750622
build: Bump cc from 1.0.92 to 1.0.95
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.92 to 1.0.95.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.92...1.0.95 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-26 23:35:31 +00:00
dependabot[bot]
26808bfb71
build: Bump serde from 1.0.197 to 1.0.198 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.197 to 1.0.198.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.197...v1.0.198 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-25 23:49:29 +00:00
Rob Bradford
b89657ea22
hypervisor, vmm: Don't re-export the contents of mshv_bindings::*
...
The contents of this crate may change and cause conflicts - re-exporting
the contents is unnecessary.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-25 20:53:53 +00:00
Rob Bradford
1ef2b488c7
build: Bump kvm-bindings and crates that depend on it
...
This removes the custom fork as the upstream version now has serde
support.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-25 20:53:53 +00:00
Rob Bradford
7be69edf51
hypervisor: kvm: Introduce Mutex around VcpuFd
...
This is required as the VcpuFd::run and VcpuFd::set_immediate_exit
methods now take a &mut self. I explored alternative solutions:
1. Using RefCell for runtime interior mutability - the Vcpu trait is
Sync and it's not possible to use RefCell with types that are Sync.
2. Using UnsafeCell - the mutable reference nature of ::run and and
::set_kvm_immediate_exit was added for a reason so it unwise to
bypass this.
3. Adjusting the trait interface to expose the &mut self - this requires
an Arc<Mutex<>> around the hypervisor::vcpu::Vcpu object and was very
intrusive.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-25 20:53:53 +00:00
Rob Bradford
c022063ae8
hypervisor: Remove unused VmExit enum members
...
The members for {Io, Mmio}{Read, Write} are unused as instead exits of
those types are handled through the VmOps interface. Removing these is
also a prerequisite due to changes in the mutability of the
VcpuFd::run() method.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-25 20:53:53 +00:00
dependabot[bot]
e6aa57e3b9
build: Bump signal-hook-registry from 1.4.1 to 1.4.2 in /fuzz
...
Bumps [signal-hook-registry](https://github.com/vorner/signal-hook ) from 1.4.1 to 1.4.2.
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/registry-v1.4.1...registry-v1.4.2 )
---
updated-dependencies:
- dependency-name: signal-hook-registry
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-25 00:32:55 +00:00
Muminul Islam
512591ba1c
hypervisor: rework VP state components
...
On Microsoft Hypervisor, we need to save/restore five
VP state components which are as follows:
1. Local APIC
2. Xsave
3. Synthetic Message Page
4. Synthetic Event Flags Page
5. Synthetic Timers
In the MSHV crate we created a single struct for all the
components and API to get/set the states.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-24 16:02:54 +00:00
Thomas Barrett
e7e856d8ac
vmm: add pci_segment mmio aperture configs
...
When using multiple PCI segments, the 32-bit and 64-bit mmio
aperture is split equally between each segment. Add an option
to configure the 'weight'. For example, a PCI segment with a
`mmio32_aperture_weight` of 2 will be allocated twice as much
32-bit mmio space as a normal PCI segment.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-04-24 09:35:19 +00:00
dependabot[bot]
a84bc06874
build: Bump proc-macro2 from 1.0.79 to 1.0.81 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.79 to 1.0.81.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.79...1.0.81 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-24 00:07:58 +00:00
Muminul Islam
a750e6ec15
vmm: Add filter entry for MSHV_GET_PARTITION_PROPERTY
...
Add seccomp rule for getting partition property on MSHV.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-23 08:31:10 +00:00
dependabot[bot]
82d275ccaa
build: Bump windows_x86_64_gnullvm from 0.52.4 to 0.52.5 in /fuzz
...
Bumps [windows_x86_64_gnullvm](https://github.com/microsoft/windows-rs ) from 0.52.4 to 0.52.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_x86_64_gnullvm
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-23 00:08:22 +00:00
Rob Bradford
10ab87d6a3
misc: Migrate away from versionize
...
Replace with serde instead.
Fixes : #6370
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-22 17:10:55 +00:00
dependabot[bot]
dad55fcef2
build: Bump windows_x86_64_msvc from 0.52.4 to 0.52.5 in /fuzz
...
Bumps [windows_x86_64_msvc](https://github.com/microsoft/windows-rs ) from 0.52.4 to 0.52.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_x86_64_msvc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-21 09:04:50 +00:00
Ruslan Mstoi
5e9886bba4
build: add REUSE Compliance Check
...
In accordance with reuse requirements:
- Place each license file in the LICENSES/ directory
- Add missing SPDX-License-Identifier to files.
- Add .reuse/dep5 to bulk-license files
Fixes : #5887
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-04-19 17:35:45 +00:00
dependabot[bot]
ce29afd0eb
build: Bump windows_i686_msvc from 0.52.4 to 0.52.5 in /fuzz
...
Bumps [windows_i686_msvc](https://github.com/microsoft/windows-rs ) from 0.52.4 to 0.52.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_i686_msvc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:19:22 +00:00
dependabot[bot]
493178c972
build: Bump jobserver from 0.1.28 to 0.1.30 in /fuzz
...
Bumps [jobserver](https://github.com/rust-lang/jobserver-rs ) from 0.1.28 to 0.1.30.
- [Commits](https://github.com/rust-lang/jobserver-rs/commits )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-18 00:32:55 +00:00
dependabot[bot]
533710f0cd
build: Bump env_logger from 0.10.2 to 0.11.3
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.10.2 to 0.11.3.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.2...v0.11.3 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-18 00:29:58 +00:00
dependabot[bot]
2b82384a90
build: Bump async-executor from 1.9.1 to 1.11.0
...
Bumps [async-executor](https://github.com/smol-rs/async-executor ) from 1.9.1 to 1.11.0.
- [Release notes](https://github.com/smol-rs/async-executor/releases )
- [Changelog](https://github.com/smol-rs/async-executor/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-executor/compare/v1.9.1...v1.11.0 )
---
updated-dependencies:
- dependency-name: async-executor
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-16 23:55:40 +00:00
dependabot[bot]
e7ee88e8ac
build: Bump windows_i686_gnu from 0.52.4 to 0.52.5 in /fuzz
...
Bumps [windows_i686_gnu](https://github.com/microsoft/windows-rs ) from 0.52.4 to 0.52.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_i686_gnu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-16 23:46:28 +00:00
Ruslan Mstoi
6c4144e943
build: release: replace unmaintained actions
...
Replace actions: actions-rs/toolchain, upload-release-asset.
actions-rs/toolchain is unmaintained, for cross-compilation replace it
with houseabsolute/actions-rust-cross
Action upload-release-asset is unmaintained and has been archived since
Mar 4, 2021. An issue with upload-release-asset is that it creates
separate release for each job of matrix strategy. Thus, to solve these
issues, replace unmaintained upload-release-asset with upload-artifact
See: #5929
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-04-16 16:36:25 +00:00
dependabot[bot]
8a6add9c79
build: Bump quote from 1.0.35 to 1.0.36 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.35...1.0.36 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-16 00:04:40 +00:00
dependabot[bot]
76e557814d
build: Bump async-trait from 0.1.79 to 0.1.80
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.79 to 0.1.80.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.79...0.1.80 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-15 23:42:36 +00:00
Muminul Islam
a28ad40671
build: Update mshv crate commit in Cargo.lock
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-15 21:41:21 +00:00
Muminul Islam
cb9726b4a4
build: Update vfio crate commit in Cargo.lock
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-04-15 21:41:21 +00:00
dependabot[bot]
b5c5e9b34b
build: Bump windows_x86_64_gnu from 0.52.4 to 0.52.5 in /fuzz
...
Bumps [windows_x86_64_gnu](https://github.com/microsoft/windows-rs ) from 0.52.4 to 0.52.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_x86_64_gnu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-12 23:53:08 +00:00
dependabot[bot]
a5552b87f4
build: Bump flume from 0.10.14 to 0.11.0
...
Bumps [flume](https://github.com/zesterer/flume ) from 0.10.14 to 0.11.0.
- [Changelog](https://github.com/zesterer/flume/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zesterer/flume/commits )
---
updated-dependencies:
- dependency-name: flume
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-12 23:42:07 +00:00
dependabot[bot]
79021ebb16
build: Bump serde_repr from 0.1.18 to 0.1.19
...
Bumps [serde_repr](https://github.com/dtolnay/serde-repr ) from 0.1.18 to 0.1.19.
- [Release notes](https://github.com/dtolnay/serde-repr/releases )
- [Commits](https://github.com/dtolnay/serde-repr/compare/0.1.18...0.1.19 )
---
updated-dependencies:
- dependency-name: serde_repr
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-12 07:59:42 +00:00
dependabot[bot]
00e05c0278
build: Bump anyhow from 1.0.81 to 1.0.82 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.81...1.0.82 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-12 07:43:53 +00:00
dependabot[bot]
691dd926e4
build: Bump acpi_tables from ca1a473 to 925e3f8
...
Bumps [acpi_tables](https://github.com/rust-vmm/acpi_tables ) from `ca1a473` to `925e3f8`.
- [Commits](ca1a473fe7...925e3f8aff )
---
updated-dependencies:
- dependency-name: acpi_tables
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-11 07:49:11 +00:00
dependabot[bot]
b6783d4477
build: Bump getrandom from 0.2.13 to 0.2.14 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.13 to 0.2.14.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.13...v0.2.14 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 23:59:09 +00:00
dependabot[bot]
077970f99b
build: Bump cc from 1.0.90 to 1.0.92
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.90 to 1.0.92.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.92 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 07:35:21 +00:00
dependabot[bot]
f43df1d415
build: Bump bumpalo from 3.15.4 to 3.16.0 in /fuzz
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.15.4 to 3.16.0.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.15.4...3.16.0 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-09 23:44:03 +00:00
Ruslan Mstoi
8a80bea4c5
gitlint: add openapi to valid components
...
See #6372
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-04-09 13:05:53 +00:00
Lucas Jacques
108af5a293
openapi: add missing pvpanic property to VmConfig
...
Signed-off-by: Lucas Jacques <contact@lucasjacques.com >
2024-04-09 08:53:39 +00:00
dependabot[bot]
c8f4fece1a
build: Bump cc from 1.0.90 to 1.0.92 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.90 to 1.0.92.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.92 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-09 08:51:05 +00:00
dependabot[bot]
549681de59
build: Bump vm-fdt from 982fb8d to ef5bd73
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `982fb8d` to `ef5bd73`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](982fb8d9c8...ef5bd734f5 )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-09 00:11:30 +00:00
Rob Bradford
c4ad9b45d0
build: Use explicit date version number for dev container
...
This removes the requirement to ensure that we land PRs that update the
Dockerfile (and the appropraite dev_cli.sh change) in a specific time
frame.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-08 21:11:57 +00:00
Rob Bradford
d485896edd
build: Bump Rust version from 1.74.0 to 1.74.1
...
Fixes : #6368
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-08 21:11:57 +00:00
Yi Wang
e1bb5e71bf
vmm: Avoid kernel panic when unmasking guest IRQ on AMD
...
Assigning KVM_IRQFD (when unmasking a guest IRQ) after
KVM_SET_GSI_ROUTING can avoid kernel panic on the guest that is not
patched with commit a80ced6ea514 (KVM: SVM: fix panic on out-of-bounds
guest IRQ) on AMD systems.
Meanwhile, it is required to deassign KVM_IRQFD (when masking a guest
IRQ) before KVM_SET_GSI_ROUTING (see #3827 ).
Fixes : #6353
Signed-off-by: Yi Wang <foxywang@tencent.com >
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-04-07 08:58:03 +00:00
Rob Bradford
7966925c1c
build: Bulk update dependencies
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-04-06 09:48:25 +00:00
Bo Chen
f409c4b63b
build: Enable metrics and rate-limiter worker
...
This reverts commit 00684e6d19 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-04-06 07:33:38 +00:00
dependabot[bot]
d0cfa3a014
build: Bump clap from 4.5.3 to 4.5.4 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.3 to 4.5.4.
- [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/v4.5.3...v4.5.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-06 00:30:44 +00:00
dependabot[bot]
e99540e5e9
build: Bump serde_json from 1.0.114 to 1.0.115 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.114 to 1.0.115.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.114...v1.0.115 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-05 00:05:39 +00:00
Wei Liu
101cfb9650
virtio-devices: fs: cap the tag copy length
...
The caller shouldn't pass in an &str that's too long. This is a
precaution if something goes wrong in the caller.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-04 20:42:36 +00:00
Wei Liu
11c593e3b9
virtio-devices: fs: avoid unnecessary string allocation
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-04 20:42:36 +00:00
Wei Liu
f3b0f59646
vmm: validate virtio-fs tag length
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-04-04 20:42:36 +00:00
dependabot[bot]
f09f5af16a
build: Bump pin-project from 1.1.4 to 1.1.5 in /fuzz
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.4...v1.1.5 )
---
updated-dependencies:
- dependency-name: pin-project
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-04 00:13:50 +00:00
Bo Chen
00684e6d19
build: Temporarily disable metrics and rate-limiter worker
...
The corresponding bare-metal runner needs to be offline for
maintenance.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-04-03 14:26:42 -07:00
dependabot[bot]
fa7a000dbe
build: Bump vm-memory from 0.14.0 to 0.14.1
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Changelog](https://github.com/rust-vmm/vm-memory/blob/v0.14.1/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vm-memory/compare/v0.14.0...v0.14.1 )
---
updated-dependencies:
- dependency-name: vm-memory
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-03 07:19:10 +00:00
dependabot[bot]
85a3623b44
build: Bump backtrace from 0.3.67 to 0.3.71
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.67 to 0.3.71.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.67...0.3.71 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-02 09:13:00 +00:00
dependabot[bot]
66add03d38
build: Bump uuid from 1.7.0 to 1.8.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.7.0...1.8.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-01 23:47:23 +00:00
Andrew Carp
3fa02b34ca
virtio-devices: Attach and detach endpoints from domain properly
...
Properly detach a device from a domain if that device is already
attached to another domain on an attach request (following section
5.13.6.3.2 of the virtio-iommu spec). Resolves nested virtualization
reboot.
Signed-off-by: Andrew Carp <acarp@crusoeenergy.com >
2024-04-01 09:19:04 +00:00
Andrew Carp
5668f02eb6
virtio-devices: Map previously attached endpoints
...
Ensures that any endpoints already attached to the domain are properly
mapped to a new endpoint on said endpoint's attach request. This is done
by search for all previous mappings in the domain and then issuing map
requests for the newly attached endpoint.
Signed-off-by: Andrew Carp <acarp@crusoeenergy.com >
2024-04-01 09:19:04 +00:00
Andrew Carp
045964deee
virtio-devices: Map mmio over virtio-iommu
...
Add infrastructure to lookup the host address for mmio regions on
external dma mapping requests. This specifically resolves vfio
passthrough for virtio-iommu, allowing for nested virtualization to pass
external devices through.
Fixes #6110
Signed-off-by: Andrew Carp <acarp@crusoeenergy.com >
2024-04-01 09:16:30 +00:00
Andrew Carp
a5e2460d95
virtio-devices: Move VfioDmaMapping to be in the pci crate
...
VfioUserDmaMapping is already in the pci crate, this moves
VfioDmaMapping to match the behavior. This is a necessary change to
allow the VfioDmaMapping trait to have access to MmioRegion memory
without creating a circular dependency. The VfioDmaMapping trait
needs to have access to mmio regions to map external devices over
mmio (a follow-up commit).
Signed-off-by: Andrew Carp <acarp@crusoeenergy.com >
2024-04-01 09:16:30 +00:00
dependabot[bot]
fd854c7339
build: Bump byteorder from 1.4.3 to 1.5.0
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.4.3 to 1.5.0.
- [Changelog](https://github.com/BurntSushi/byteorder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/byteorder/compare/1.4.3...1.5.0 )
---
updated-dependencies:
- dependency-name: byteorder
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-30 08:47:30 +00:00
dependabot[bot]
2d15a2cd45
build: Bump arc-swap from 1.6.0 to 1.7.1 in /fuzz
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.6.0 to 1.7.1.
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/commits )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-29 23:41:24 +00:00
Alexandru Matei
fbe3e4d642
vmm: memory_manager: don't set backing_file for virtio_mem regions
...
The memory region that is associated with the hotpluggable part of
a virtio-mem zone isn't backed by the file specified in the
MemoryZoneConfig. The file is used only for the fixed part of the
zone. When you try to restore a snapshot with virtio-mem, the
backing file is used for all its regions. This results in the
following error:
VmRestore(MemoryManager(GuestMemoryRegion(MappingPastEof)))
This patch sets backing_file only for the fixed part of a virtio-mem
zone.
Fixes : #6337
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com >
2024-03-29 20:11:20 +00:00
Nuno Das Neves
28d4957ba5
hypervisor: Remove redefinition of HV_PAGE_SIZE in mshv
...
HV_PAGE_SIZE is defined as a usize in mshv_bindings.
Remove the redefinition, and perform casts where necessary.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-03-29 13:14:37 -07:00
Nuno Das Neves
f39d5eeaf0
build: Update mshv crate commit in Cargo.lock
...
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-03-29 13:14:37 -07:00
Nuno Das Neves
639db35635
vmm: Update and add seccomp IOCTL numbers for mshv
...
Add IOCTL number for generic hypercall ioctl (MSHV_ROOT_HVCALL).
Update IOCTL numbers for set/get vp state.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-03-29 13:14:37 -07:00
dependabot[bot]
6482f7e8c3
build: Bump zbus_names from 2.6.0 to 2.6.1
...
Bumps [zbus_names](https://github.com/dbus2/zbus ) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zbus_names-2.6.0...zbus_names-2.6.1 )
---
updated-dependencies:
- dependency-name: zbus_names
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-29 18:45:34 +00:00
Bo Chen
3214dc6431
Revert "build: Bump virtio-queue from 0.11.0 to 0.12.0 in /fuzz"
...
This reverts commit fcf229a33a .
The virtio-queue version needs to stay the same as the rest of the
source tree.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-29 09:14:38 -07:00
dependabot[bot]
97686ef7a3
build: Bump bumpalo from 3.15.3 to 3.15.4 in /fuzz
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.15.3 to 3.15.4.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.15.3...3.15.4 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-29 00:01:27 +00:00
dependabot[bot]
d3e4f9cc1b
build: Bump xdg-home from 1.0.0 to 1.1.0
...
Bumps [xdg-home](https://github.com/zeenix/xdg-home ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/zeenix/xdg-home/releases )
- [Commits](https://github.com/zeenix/xdg-home/compare/1.0.0...1.1.0 )
---
updated-dependencies:
- dependency-name: xdg-home
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-28 00:23:14 +00:00
dependabot[bot]
fcf229a33a
build: Bump virtio-queue from 0.11.0 to 0.12.0 in /fuzz
...
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases )
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.11.0...virtio-queue-v0.12.0 )
---
updated-dependencies:
- dependency-name: virtio-queue
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-28 00:11:12 +00:00
dependabot[bot]
310382a918
build: Bump itoa from 1.0.10 to 1.0.11 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-27 07:41:43 +00:00
dependabot[bot]
6d374d8805
build: Bump smallvec from 1.13.1 to 1.13.2
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.13.1...v1.13.2 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-27 00:21:12 +00:00
Bo Chen
11fa24cdcb
vmm: Explicitly set NetConfig FDs as invalid for (de)serialization
...
The 'NetConfig' may contain FDs which can't be serialized correctly, as
FDs can only be donated from another process via a Unix domain socket
with `SCM_RIGHTS`. To avoid false use of the serialized FDs, this patch
explicitly set 'NetConfig' FDs as invalid for (de)serialization.
See: #6286
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-26 18:41:38 +00:00
Jinank Jain
f0be099461
hypervisor: mshv: Add missing prototype of struct Vcpu for MshvVcpu
...
These are required while compiling for target aarch64.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-26 16:18:06 +00:00
Jinank Jain
3f95ada71e
hypervisor: mshv: Add missing prototype of struct Vm for MshvVm
...
These functions are required when compiling for aarch64.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-26 16:18:06 +00:00
dependabot[bot]
c6d5cd78a7
build: Bump regex-automata from 0.3.7 to 0.3.9
...
Bumps [regex-automata](https://github.com/rust-lang/regex ) from 0.3.7 to 0.3.9.
- [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/regex-automata-0.3.7...regex-automata-0.3.9 )
---
updated-dependencies:
- dependency-name: regex-automata
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-26 10:58:37 +00:00
dependabot[bot]
80dcb165ba
build: Bump autocfg from 1.1.0 to 1.2.0 in /fuzz
...
Bumps [autocfg](https://github.com/cuviper/autocfg ) from 1.1.0 to 1.2.0.
- [Commits](https://github.com/cuviper/autocfg/compare/1.1.0...1.2.0 )
---
updated-dependencies:
- dependency-name: autocfg
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-26 00:09:42 +00:00
Bo Chen
6922e25e78
vmm: Move VM shutdown event to Vmm::vm_shutdown
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-25 18:06:52 +00:00
Bo Chen
5997cfacbf
vmm: Move VM boot events to Vmm::vm_boot
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-25 18:06:52 +00:00
Wei Liu
55678b23ba
vmm: add events for VM reboot
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-25 18:06:52 +00:00
Rob Bradford
b15e5923ab
block: vhdx: "signature" field is unused
...
Prefix field with an _ to indicate that this is intentionally unused.
This resolved a nightly compiler check issue due to the unusued field.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-25 04:32:28 +00:00
Rob Bradford
fd81a23fcc
virtio-devices: vsock: csm: Use thiserror to provide error messages
...
This resolves a nightly compiler check for unused enum inner value.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-25 04:32:28 +00:00
dependabot[bot]
acc25def7d
build: Bump anyhow from 1.0.80 to 1.0.81 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.80...1.0.81 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-24 17:19:26 +00:00
Alexandru Matei
c3f1c3ee3d
virtio-devices: save pci configuration capability state in snapshot
...
When restoring a VM, the VirtioPciCfgCapInfo struct is not properly
initialized. All fields are 0, including the offset where the
capabibility starts. Hence, when you read a PCI configuration register
in the range [0..length(VirtioPciCfgCap)] you get the value 0 instead of
the actual register contents.
Linux rescans the whole PCI bus when adding a new device. It reads the
values vendor_id and device_id for every device. Because these are
stored at offset 0 in pci configuration space, their value is 0 for
existing devices. As such, Linux considers that the devices have been
unplugged and it removes them from the system.
Fixes : #6265
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com >
2024-03-24 17:18:51 +00:00
Jinank Jain
58e6a289ab
hypervisor: mshv: Restrict MshvEmulator to x86
...
Current MSHV emulator only works for x86 instruction decoder. So, let's
restrict its usage to x86.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-23 17:20:18 +00:00
Jinank Jain
7c6c45128d
hypervisor: mshv: Move ClockData under x86 feature flag
...
ClockData enum is only defined for x86_64 architecture so let's use it
just for that.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-23 17:20:18 +00:00
dependabot[bot]
625b18d2a2
build: Bump serde_with from 3.6.1 to 3.7.0
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.6.1...v3.7.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-22 23:59:25 +00:00
Andrew Carp
fbdc5d4487
virtio-devices: Removing all mappings found in an unmap request
...
According to the virtio iommu spec (section 5.13.6.6), all mappings
within the entire range from virt_start to virt_end in an unmap
request must be removed. This change adds this functionality,
iterating through all mappings that fall within an unmap request
for that domain and removing them.
Signed-off-by: Andrew Carp <acarp@crusoeenergy.com >
2024-03-22 20:25:52 +00:00
dependabot[bot]
6bee8ac702
build: Bump vm-memory from 0.14.0 to 0.14.1 in /fuzz
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Changelog](https://github.com/rust-vmm/vm-memory/blob/v0.14.1/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vm-memory/compare/v0.14.0...v0.14.1 )
---
updated-dependencies:
- dependency-name: vm-memory
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-22 12:54:20 +00:00
dependabot[bot]
749eb423cf
build: Bump anstyle-parse from 0.2.1 to 0.2.3
...
Bumps [anstyle-parse](https://github.com/rust-cli/anstyle ) from 0.2.1 to 0.2.3.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-parse-v0.2.1...anstyle-parse-v0.2.3 )
---
updated-dependencies:
- dependency-name: anstyle-parse
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-22 12:16:53 +00:00
dependabot[bot]
44fbd60b7a
build: Bump micro_http from e75dfa1 to ef43cef in /fuzz
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `e75dfa1` to `ef43cef`.
- [Commits](e75dfa1eee...ef43cef716 )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 09:31:09 +00:00
dependabot[bot]
98c48d40d2
build: Bump cc from 1.0.83 to 1.0.90
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.83 to 1.0.90.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.90 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 08:51:36 +00:00
Jinank Jain
fdcc8539cd
hypervisor: Don't restrict logger crate to just x86
...
Even aarch64 subsystem of hypervisor crate can use logging so don't
restrict it just to x86.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-21 08:34:20 +00:00
Jinank Jain
f7b9a6e577
hypervisor: mshv: Restrict unmapped GPA exit to x86
...
Current instruction emulator can only decode x86 instructions. Thus,
restrict the exit handling for just x86 guests.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-21 08:34:20 +00:00
Jinank Jain
c9e989de6e
hypervisor: mshv: Restrict IO port exit to x86
...
IO ports exits can only happen on a x86 guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-21 08:34:20 +00:00
Jinank Jain
2501426e47
hypervisor: mshv: Restrict APIC EOI message to x86
...
APIC controller is only available on x86 machine. ARM uses a different
interrupt controller so those exit messages won't happen for ARM guests.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-21 08:34:20 +00:00
Jinank Jain
dad1ab1227
hypervisor: mshv: Restrict NMI injection to x86
...
NMI injection is only supported on x86 architecture.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-21 08:34:20 +00:00
dependabot[bot]
97a1a70275
build: Bump num-traits from 0.2.17 to 0.2.18
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.17 to 0.2.18.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.17...num-traits-0.2.18 )
---
updated-dependencies:
- dependency-name: num-traits
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-20 11:26:54 +00:00
Jinank Jain
3a60c65369
hypervisor: mshv: Reduce the visbility of get_supported_cpuid to x86
...
Supported CPUID could only be fetched for x86_64 guests.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-20 09:49:48 +00:00
Jinank Jain
719cae217e
hypervisor: mshv: Restrict MSR and CPUID visbility for MshvVcpu to x86
...
MSR and CPUID are limited to x86 architecture so, reduce the visbility
of these two members inside struct MshvVcpu to just x86 architecture.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-20 09:49:48 +00:00
dependabot[bot]
41bae9fe93
build: Bump clap from 4.5.1 to 4.5.3 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.1 to 4.5.3.
- [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.1...v4.5.3 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-19 23:53:33 +00:00
Rob Bradford
f093ffcbef
devices: uart_pl011: Remove redundant imports
...
error: the item `io` is imported redundantly
Error: --> devices/src/legacy/uart_pl011.rs:468:9
|
467 | use super::*;
| -------- the item `io` is already imported here
468 | use std::io;
| ^^^^^^^
error: the item `Arc` is imported redundantly
Error: --> devices/src/legacy/uart_pl011.rs:469:21
|
467 | use super::*;
| -------- the item `Arc` is already imported here
468 | use std::io;
469 | use std::sync::{Arc, Mutex};
| ^^^
error: could not compile `devices` (lib test) due to 8 previous errors
Error: warning: build failed, waiting for other jobs to finish...
Error: The process 'cross' failed with exit code 101
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
2f5e48d295
devices: rtc_pl031: Remove redundant imports
...
error: the item `read_le_u32` is imported redundantly
Error: --> devices/src/legacy/rtc_pl031.rs:332:61
|
330 | use super::*;
| -------- the item `read_le_u32` is already imported here
331 | use crate::{
332 | read_be_u16, read_be_u32, read_le_i32, read_le_u16, read_le_u32, read_le_u64, write_be_u16,
| ^^^^^^^^^^^
error: the item `write_le_u32` is imported redundantly
Error: --> devices/src/legacy/rtc_pl031.rs:333:51
|
330 | use super::*;
| -------- the item `write_le_u32` is already imported here
...
333 | write_be_u32, write_le_i32, write_le_u16, write_le_u32, write_le_u64,
| ^^^^^^^^^^^^
error: the item `Arc` is imported redundantly
Error: --> devices/src/legacy/rtc_pl031.rs:335:9
|
330 | use super::*;
| -------- the item `Arc` is already imported here
...
335 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
4d52150b87
devices: gpio_pl061: Remove redundant imports
...
error: the item `read_le_u32` is imported redundantly
Error: --> devices/src/legacy/gpio_pl061.rs:342:17
|
341 | use super::*;
| -------- the item `read_le_u32` is already imported here
342 | use crate::{read_le_u32, write_le_u32};
| ^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
error: the item `write_le_u32` is imported redundantly
Error: --> devices/src/legacy/gpio_pl061.rs:342:30
|
341 | use super::*;
| -------- the item `write_le_u32` is already imported here
342 | use crate::{read_le_u32, write_le_u32};
| ^^^^^^^^^^^^
error: the item `Arc` is imported redundantly
Error: --> devices/src/legacy/gpio_pl061.rs:343:9
|
341 | use super::*;
| -------- the item `Arc` is already imported here
342 | use crate::{read_le_u32, write_le_u32};
343 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
c721c0d88f
hypervisor: emulator: Remove unnecessary #![allow(unused_mut)]
...
clippy was flagging this up as a mixture of mixed attributes but that
attribute is no longer necessary
warning: item has both inner and outer attributes
--> hypervisor/src/arch/x86/emulator/mod.rs:769:1
|
769 | / #[cfg(test)]
770 | | mod tests {
771 | | #![allow(unused_mut)]
| |_________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
b4b5f16268
vmm: acpi: Use .contains_key()
...
--> vmm/src/acpi.rs:708:14
|
708 | .get(&(DeviceType::Serial, DeviceType::Serial.to_string()))
| ______________^
709 | | .is_some();
| |______________________^ help: replace it with: `contains_key(&(DeviceType::Serial, DeviceType::Serial.to_string()))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
= note: `-D clippy::unnecessary-get-then-check` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_get_then_check)]`
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
b8e84f09be
vmm: vm: Remove redundant import
...
error: the item `GuestMemoryMmap` is imported redundantly
Error: --> vmm/src/vm.rs:3136:9
|
3135 | use super::*;
| -------- the item `GuestMemoryMmap` is already imported here
3136 | use crate::GuestMemoryMmap;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
ab9fc3a8a0
test_infra: Implement fmt::Display for VerbosityLevel
...
warning: direct implementation of `ToString`
--> test_infra/src/lib.rs:1214:1
|
1214 | / impl ToString for VerbosityLevel {
1215 | | fn to_string(&self) -> String {
1216 | | use VerbosityLevel::*;
1217 | | match self {
... |
1222 | | }
1223 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
= note: `#[warn(clippy::to_string_trait_impl)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
1e3d21e504
hypervisor: kvm: aarch64: Remove redundant import
...
error: the item `kvm_bindings` is imported redundantly
Error: --> hypervisor/src/kvm/aarch64/gic/mod.rs:9:18
|
9 | use crate::kvm::{kvm_bindings, KvmVm};
| ^^^^^^^^^^^^ the item `kvm_bindings` is already defined by prelude
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
72620295dc
hypervisor: Remove empty doc comment
...
warning: empty doc comment
--> hypervisor/src/hypervisor.rs:24:1
|
24 | / ///
25 | | ///
| |___^
|
= help: consider removing or filling it
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
= note: `#[warn(clippy::empty_docs)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
67054bf78b
hypervisor: Remove import of TryInto
...
This is already provided by the prelude.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
39ab482c47
arch: aarch64: Remove import of TryInto
...
This is already provided by the prelude.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
521a0d1ade
vmm: Fix clippy warnings for use of .clone()
...
warning: assigning the result of `Clone::clone()` may be inefficient
--> vmm/src/device_manager.rs:4188:17
|
4188 | id = child_id.clone();
| ^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `id.clone_from(child_id)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `#[warn(clippy::assigning_clones)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
2529ffd593
virtio-devices: Fix clippy warning for use of .clone()
...
warning: `devices` (lib) generated 1 warning (run `cargo clippy --fix --lib -p devices` to apply 1 suggestion)
warning: assigning the result of `Clone::clone()` may be inefficient
--> virtio-devices/src/transport/pci_device.rs:1073:9
|
1073 | self.bar_regions = bars.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.bar_regions.clone_from(&bars)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Rob Bradford
f1856bb27c
devices: Fix clippy warning for use of .clone()
...
warning: assigning the result of `Clone::clone()` may be inefficient
--> devices/src/pvpanic.rs:213:9
|
213 | self.bar_regions = bars.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.bar_regions.clone_from(&bars)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `#[warn(clippy::assigning_clones)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-19 18:36:22 +00:00
Jinank Jain
89ff0627e6
hypervisor: mshv: Reduce msrs visibility to x86_64
...
Model Specific Registers (MSRs) are usually available on x86
architecture. So, let's reduce the visibility of MSRs to just x86
architecture.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-19 17:52:01 +00:00
Bouke van der Bijl
dd37f33a43
docs: cloud-hypervisor only supports stream vsock
...
Signed-off-by: Bouke van der Bijl <i@bou.ke >
2024-03-19 10:19:22 -07:00
dependabot[bot]
87f4399853
build: Bump proc-macro2 from 1.0.78 to 1.0.79 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.78...1.0.79 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-19 09:46:55 +00:00
dependabot[bot]
ec36113751
build: Bump pin-project from 1.1.4 to 1.1.5
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.4...v1.1.5 )
---
updated-dependencies:
- dependency-name: pin-project
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-18 23:45:57 +00:00
dependabot[bot]
f6b5356dd2
build: Bump serde_with from 3.6.1 to 3.7.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.6.1...v3.7.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-16 00:08:27 +00:00
dependabot[bot]
0886eb4301
build: Bump zvariant from 3.15.0 to 3.15.2
...
Bumps [zvariant](https://github.com/dbus2/zbus ) from 3.15.0 to 3.15.2.
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zvariant-3.15.0...zvariant-3.15.2 )
---
updated-dependencies:
- dependency-name: zvariant
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-15 23:56:57 +00:00
dependabot[bot]
0e7c8a1d8a
build: Bump async-channel from 2.1.1 to 2.2.0
...
Bumps [async-channel](https://github.com/smol-rs/async-channel ) from 2.1.1 to 2.2.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.1.1...v2.2.0 )
---
updated-dependencies:
- dependency-name: async-channel
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-15 03:04:05 +00:00
dependabot[bot]
cb984e163c
build: Bump js-sys from 0.3.68 to 0.3.69 in /fuzz
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.68 to 0.3.69.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-15 00:04:53 +00:00
Bo Chen
1363891df6
vmm: Avoid deadlock from waiting on paused device worker threads
...
A deadlock can happen from the destination VM of live upgrade or
migration due to waiting on paused device worker threads. For example,
when a serialization error happens after the `DeviceManager` struct is
restored (where all virtio device worker threads are spawned but in
paused/parked state), a deadlock will happen from
`DeviceManager::drop()`, as it blocks for waiting worker threads to
join.
This patch ensures that we wake up all device (mostly virtio) worker
threads before we block for them to join.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-14 02:07:52 +00:00
dependabot[bot]
f898e660b6
build: Bump redox_users from 0.4.3 to 0.4.4
...
Bumps redox_users from 0.4.3 to 0.4.4.
---
updated-dependencies:
- dependency-name: redox_users
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-14 00:35:07 +00:00
dependabot[bot]
d2c2054047
build: Bump cc from 1.0.88 to 1.0.90 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.88 to 1.0.90.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.88...1.0.90 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-14 00:05:32 +00:00
Muminul Islam
2d6287d159
hypervisor: Fix boot failure on SNP guest
...
Current version can't boot a SNP guest while using
more than one VCPU. It turns out that there is an
issue in the Snp AP creation process. We should be writing
to Software exitinfo1 instead of exitinfo2. This patch fixes
the issue and we can boot multi vcpu SNP guest.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-03-13 23:03:33 +00:00
dependabot[bot]
61d9debb5e
build: Bump wasm-bindgen from 0.2.91 to 0.2.92 in /fuzz
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.91 to 0.2.92.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.91...0.2.92 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-13 00:18:07 +00:00
dependabot[bot]
e50e5d8081
build: Bump async-process from 1.8.0 to 1.8.1
...
Bumps [async-process](https://github.com/smol-rs/async-process ) from 1.8.0 to 1.8.1.
- [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/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: async-process
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-12 23:37:22 +00:00
Ruslan Mstoi
7ff5ebee1d
build: replace actions-rs/audit-check with actions-rust-lang/audit
...
actions-rs/audit-check is unmaintained, hence replace it with
actions-rust-lang/audit
See: #5929
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-03-12 18:43:36 +00:00
dependabot[bot]
6a446b6158
build: Bump lock_api from 0.4.10 to 0.4.11
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.10 to 0.4.11.
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.10...lock_api-0.4.11 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-12 12:30:53 +00:00
dependabot[bot]
f9be73ae06
build: Bump serde from 1.0.196 to 1.0.197 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.196 to 1.0.197.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.196...v1.0.197 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-12 10:07:07 +00:00
dependabot[bot]
c85488f22e
build: Bump itoa from 1.0.9 to 1.0.10
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-08 23:59:49 +00:00
Ruslan Mstoi
c420dcd41b
build: replace actions-rs/toolchain with dtolnay/rust-toolchain
...
actions-rs/toolchain is unmaintained, hence replace it with
dtolnay/rust-toolchain
See: #5929
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-03-08 18:37:46 +00:00
dependabot[bot]
dccc00f208
build: Bump crc32fast from 1.3.2 to 1.4.0
...
Bumps [crc32fast](https://github.com/srijs/rust-crc32fast ) from 1.3.2 to 1.4.0.
- [Commits](https://github.com/srijs/rust-crc32fast/compare/v1.3.2...v1.4.0 )
---
updated-dependencies:
- dependency-name: crc32fast
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-08 00:11:47 +00:00
dependabot[bot]
7e487dfa17
build: Bump slab from 0.4.8 to 0.4.9
...
Bumps [slab](https://github.com/tokio-rs/slab ) from 0.4.8 to 0.4.9.
- [Release notes](https://github.com/tokio-rs/slab/releases )
- [Changelog](https://github.com/tokio-rs/slab/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/slab/compare/v0.4.8...v0.4.9 )
---
updated-dependencies:
- dependency-name: slab
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-07 11:15:59 +00:00
dependabot[bot]
dcc2294949
build: Bump log from 0.4.20 to 0.4.21 in /fuzz
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.20 to 0.4.21.
- [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.20...0.4.21 )
---
updated-dependencies:
- dependency-name: log
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-07 09:25:05 +00:00
dependabot[bot]
8f0464b635
build: Bump darling from 0.20.6 to 0.20.8 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.6 to 0.20.8.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.6...v0.20.8 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-06 09:28:26 +00:00
dependabot[bot]
9c68e86f83
build: Bump serde_with from 3.4.0 to 3.6.1
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.4.0 to 3.6.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.4.0...v3.6.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-06 09:11:03 +00:00
Jinank Jain
cd116cb24f
vmm: hypervisor: Add support for injecting NMI for MSHV guest
...
Currently, we only support injecting NMI for KVM guests but we can do
the same for MSHV guests as well to have feature parity.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-03-06 00:12:06 +00:00
Jinank Jain
da376a4b37
hypervisor: mshv: Add support to handle GPA Attribute Intercept
...
Microsoft Hypervisor raises this request to change the guest page
visibility in case of SEV-SNP guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-03-05 14:55:58 +00:00
Ravi kumar Veeramally
fbcf5fb37d
build: Update ARM64 GitHub action for windows integration tests
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-03-05 13:13:32 +00:00
dependabot[bot]
23632b0bf4
build: Bump bumpalo from 3.14.0 to 3.15.3 in /fuzz
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.14.0 to 3.15.3.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.14.0...3.15.3 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-05 10:54:42 +00:00
dependabot[bot]
d05b05b050
build: Bump zbus from 3.14.1 to 3.15.2
...
Bumps [zbus](https://github.com/dbus2/zbus ) from 3.14.1 to 3.15.2.
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zbus-3.14.1...zbus-3.15.2 )
---
updated-dependencies:
- dependency-name: zbus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-05 09:25:06 +00:00
Thomas Barrett
1811e24a4b
vmm: fix openapi queue_affinity config
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-03-05 09:24:55 +00:00
Ravi kumar Veeramally
d245e62427
build: Add GitHub action for metrics tests
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-04 16:33:55 +00:00
Yi Wang
f1e4a82fd3
tests: Add test for nmi
...
Kernel can panic when get a unknown nmi when set unknown_nmi_panic,
we can use this feature to test if nmi injected to guest.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-03-04 10:02:38 +00:00
Yi Wang
5466e873c4
docs: api: Add documentation for vm.nmi
...
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-03-04 10:02:38 +00:00
Yi Wang
1708561c74
ch-remote: add support for nmi
...
Adding the wrapping layer to be able to trigger NMI for the guest
from the ch-remote tool.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-03-04 10:02:38 +00:00
Yi Wang
c72bf0b32d
vmm: support injecting NMI
...
Inject NMI interrupt when needed, by call ioctl KVM_NMI.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-03-04 10:02:38 +00:00
Yi Wang
f40dd4a993
vmm: add endpoint api for NMI support
...
Add http endpoint for trigger nmi.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-03-04 10:02:38 +00:00
dependabot[bot]
f8ac38d113
build: Bump serde_json from 1.0.113 to 1.0.114 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.113 to 1.0.114.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.113...v1.0.114 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-02 12:41:39 +00:00
dependabot[bot]
b072671e82
build: Bump serde_json from 1.0.109 to 1.0.114
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.109 to 1.0.114.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.109...v1.0.114 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-02 12:41:30 +00:00
Rob Bradford
6f49d7f192
build: Avoid cancellation of release build workflow on MQ
...
When running on the merge group this workflow is run twice - once for
the create event (merge queue creates a new branch) and once for the
merge_group event. Unfortunately the second event would cause the first
to be cancelled - unfortunately sometimes that second event is the
create event where the job in the workflow only runs if it is also a
tag.
By creating distinct concurrency groups for each event type then the
cross cancellation can be avoided.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-02 12:41:21 +00:00
Rob Bradford
0f71956d6d
build: Use authentication token to avoid GitHub rate limit
...
The workers share a common public IP address and often GitHub will
reject attempts to access the API due to exceeding the anonymous rate
limit threshold.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-02 12:40:30 +00:00
Bo Chen
46c9b9693c
build: Allow 'cancel-in-progress' for bare-metal workers
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-02 11:10:19 +00:00
Rob Bradford
cdafe5344d
build: Add SGX, VFIO and rate limit testing to MQ
...
Run these workflows as part of the merge queue to help improve testing
coverage.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-01 08:50:45 +00:00
Bo Chen
f48942ce3f
build: Add a step to fix workspace permissions on bare-metal workers
...
When a bare-metal worker is canceled, its workspace can be left with
files owned by the root user as a result of running tests from our
container. This patch add a step to fix workspace permissions for such
case before checking out code.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-01 08:50:45 +00:00
dependabot[bot]
d3fade85a7
build: Bump clap from 4.4.7 to 4.5.1
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.7 to 4.5.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.4.7...clap_complete-v4.5.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 07:25:13 +00:00
dependabot[bot]
b65b866895
build: Bump windows-targets from 0.52.0 to 0.52.4 in /fuzz
...
Bumps [windows-targets](https://github.com/microsoft/windows-rs ) from 0.52.0 to 0.52.4.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows-targets
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 07:24:45 +00:00
Bo Chen
0718067851
tests: Fix test_snapshot_restore_hotplug_virtiomem on 16 cores VM
...
It takes longer time to restore a VM on a VM with 16 cores comparing
with ones with 64 cores.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-03-01 07:24:14 +00:00
Bo Chen
7d60ab70e6
build: Run integration tests on smaller VMs
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-03-01 07:24:14 +00:00
Rob Bradford
084eb0792d
build: Bump MSRV to 1.74
...
This is required for the updated clap crate (see #6237 )
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-29 19:42:16 +00:00
Rob Bradford
b8f5687707
vmm: seccomp: Add munmap() to the "event-monitor" thread
...
Needed for Rust 1.74 on aarch64 with musl
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-29 19:42:16 +00:00
Alexandru Matei
1091494320
vmm: http: graceful shutdown of the http api thread
...
This commit ensures that the HttpApi thread flushes all the responses
before the application shuts down. Without this step, in case of a
VmmShutdown request the application might terminate before the
thread sends a response.
Fixes : #6247
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com >
2024-02-29 12:34:30 +00:00
Alexandru Matei
3f2ca5375e
scripts: Change features_build variable type to array
...
Because of double quotes the current value is passed
as a single argument with a space in it to cargo.
This commit changes it to an array so each element
is passed as a different arguments.
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com >
2024-02-29 11:38:43 +00:00
dependabot[bot]
efc24119f3
build: Bump anstream from 0.6.12 to 0.6.13 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.12 to 0.6.13.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.12...anstream-v0.6.13 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-29 10:29:30 +00:00
Thomas Barrett
b750c332aa
vmm: add NVIDIA GPUDirect P2P support
...
On platforms where PCIe P2P is supported, inject a PCI capability into
NVIDIA GPU to indicate support.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-02-29 09:26:29 +00:00
Ravi kumar Veeramally
05ec6190da
scripts: Update Azure storage location to access images
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-02-29 08:15:18 +00:00
Rob Bradford
1db30405e1
build: Cancel in progress actions on update
...
If the PR updated cancel outstanding jobs to conserve resources.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
3e35529842
build: Only run bisectability check on PRs
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
96cc1ba76c
build: Only check DCO on PRs
...
The DCO tool doesn't understand merge_groups but we still need to have a
valid status check to allow the merge group to proceed.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
022f375ef8
build: Skip release check on pull requests
...
This takes a long time and duplicates existing checks on the pull
requests.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
81b95023c4
build: Only run Intel + glibc on PR builds for x86-64 tests
...
Run all the tests on the merge queue.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
f15ca1aec3
build: Make the Windows Guest Test always pass on PR builds
...
When running with the merge queue the tests will be fully executed.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
cb8a728dfb
build: Remove unnecessary if event checks from vfio/sgx workflows
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
80aa91f24c
build: Use a nicer name for DCO check step
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Rob Bradford
d9f48505fe
build: Ensure all required checks run on merge_group
...
And clean up some of the whitespace formatting so that the "name" and
"on" are grouped away from the "jobs".
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-28 20:11:20 +00:00
Bo Chen
1d098949b9
ci: Remove Jenkinsfile
...
Most of our CI workers are now running form GitHub actions, so we are
ready to disable Jenkins CI workers.
See: #6231
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-28 08:49:29 -08:00
dependabot[bot]
18a4d732b9
build: Bump windows_i686_gnu from 0.52.0 to 0.52.3 in /fuzz
...
Bumps [windows_i686_gnu](https://github.com/microsoft/windows-rs ) from 0.52.0 to 0.52.3.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_i686_gnu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 15:55:42 -08:00
Ravi kumar Veeramally
ba6bfee4ff
build: Add GitHub action for Windows guest integration tests
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-27 20:33:49 +00:00
dependabot[bot]
eecd879b36
build: Bump cc from 1.0.83 to 1.0.88 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.83 to 1.0.88.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.88 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 14:24:37 +00:00
Ravi kumar Veeramally
57fb97e41f
build: Add GitHub action for Rate Limiter integration tests
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-02-26 14:38:17 -08:00
dependabot[bot]
97b23f1448
build: Bump remain from 0.2.12 to 0.2.13 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.12 to 0.2.13.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.12...0.2.13 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-24 09:39:48 +00:00
Chris Webb
0310c5726f
main: Show help text when run without arguments
...
cloud-hypervisor, ch-remote, vhost-user-block and vhost-user-net all
need at least one argument to do anything useful, so printing command
help is helpful when they are run without arguments or a subcommand.
Use clap::Command::arg_required_else_help(true) to do this.
Signed-off-by: Chris Webb <chris@arachsys.com >
2024-02-24 09:35:37 +00:00
Chris Webb
5627c26405
ch-remote: Fix crash when run with no subcommand
...
ch-remote crashes when run with --api-socket but no subcommand:
$ target/release/ch-remote --api-socket /tmp/api
thread 'main' panicked at src/bin/ch-remote.rs:509:14:
internal error: entered unreachable code
Use clap::Command::subcommand_required(true) to yield a more friendly
error in this case.
Signed-off-by: Chris Webb <chris@arachsys.com >
2024-02-24 09:35:37 +00:00
dependabot[bot]
07560c596d
build: Bump mintex from 0.1.2 to 0.1.3
...
Bumps [mintex](https://github.com/garypen/mintex ) from 0.1.2 to 0.1.3.
- [Commits](https://github.com/garypen/mintex/compare/v0.1.2...v0.1.3 )
---
updated-dependencies:
- dependency-name: mintex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-24 08:40:35 +00:00
Muminul Islam
1a4c890f83
vmm: pass host data to SevSnp guest
...
Host data that is passed to the hypervisor. Then
the firmware includes the data in the attestation report.
The data might include any key or secret that the SevSnp guest
might need later.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-23 13:32:56 -08:00
Muminul Islam
e51fb0ee36
vmm: validate host data for SevSnp guest
...
Host data for SevSnp guest should either be empty
or 64 character hex value.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-23 13:32:56 -08:00
Muminul Islam
aa6c486a6b
vmm: add host-data as a command line argument
...
The host data provided at launch. Data is passed
to the hypervisor during the completion of the
isolated import.
Host Data provided by the hypervisor during guest launch.
The firmware includes this value in all attestation
reports for the guest.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-23 13:32:56 -08:00
Ravi kumar Veeramally
b765acd608
build: Add GitHub action for VFIO integration tests
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-02-23 16:25:47 +00:00
Ravi kumar Veeramally
4fb86e9915
build: Add GitHub action for SGX integration tests
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-02-23 16:22:56 +00:00
dependabot[bot]
7d305c5bbf
build: Bump anyhow from 1.0.79 to 1.0.80 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.79 to 1.0.80.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.79...1.0.80 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-23 11:43:24 +00:00
dependabot[bot]
3c4fa14c3e
build: Bump libz-sys from 1.1.12 to 1.1.15
...
Bumps [libz-sys](https://github.com/rust-lang/libz-sys ) from 1.1.12 to 1.1.15.
- [Release notes](https://github.com/rust-lang/libz-sys/releases )
- [Commits](https://github.com/rust-lang/libz-sys/compare/1.1.12...1.1.15 )
---
updated-dependencies:
- dependency-name: libz-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-23 11:03:36 +00:00
Muminul Islam
b77f779c90
vmm: Add seccomp rules for MSHV SevSnp guest
...
There are new IOCTLs added for SevSnp guest support.
This patch adds necessary seccomp ruled.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-23 09:45:04 +00:00
Rob Bradford
1fe2771a0d
build: Add some timeouts to integration test workflow
...
Add top-level timeout for the jobs and also more agressive per step
timeouts.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-23 09:30:54 +00:00
Rob Bradford
2e4079becb
build: Add libc to matrix for x86-64 tests
...
To reduce issues caused by flaky tests split the musl and glibc jobs
into separate jobs. This means fewer jobs will need to be restarted for
flaky tests. This will also increase CI throughput since the musl builds
account for ~40% of the total CI time when run together with glibc.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-23 09:30:54 +00:00
Rob Bradford
d32de07be7
build: Disable "fail fast" on x86-64 GitHub action
...
This will help handle flakiness in the builds by requiring the minimum
number of restarts.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-23 09:30:54 +00:00
Rob Bradford
6ec83c7d8e
build: Switch GitHub action ARM64 builds to musl
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-23 09:30:54 +00:00
dependabot[bot]
68dd467104
build: Bump pkg-config from 0.3.27 to 0.3.30
...
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs ) from 0.3.27 to 0.3.30.
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.27...0.3.30 )
---
updated-dependencies:
- dependency-name: pkg-config
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-22 15:06:32 +00:00
dependabot[bot]
a9aed1a9bc
build: Bump clap from 4.5.0 to 4.5.1 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.0...clap_complete-v4.5.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-22 15:06:08 +00:00
Rob Bradford
84a6da5e93
build: Extend x86-64 GitHub action to AMD runner
...
Use the matrix to add a build runnind on the AMD variant of the garm
runner.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-22 13:07:32 +00:00
Rob Bradford
6930370a03
tests: Remove download of unused bionic image for aarch64
...
The bionic image was being downloaded and converted but no test uses
this image any longer.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-22 12:28:40 +00:00
Rob Bradford
89f2a4882e
build: Add GitHub action for ARM64 integration tests
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-22 12:28:40 +00:00
Rob Bradford
307a0166c5
build: Add GitHub action for unit/integration testing
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-22 12:23:44 +00:00
dependabot[bot]
845bdfb1b2
build: Bump bitflags from 2.4.1 to 2.4.2
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.4.1...2.4.2 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-20 23:54:02 +00:00
dependabot[bot]
e136d343ab
build: Bump anstream from 0.6.11 to 0.6.12 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.11 to 0.6.12.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.11...anstream-v0.6.12 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-20 23:24:22 +00:00
Jinank Jain
9b722bbcf6
hypervisor: mshv: Don't unregister ioevent in case of SEV-SNP guest
...
Since we don't register ioevents in case of SEV-SNP guests. Thus, we
should not unregister it as well.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-02-20 06:55:13 -08:00
dependabot[bot]
927df4e643
build: Bump hermit-abi from 0.3.3 to 0.3.6
...
Bumps [hermit-abi](https://github.com/hermitcore/hermit-rs ) from 0.3.3 to 0.3.6.
- [Release notes](https://github.com/hermitcore/hermit-rs/releases )
- [Commits](https://github.com/hermitcore/hermit-rs/compare/hermit-abi-0.3.3...hermit-abi-0.3.6 )
---
updated-dependencies:
- dependency-name: hermit-abi
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-20 00:19:46 +00:00
dependabot[bot]
8e46c03453
build: Bump ryu from 1.0.16 to 1.0.17 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.16...1.0.17 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-19 23:26:17 +00:00
Rob Bradford
adb318f4cd
misc: Remove redundant "use" imports
...
With the nightly toolchain (2024-02-18) cargo check will flag up
redundant imports either because they are pulled in by the prelude on
earlier match.
Remove those redundant imports.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-19 17:54:30 +00:00
Chris Webb
09f3658999
vmm: Avoid zombie sigwinch_listener processes
...
When a guest running on a terminal reboots, the sigwinch_listener
subprocess exits and a new one restarts. The parent never wait()s
for children, so the old subprocess remains as a zombie. With further
reboots, more and more zombies build up.
As there are no other children for which we want the exit status,
the easiest fix is to take advantage of the implicit reaping specified
by POSIX when we set the disposition of SIGCHLD to SIG_IGN.
For this to work, we also need to set the correct default exit signal
of SIGCHLD when using clone3() CLONE_CLEAR_SIGHAND. Unlike the fallback
fork() path, clone_args::default() initialises the exit signal to zero,
which results in a child with non-standard reaping behaviour.
Signed-off-by: Chris Webb <chris@arachsys.com >
2024-02-19 17:08:47 +00:00
Stefan Nuernberger
6362b711c6
README: update for direct boot bzImage support
...
Signed-off-by: Stefan Nuernberger <stefan.nuernberger@cyberus-technology.de >
2024-02-19 17:07:50 +00:00
Stefan Nuernberger
d8cd403c5d
arch: x86_64: integration test for bzImage boot
...
Signed-off-by: Stefan Nuernberger <stefan.nuernberger@cyberus-technology.de >
2024-02-19 17:07:50 +00:00
Stefan Nuernberger
09cf8c3118
arch: x86_64: bring back bzImage support
...
Allow cloud-hypervisor to direct boot the bzImage kernel format using
the regular 32 bit entry point. This can share the memory and vcpu
setup with the regular PVH boot code, but requires the setup of the
'zero page'.
Signed-off-by: Stefan Nuernberger <stefan.nuernberger@cyberus-technology.de >
2024-02-19 17:07:50 +00:00
dependabot[bot]
da3693f164
build: Bump bumpalo from 3.13.0 to 3.15.0
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.13.0 to 3.15.0.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.13.0...3.15.0 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-17 00:40:05 +00:00
dependabot[bot]
2b3e10ab88
build: Bump darling from 0.20.5 to 0.20.6 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.5 to 0.20.6.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.5...v0.20.6 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-16 23:37:16 +00:00
Muminul Islam
3d5718bd87
virtio-devices: handle IO event for SevSnp properly
...
For SevSnp guest IO events are handled by GHCB protocol.
While we get the notification we have to notify via eventfd.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-16 11:28:32 -08:00
Bo Chen
ef4fbf086f
build: Release v38.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-16 10:00:41 -08:00
Jinank Jain
9f8aeacd3d
vmm: Force enable IOMMU incase of SEV-SNP guest
...
In case of SEV-SNP guest devices use sw-iotlb to gain access guest
memory for DMA. For that F_IOMMU/F_ACCESS_PLATFORM must be exposed in
the feature set of virtio devices.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-16 09:28:00 +00:00
Thomas Barrett
c9f94be7ab
pci: vfio: naturally align bar
...
According to PCIe specification, a 64-bit MMIO BAR should be
naturally aligned. In addition to being more compliant with
the specification, natural aligned BARs are mapped with
the largest possible page size by the host iommu driver, which
should speed up boot time and reduce IOTLB thrashing for virtual
machines with VFIO devices.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-02-16 08:24:56 +00:00
dependabot[bot]
af49b10cf2
build: Bump darling from 0.20.3 to 0.20.6
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.3 to 0.20.6.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.3...v0.20.6 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-16 00:29:27 +00:00
dependabot[bot]
2fc2cabcbc
build: Bump js-sys from 0.3.67 to 0.3.68 in /fuzz
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.67 to 0.3.68.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-15 23:45:29 +00:00
Thomas Barrett
ce7db3f7c3
arch: x86_64: allow more than 2 E820_RAM ranges
...
The 'generate_ram_ranges' function currently hardcodes the assumption
that there are only 2 E820 RAM entries. This is not flexible enough to
handle vendor specific memory holes. Returning a Vec is also more
convenient for users of this function.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-02-15 08:49:06 +00:00
dependabot[bot]
bcdd23956f
build: Bump anstyle from 1.0.1 to 1.0.6
...
Bumps [anstyle](https://github.com/rust-cli/anstyle ) from 1.0.1 to 1.0.6.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-ls-v1.0.1...v1.0.6 )
---
updated-dependencies:
- dependency-name: anstyle
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-15 00:24:07 +00:00
dependabot[bot]
b1f3860d9a
build: Bump clap from 4.4.18 to 4.5.0 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.18 to 4.5.0.
- [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/v4.4.18...clap_complete-v4.5.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-14 23:20:25 +00:00
dependabot[bot]
341152b4c7
build: Bump smallvec from 1.11.0 to 1.13.1
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.11.0 to 1.13.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-14 02:15:15 +00:00
dependabot[bot]
e013fdd9d4
build: Bump anstyle from 1.0.4 to 1.0.6 in /fuzz
...
Bumps [anstyle](https://github.com/rust-cli/anstyle ) from 1.0.4 to 1.0.6.
- [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.4...v1.0.6 )
---
updated-dependencies:
- dependency-name: anstyle
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-13 23:13:14 +00:00
Jinank Jain
eee31f1d41
vmm: Don't set rsdp addr in case of SEV-SNP guest
...
Since the ACPI tables are generated inside the IGVM file in case of
SEV-SNP guest. So, we don't need to generate it inside the cloud
hypervisor.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-13 11:29:46 -08:00
Jinank Jain
d0be450b1b
hypervisor: Do not register ioevent for SEV-SNP
...
... enabled VMs. IOEvents are not supported in case of SEV-SNP VMs. All
the IO events are delievered via GHCB protocol.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-13 11:26:20 -08:00
Jinank Jain
3a683b54d5
hypervisor: Add a flag to identify sev-snp VM
...
This will help in identify whether a VM supports sev-snp and based on
that disable/enable certain features.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-13 11:26:20 -08:00
Ruslan Mstoi
af4a193b43
build: add shell script linter workflow
...
Implement workflow to to run static analysis and linting of all shell
scripts by using shfmt and shellcheck.
Fixes : #5396
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-02-13 10:20:18 +00:00
Ruslan Mstoi
2b2d00653c
scripts: fix shell scripts according to shellcheck errors
...
Unify coding style of shell scripts in accordance with
shellcheck errors.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-02-13 10:20:18 +00:00
Ruslan Mstoi
318caeb9d8
scripts: fix shell scripts format according to shfmt
...
Unify coding style of shell scripts in accordance with shfmt checks.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-02-13 10:20:18 +00:00
Peteris Rudzusiks
612a8dfb1b
vmm: seccomp: Allow all threads to call sched_yield()
...
We occasionally saw cloud-hypervisor crashed due to seccomp violations. The
coredumps showed the HTTP API thread crashing after it attempted to call
sched_yield(). The call came from rust stdlib's mpmc module, which calls
sched_yield() if several attempts to busy-wait for a condition to fulfil fall
short.
Since the system call is harmless and it comes from the stdlib, I opted to allow
all threads to call it.
Signed-off-by: Peteris Rudzusiks <rye@stripe.com >
2024-02-13 10:20:07 +00:00
Jinank Jain
321d6f47e6
hypervisor: mshv: Add new memory region flag
...
GPA_MAP_ADJUSTABLE suggests hypervisor to adjust GPA permissions as
required.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-02-13 09:08:59 +00:00
acarp
035c4b20fb
block: Set an option to pin virtio block threads to host cpus
...
Currently the only way to set the affinity for virtio block threads is
to boot the VM, search for the tid of each of the virtio block threads,
then set the affinity manually. This commit adds an option to pin virtio
block queues to specific host cpus (similar to pinning vcpus to host
cpus). A queue_affinity option has been added to the disk flag in
the cli to specify a mapping of queue indices to host cpus.
Signed-off-by: acarp <acarp@crusoeenergy.com >
2024-02-13 09:05:57 +00:00
dependabot[bot]
ee0cf3a715
build: Bump dhat from 0.3.2 to 0.3.3
...
Bumps [dhat](https://github.com/nnethercote/dhat-rs ) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/nnethercote/dhat-rs/releases )
- [Commits](https://github.com/nnethercote/dhat-rs/compare/0.3.2...0.3.3 )
---
updated-dependencies:
- dependency-name: dhat
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-13 00:32:34 +00:00
dependabot[bot]
ffef4ae5ac
build: Bump io-uring from 0.6.2 to 0.6.3 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.6.2 to 0.6.3.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-12 23:30:29 +00:00
dependabot[bot]
8f98240ed4
build: Bump serde_json from 1.0.112 to 1.0.113 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.112 to 1.0.113.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.112...v1.0.113 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-10 00:38:41 +00:00
dependabot[bot]
5b0de115f0
build: Bump serde from 1.0.193 to 1.0.196
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.193 to 1.0.196.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.193...v1.0.196 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-09 23:45:54 +00:00
dependabot[bot]
308b74f3a4
build: Bump proc-macro2 from 1.0.76 to 1.0.78 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.76 to 1.0.78.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.76...1.0.78 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-09 23:41:25 +00:00
Jinank Jain
441b58437f
vmm: Don't configure vcpu in case of SEV-SNP
...
Traditional way to configure vcpu don't work for sev-snp guests. All the
vCPU configuration for SEV-SNP guest is provided via VMSA.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-09 09:46:19 -08:00
dependabot[bot]
829d310c57
build: Bump jobserver from 0.1.27 to 0.1.28 in /fuzz
...
Bumps [jobserver](https://github.com/alexcrichton/jobserver-rs ) from 0.1.27 to 0.1.28.
- [Commits](https://github.com/alexcrichton/jobserver-rs/commits )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-09 07:52:31 +00:00
dependabot[bot]
9c7ee4ab3d
build: Bump winnow from 0.5.18 to 0.5.39
...
Bumps [winnow](https://github.com/winnow-rs/winnow ) from 0.5.18 to 0.5.39.
- [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md )
- [Commits](https://github.com/winnow-rs/winnow/compare/v0.5.18...v0.5.39 )
---
updated-dependencies:
- dependency-name: winnow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-09 07:52:13 +00:00
Bo Chen
ab5a731160
block: vhdx: Remove unused 'struct RegionEntry'
...
This also fixes the following clippy warning on nightly build from cargo
fuzz:
warning: struct `RegionEntry` is never constructed
--> /home/chenb/project/cloud-hypervisor/cloud-hypervisor/block/src/vhdx/vhdx_header.rs:357:8
|
357 | struct RegionEntry {
| ^^^^^^^^^^^
|
= note: `RegionEntry` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-09 07:51:57 +00:00
Thomas Barrett
f0c1f8d079
pci: vfio: VFIO_IOMMU_MAP_DMA mmio regions
...
For all VFIO devices, map all non-emulated MMIO regions to
the vfio container to allow PCIe P2P between all VFIO devices
on the virtual machine. This is required for a wide variety of
advanced GPU workloads such as GPUDirect P2P (DMA between two
GPUs), GPUDirect RDMA (DMA between a GPU and an IB device).
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-02-08 10:02:58 -08:00
Muminul Islam
56dbb8f0db
main: Support igvm as a payload
...
Currently kernel and firmware are checked as a payload.
IGVM should be checked as well. Otherwise, it hangs indefinitely.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-08 09:46:45 -08:00
Muminul Islam
66f8841ba1
scripts: add main as a component
...
Main should be a component during the commit check.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-08 09:46:45 -08:00
dependabot[bot]
5641e3a283
build: Bump libc from 0.2.151 to 0.2.153
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.151 to 0.2.153.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.151...0.2.153 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-08 09:51:55 +00:00
dependabot[bot]
653d0548eb
build: Bump darling from 0.20.3 to 0.20.5 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.3 to 0.20.5.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/commits )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-08 00:04:04 +00:00
Jinank Jain
50241f94d9
hypervisor: mshv: Add support to handle unaccepted GPA
...
Unaccepted GPA is usually thrown by Microsoft hypervisor in case of
mismatch between GPA and GVA mappings. This is a fatal message from the
hypervisor perspective so we would need to error out from the vcpu run
loop. Along with add some debug message to identify the broken mapping
between GVA and GPA.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-07 11:00:00 -08:00
Sean Banko
7633d47293
vmm: prefault memory in parallel to optimize boot time
...
On guests with large amounts of memory, using the `prefault` option can
lead to a very long boot time. This commit implements the strategy
taken by QEMU to prefault memory in parallel using multiple threads,
decreasing the time to allocate memory for large guests by
an order of magnitude or more.
For example, this commit reduces the time to allocate memory for a
guest configured with 704 GiB of memory on 1 NUMA node using 1 GiB
hugepages from 81.44134669s to just 6.865287881s.
Signed-off-by: Sean Banko <sbanko@crusoeenergy.com >
2024-02-07 08:59:03 -08:00
dependabot[bot]
939cc348ed
build: Bump futures from 0.3.28 to 0.3.30
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.28 to 0.3.30.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.30 )
---
updated-dependencies:
- dependency-name: futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-07 10:10:40 +00:00
dependabot[bot]
744f2b011b
build: Bump wasm-bindgen from 0.2.90 to 0.2.91 in /fuzz
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.90 to 0.2.91.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.90...0.2.91 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-07 09:41:27 +00:00
Bo Chen
08120b79fc
fuzz: Fix cargo fuzz build issue with crc32c
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-07 09:25:40 +00:00
Bo Chen
9b0b881351
arch: Remove unused wrapper data structure for linux_loader
...
The `ByteValued` trait implementations for the data structures from the
'linux_loader' crate are no longer needed, and hence their wrappers can
be removed.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-07 09:25:40 +00:00
Bo Chen
c1f4a7b295
main: Clarify truncate behavior for event monitor file
...
Fix beta clippy issue:
error: file opened with `create`, but `truncate` behavior not defined
--> src/main.rs:624:26
|
624 | .create(true)
| ^^^^^^^^^^^^- help: add: `.truncate(true)`
|
= help: if you intend to overwrite an existing file entirely, call `.truncate(true)`
= help: if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`
= help: alternatively, use `.append(true)` to append to the file instead of overwriting it
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options
= note: `-D clippy::suspicious-open-options` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::suspicious_open_options)]`
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-07 09:25:40 +00:00
Bo Chen
36890373cd
tests: Avoid clippy warning of unhandled I/O bytes
...
Fixes beta clippy issue:
error: read amount is not handled
--> tests/integration.rs:2121:15
|
2121 | match pty.read(&mut buf) {
| ^^^^^^^^^^^^^^^^^^
|
= help: use `Read::read_exact` instead, or handle partial reads
note: the result is consumed here, but the amount of I/O bytes remains unhandled
--> tests/integration.rs:2122:13
|
2122 | / Ok(_) => {
2123 | | let output = std::str::from_utf8(&buf).unwrap().to_string();
2124 | | match tx.send(output) {
2125 | | Ok(_) => (),
2126 | | Err(_) => break,
2127 | | }
2128 | | }
| |_____________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
= note: `#[deny(clippy::unused_io_amount)]` on by default
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
107f4bdc12
vhost_user_block: Allow dead_code for embedded error
...
The embedded error in the enum will be read on debug output of the
error.
Fixes beta clippy issue:
warning: field `0` is never read
--> vhost_user_block/src/lib.rs:64:23
|
64 | CreateKillEventFd(io::Error),
| ----------------- ^^^^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
64 | CreateKillEventFd(()),
| ~~
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
8899ebd63c
performance-metrics: Allow dead_code for embedded error
...
The embedded error in the enum will be read on debug output of the
error.
Fixes beta clippy issue:
warning: field `0` is never read
--> performance-metrics/src/performance_tests.rs:25:11
|
25 | Infra(InfraError),
| ----- ^^^^^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
25 | Infra(()),
| ~~
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
c19c73cb99
block: qcow: Fix beta clippy issue
...
warning: field `0` is never read
--> block/src/qcow/vec_cache.rs:139:21
|
139 | struct NumCache(pub u64);
| -------- ^^^^^^^
| |
| field in this struct
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
139 | struct NumCache(());
| ~~
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
4e0dc5203a
arch: x86_64: Disable dead code detection for embedded struct
...
These structs directly embed another struct and then implement
ByteValued on that struct to implement ByteValued for the inner struct.
As such the inner struct is never directly accessed so to avoid the dead
code analysis mark this as allowed.
Beta clippy fix:
warning: field `0` is never read
--> arch/src/x86_64/mod.rs:129:32
|
129 | struct MemmapTableEntryWrapper(hvm_memmap_table_entry);
| ----------------------- ^^^^^^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= note: `MemmapTableEntryWrapper` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
129 | struct MemmapTableEntryWrapper(());
|
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
61afd93a50
tests: Remove unnecessary use of vec![] macro
...
Beta clippy fix
warning: useless use of `vec!`
--> tests/integration.rs:5845:23
|
5845 | let kernels = vec![direct_kernel_boot_path()];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[direct_kernel_boot_path()]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
9dfc39d336
vmm: Make thread local initialiser constant
...
Beta clippy fix:
warning: initializer for `thread_local` value can be made `const`
--> vmm/src/sigwinch_listener.rs:27:40
|
27 | static TX: RefCell<Option<File>> = RefCell::new(None);
| ^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(None) }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#thread_local_initializer_can_be_made_const
= note: `#[warn(clippy::thread_local_initializer_can_be_made_const)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
e70bf59809
vmm: Directly clone console resize pipe
...
Beta clippy fix:
warning: this call to `as_ref.map(...)` does nothing
--> vmm/src/device_manager.rs:1234:9
|
1234 | self.console_resize_pipe.as_ref().map(Arc::clone)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.console_resize_pipe.clone()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
= note: `#[warn(clippy::useless_asref)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-07 09:25:40 +00:00
Rob Bradford
d516374c39
block: Replace use of crc32c crate with crc-any
...
According to crates.io the crc-any crate is actively maintained which
avoids issues with the crc32c crate and the nightly compiler.
Fixes : #6168
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-02-06 14:29:10 -08:00
Muminul Islam
9b84c6c3f5
vmm: check correct buffer size during import
...
When we import a page, we have a page with
some data or empty, empty does not mean there is no data,
it rather means it's full of zeros. We can skip writing the
data as guest memory of the page is already zeroed.
A page could be partially filled and the rest of the content is zero.
Our IGVM generation tool only fills data here if there is some data
without zeros. Rest of them are padded. We only write data
without padding and compare whether we complete writing
the buffer content. Still it's a full page and update the variable
with length of the full page.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-02-06 14:28:42 -08:00
dependabot[bot]
9b54a8fb1c
build: Bump js-sys from 0.3.66 to 0.3.67 in /fuzz
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.66 to 0.3.67.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-06 20:51:30 +00:00
dependabot[bot]
dd13fee3d7
build: Bump pin-project from 1.1.3 to 1.1.4
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.3...v1.1.4 )
---
updated-dependencies:
- dependency-name: pin-project
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-06 20:51:19 +00:00
dependabot[bot]
3042a0baf3
build: Bump crossbeam-utils from 0.8.16 to 0.8.19
...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) from 0.8.16 to 0.8.19.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.16...crossbeam-utils-0.8.19 )
---
updated-dependencies:
- dependency-name: crossbeam-utils
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-03 00:20:04 +00:00
dependabot[bot]
dbda3ade92
build: Bump semver from 1.0.20 to 1.0.21 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-02 23:25:01 +00:00
dependabot[bot]
6dc7e21327
build: Bump semver from 1.0.20 to 1.0.21
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-02 00:39:59 +00:00
dependabot[bot]
166111a0d8
build: Bump pin-project from 1.1.3 to 1.1.4 in /fuzz
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.3...v1.1.4 )
---
updated-dependencies:
- dependency-name: pin-project
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-01 23:19:42 +00:00
dependabot[bot]
73bfaace83
build: Bump async-trait from 0.1.74 to 0.1.76
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.74 to 0.1.76.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.74...0.1.76 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-01 00:20:46 +00:00
dependabot[bot]
95cd81073e
build: Bump serde from 1.0.195 to 1.0.196 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.195 to 1.0.196.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.195...v1.0.196 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-31 23:24:29 +00:00
dependabot[bot]
3603c51f0b
build: Bump openssl-sys from 0.9.93 to 0.9.99
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.93 to 0.9.99.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.93...openssl-sys-v0.9.99 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-31 00:22:37 +00:00
dependabot[bot]
8c172e41c6
build: Bump smallvec from 1.12.0 to 1.13.1 in /fuzz
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.12.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-30 23:22:46 +00:00
Thomas Barrett
5ec47d4883
arch: x86_64: enable HTT flag
...
When the HTT flag CPUID.1.EDX[HTT] is 0, it indicates that there is
only a single logical processor in the package. When HTT is 1, it
indicates that CPUID.1.EBX[23:16] contains the number of logical
processors in the package.
When this information is not included in CPUID leaf 0x1, some cpu
topology enumeration software such as hwloc are known to crash.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-30 13:49:35 -08:00
Ruslan Mstoi
1617736937
scripts: check-image-compatibility.sh: remove unused variable COUNT
...
COUNT variable is never used, hence remove
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-01-30 09:07:34 -08:00
Ruslan Mstoi
a9340f5d9d
scripts: check-image-compatibility.sh: remove unused variable extension
...
extenstion variable is never used, hence remove
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-01-30 09:07:34 -08:00
Ruslan Mstoi
82cac6f6ad
scripts: check-image-compatibility.sh: fix variable name typo
...
Fix liness to lines
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-01-30 09:07:34 -08:00
dependabot[bot]
c1206b604e
build: Bump concurrent-queue from 2.3.0 to 2.4.0
...
Bumps [concurrent-queue](https://github.com/smol-rs/concurrent-queue ) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/smol-rs/concurrent-queue/releases )
- [Changelog](https://github.com/smol-rs/concurrent-queue/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/concurrent-queue/compare/v2.3.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: concurrent-queue
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-30 10:57:17 +00:00
dependabot[bot]
0a32779506
build: Bump getrandom from 0.2.11 to 0.2.12 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.11 to 0.2.12.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.11...v0.2.12 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-30 00:06:21 +00:00
Ruslan Mstoi
4625f3ca3a
scripts: dev_cli: remove unused cargo variable
...
Variable cargo is unused, hence remove it.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2024-01-29 10:03:49 -08:00
dependabot[bot]
3945253619
build: Bump zerocopy from 0.7.31 to 0.7.32
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.31 to 0.7.32.
- [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.7.31...v0.7.32 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-27 00:35:32 +00:00
dependabot[bot]
a5296a8147
build: Bump serde_json from 1.0.111 to 1.0.112 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.111 to 1.0.112.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.111...v1.0.112 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-26 23:34:50 +00:00
dependabot[bot]
7acfff5da7
build: Bump gdbstub from 0.7.0 to 0.7.1
...
Bumps [gdbstub](https://github.com/daniel5151/gdbstub ) from 0.7.0 to 0.7.1.
- [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.0...0.7.1 )
---
updated-dependencies:
- dependency-name: gdbstub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-26 10:03:23 +00:00
Bo Chen
026d8908fd
build: Bump rustix from 0.38.8 to 0.38.25
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-01-26 09:17:41 +00:00
dependabot[bot]
c8ad2bfc05
build: Bump wasm-bindgen from 0.2.89 to 0.2.90 in /fuzz
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.89 to 0.2.90.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.89...0.2.90 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-25 23:40:20 +00:00
Philipp Schuster
e50a641126
devices: add debug-console device
...
This commit adds the debug-console (or debugcon) device to CHV. It is a
very simple device on I/O port 0xe9 supported by QEMU and BOCHS. It is
meant for printing information as easy as possible, without any
necessary configuration from the guest at all.
It is primarily interesting to OS/kernel and firmware developers as they
can produce output as soon as the guest starts without any configuration
of a serial device or similar. Furthermore, a kernel hacker might use
this device for information of type B whereas information of type A are
printed to the serial device.
This device is not used by default by Linux, Windows, or any other
"real" OS, but only by toy kernels and during firmware development.
In the CLI, it can be configured similar to --console or --serial with
the --debug-console parameter.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2024-01-25 10:25:14 -08:00
dependabot[bot]
8f90fba250
build: Bump serde from 1.0.168 to 1.0.193
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.168 to 1.0.193.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.193 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-25 11:09:33 +00:00
Bo Chen
3ce0fef7fd
build: Bump vmm-sys-util crate and its consumers
...
This patch bumps the following crates, including `kvm-bindings@0.7.0`*,
`kvm-ioctls@0.16 .0`**, `linux-loader@0.11 .0`, `versionize@0.2.0`,
`versionize_derive@0.1.6`***, `vhost@0.10 .0`,
`vhost-user-backend@0.13 .1`, `virtio-queue@0.11 .0`, `vm-memory@0.14 .0`,
`vmm-sys-util@0.12 .1`, and the latest of `vfio-bindings`, `vfio-ioctls`,
`mshv-bindings`,`mshv-ioctls`, and `vfio-user`.
* A fork of the `kvm-bindings` crate is being used to support
serialization of various structs for migration [1]. Also, code changes
are made to accommodate the updated `struct xsave` from the Linux
kernel. Note: these changes related to `struct xsave` break
live-upgrade.
** The new `kvm-ioctls` crate introduced breaking changes for
the `get/set_one_reg` API on `aarch64` [2], so code changes are made to
the new APIs.
*** A fork of the `versionize_derive` crate is being used to support
versionize on packed structs [3].
[1] https://github.com/cloud-hypervisor/kvm-bindings/tree/ch-v0.7.0
[2] https://github.com/rust-vmm/kvm-ioctls/pull/223
[3] https://github.com/cloud-hypervisor/versionize_derive/tree/ch-0.1.6
Fixes : #6072
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-01-25 10:14:54 +00:00
dependabot[bot]
6cb1d908bf
build: Bump serde_json from 1.0.110 to 1.0.111 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.110 to 1.0.111.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.110...v1.0.111 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-24 23:20:37 +00:00
Muminul Islam
51ebc3ac92
vmm: set SEV control register for SEV-Enabled guest
...
Set the SEV control register so we know where to
start running. This register configures the
SEV feature control state on a virtual processor.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-01-24 14:32:16 -08:00
Muminul Islam
5368ff28da
hypervisor: Add api to set sev control register
...
This register configures the SEV feature control
state on a virtual processor.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-01-24 14:32:16 -08:00
Rob Bradford
3993663e5c
hypervisor: kvm: Import TDX vmcall structure
...
Consistent with the other data structures and constants used in TDX
support code import the necessary structures from the kernel for
accessing the vmcall structure.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-01-24 11:02:05 -08:00
dependabot[bot]
2c9cf8d8af
build: Bump proc-macro2 from 1.0.70 to 1.0.78
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.70 to 1.0.78.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.70...1.0.78 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-24 13:44:45 +00:00
dependabot[bot]
b4eb2af1c6
build: Bump anstream from 0.6.8 to 0.6.11 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.8 to 0.6.11.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.8...anstream-v0.6.11 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-23 23:57:33 +00:00
Alyssa Ross
7674196113
vmm: remove Default impls for config
...
These Default implementations either don't produce valid configs, are
no longer used outside of tests, or both.
For the tests, we can define our own local "default" values that make
the most sense for the tests, without worrying about what's
a (somewhat) sensible "global" default value.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-23 12:44:44 +00:00
dependabot[bot]
c71cb00a5a
build: Bump anyhow from 1.0.75 to 1.0.79
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.75 to 1.0.79.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.75...1.0.79 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-23 12:44:21 +00:00
Ravi kumar Veeramally
895dc12a74
vmm: Replace Debug with Display rendering in HTTP error message
...
Bumping anyhow crate from 1.0.75 to 1.0.79 will cause seccomp
failures through integration tests. Newly added backtrace support
relies on readlink and many other syscalls.
Issue noticed with test_api_http_pause_resume test, where second time
of VM PAUSE or VM RESUME prints error and causes panic.
Noticed that panic message in a thread which is not allowed to write
output triggered the issue.
So implementing Display trait for HttpError and ApiError enums to avoid
adding many syscalls to seccomp filter section.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-01-23 12:44:21 +00:00
dependabot[bot]
9cb996db09
build: Bump clap from 4.4.12 to 4.4.18 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.12 to 4.4.18.
- [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/v4.4.12...v4.4.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-22 23:38:27 +00:00
dependabot[bot]
90245be978
build: Bump anstyle-wincon from 3.0.1 to 3.0.2
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 3.0.1 to 3.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.1...anstyle-wincon-v3.0.2 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-20 01:11:15 +00:00
dependabot[bot]
15e2218c25
build: Bump uuid from 1.6.1 to 1.7.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.6.1...1.7.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-19 23:13:28 +00:00
Sean Banko
e33279471f
vmm: support setting cpu affinity with host cpu indices >255
...
On hosts with >256 cpus, setting the cpu affinity to a host cpu index
>255 will return an error because type of `host_cpu` is `u8`.
This commit changes the type of `host_cpu` to `usize` to remove this
limitation.
Signed-off-by: Sean Banko <sbanko@crusoeenergy.com >
2024-01-19 09:30:16 +00:00
dependabot[bot]
993a8324e2
build: Bump serde from 1.0.194 to 1.0.195 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.194 to 1.0.195.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.194...v1.0.195 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-19 00:04:00 +00:00
Thomas Barrett
76dbe660f5
scripts: create download_ovmf helper function
...
Move the duplicated logic to download OVMF into a helper function.
Explicitly specify the OVMF_FW_TAG instead of downloading the latest
so that new OVMF versions can be easily tested.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-18 14:02:02 -08:00
Wei Liu
e61c6a1382
gitignore: ignore vendor directory
...
This is the default output directory for `cargo vendor`.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-01-18 14:00:37 -08:00
Alyssa Ross
4ae5503b58
vmm: remove redundant tests
...
These are all duplicates.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-18 15:03:24 +00:00
dependabot[bot]
7ae46e9b61
build: Bump anstream from 0.6.5 to 0.6.8 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.5 to 0.6.8.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.5...anstream-v0.6.8 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-18 14:54:08 +00:00
Ravi kumar Veeramally
33a05c7247
docs: Update vhost-user-net-testing instructions
...
Testing instructions are very old and type=dpdkvhostuser is
deprecated from DPDK.
logs from /var/log/openvswitch/ovs-vswitchd.log
|netdev_dpdk|WARN|dpdkvhostuser ports are considered deprecated;
please migrate to dpdkvhostuserclient ports
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2024-01-17 09:06:11 -08:00
Daniel Farina
9b67bc5fe5
docs: update kernel pre-requisite information for iommu
...
Linux 5.14 merged x86 support. See
https://lore.kernel.org/lkml/YN7IDbKZFQnYFCNq@8bytes.org/
Signed-off-by: Daniel Farina <daniel@ubicloud.com >
2024-01-17 10:20:20 +00:00
Alyssa Ross
4ca18c082e
vmm: use trait objects for API actions
...
Uses of the old ApiRequest enum conflated two different concerns:
identifying an API request endpoint, and storing data for an API
request. This led to ApiRequest values being passed around with junk
data just to communicate a request type, which forced all API request
body types to implement Default, which in some cases doesn't make any
sense — what's the "default" path for a vhost-user socket? The
nonsensical Default values have led to tests relying on being able to
use nonsensical data, which is an impediment to adding better
validation for these types.
Rather than having API request types be represented by an enum, which
has to carry associated body data everywhere it's used, it makes more
sense to represent API request types as trait objects. These can have
an associated type for the type of the request body, and this makes it
possible to pass API request types and data around as siblings in a
type-safe way without forcing them into a single value even where it
doesn't make sense. Trait objects also give us dynamic dispatch,
which lets us get rid of several large match blocks.
To keep it possible to fuzz the HTTP API, all the Vmm methods called
by the HTTP API are pulled out into a trait, so the fuzzer can provide
its own stub implementation of the VMM.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-17 10:20:02 +00:00
dependabot[bot]
6aa7afbb6f
build: Bump futures-sink from 0.3.29 to 0.3.30 in /fuzz
...
Bumps [futures-sink](https://github.com/rust-lang/futures-rs ) from 0.3.29 to 0.3.30.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.29...0.3.30 )
---
updated-dependencies:
- dependency-name: futures-sink
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-16 16:37:25 -08:00
Rob Bradford
d3bc877a07
build: Re-enable test_vfio on AMD workers
...
With the change in 7bc764d to expose the SVM bit for nested
virtualisation test_vfio can be re-enabled on the AMD workers.
Fixes : #5895
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-01-16 11:07:33 -08:00
Rob Bradford
81bd07fc8b
vmm: openapi: String quote the enum members of ConsoleConfig::Mode
...
This disambiguates from the null keyword.
Fixes : #6107
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-01-16 11:05:51 -08:00
dependabot[bot]
d5b813838c
build: Bump smallvec from 1.11.2 to 1.12.0 in /fuzz
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.11.2 to 1.12.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.2...v1.12.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-16 00:05:52 +00:00
Thomas Barrett
7bc764d4e0
arch: x86_64: enable nested virtualization on amd if supported
...
When using amd topology, the svm feature flag on cpuid leaf
0x8000_0001.ecx is overwritten. We update the amd cpu topology
logic to use the flag values that originated in
KVM_GET_SUPPORTED_CPUID ioctl and override as necessary.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-15 17:50:40 +00:00
dependabot[bot]
34e965d775
build: Bump libc from 0.2.151 to 0.2.152 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.151 to 0.2.152.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.151...0.2.152 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-12 23:26:50 +00:00
dependabot[bot]
7c4ca2bcf9
build: Bump remain from 0.2.11 to 0.2.12 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.11 to 0.2.12.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.11...0.2.12 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-11 23:16:12 +00:00
Alyssa Ross
0fb44c074f
arch: fix rustdoc warning
...
warning: this URL is not a hyperlink
--> arch/src/aarch64/layout.rs:114:58
|
114 | ...in https://www.kernel.org/doc/Documentation/arm64/booting.txt .
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.kernel.org/doc/Documentation/arm64/booting.txt .>`
|
= note: bare URLs are not automatically turned into clickable links
= note: `#[warn(rustdoc::bare_urls)]` on by default
I also noticed that it looks like this comment was supposed to be
applied to FDT_MAX_SIZE, not FDT_START, so I moved it.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-10 17:37:29 +00:00
Alyssa Ross
451d3fb2f0
vmm: limit VSOCK CIDs to 32 bits
...
The VIRTIO specification[1] says:
> The upper 32 bits of the CID are reserved and zeroed.
We should therefore not allow the user to supply a VSOCK CID with
those bits set. To accomplish this, limit the public API of the
virtio-vsock device to only accept 32-bit CIDs, while still using
64-bit CIDs internally since that's how virtio-vsock works.
[1]: https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html#x1-4400004
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-10 17:28:56 +00:00
Alyssa Ross
7d0b85d727
vmm: forbid using special VSOCK CIDs for guests
...
I accidentally ran a VM with CID 2 (VMADDR_CID_HOST), and very strange
and difficult to debug behavior ensued. I don't think a virtio-vsock
device should be allowed to have any of the special CIDs
(VMADDR_CID_ANY, VMADDR_CID_HYPERVISOR, VMADDR_CID_LOCAL, VMADDR_CID_HOST).
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-10 10:43:21 +00:00
dependabot[bot]
5857d8a7cc
build: Bump proc-macro2 from 1.0.75 to 1.0.76 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.75 to 1.0.76.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.75...1.0.76 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-09 23:35:10 +00:00
Alyssa Ross
48de800756
virtio-devices: fix reading vsock connect command
...
The socket is nonblocking, so it's not guaranteed that it will be
possible to read the whole connect command in a single iteration of
the event loop. To reproduce:
(echo -n 'CONNECT '; sleep 1; echo 1234; cat) | socat STDIO UNIX-CONNECT:vsock.sock
This would produce the error:
cloud-hypervisor: 5.509209s: <_vsock4> INFO:virtio-devices/src/vsock/unix/muxer.rs:446 -- vsock: error adding local-init connection: UnixRead(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
To fix this, if we only get a partial command, we need to save it for
future iterations of the event loop, and only proceed once we've read
a complete command.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-09 16:01:52 +00:00
Muminul Islam
dc68a6e30f
vmm: igvm: complete isolated import
...
Complete the isolated import, telling the
Microsoft hypervisor that import is done so that
MSHV can issue SNP_LAUNCH_FINISH command.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-01-08 15:55:39 -08:00
Muminul Islam
cbcbf635ab
hypervisor: use right size of host_data
...
Use right and exact size 32 bytes for host data field
for completing the isolated import. This way OOB
can be avoided during a function call.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-01-08 15:55:39 -08:00
Muminul Islam
433d4ddc0c
vmm: igvm: import the isolated pages
...
Import all the isolated pages after parsing is
done on the iGVM file. Hypervisor adds those
pages for PSP measurement(part of the hashing).
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-01-08 15:55:39 -08:00
dependabot[bot]
9d2a939714
build: Bump thiserror from 1.0.53 to 1.0.56 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.53 to 1.0.56.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.53...1.0.56 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-08 23:32:11 +00:00
Jinank Jain
c97b56251d
docs: Update instructions to build debug TD-SHIM
...
Current instructions are incorrect and there is now a new profile called
dev-opt to build the debug version of TD-SHIM.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-01-08 15:10:06 -08:00
Rob Bradford
e041defa67
fuzz: Fix warnings for unused arch code
...
Under the fuzzer this code appears dead:
error: field `0` is never read
--> /home/rob/src/cloud-hypervisor/arch/src/x86_64/mod.rs:128:32
|
128 | struct MemmapTableEntryWrapper(hvm_memmap_table_entry);
| ----------------------- ^^^^^^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= note: `MemmapTableEntryWrapper` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
128 | struct MemmapTableEntryWrapper(());
| ~~
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-01-08 17:39:05 +00:00
Alyssa Ross
9d5dfa879b
fuzz: fix unused import warnings
...
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-01-08 17:39:05 +00:00
Rob Bradford
a511dd1b18
ci: Add cargo fuzz check to GitHub actions
...
See: #6085
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-01-08 17:39:05 +00:00
dependabot[bot]
a5b6e2c5fd
build: Bump anyhow from 1.0.75 to 1.0.79 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.75 to 1.0.79.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.75...1.0.79 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-05 23:52:38 +00:00
dependabot[bot]
2da5763cac
build: Bump futures-core from 0.3.29 to 0.3.30
...
Bumps [futures-core](https://github.com/rust-lang/futures-rs ) from 0.3.29 to 0.3.30.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.29...0.3.30 )
---
updated-dependencies:
- dependency-name: futures-core
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-05 00:15:57 +00:00
dependabot[bot]
3e3bb64f4b
build: Bump micro_http from a4d632f to e75dfa1 in /fuzz
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `a4d632f` to `e75dfa1`.
- [Commits](a4d632f2c5...e75dfa1eee )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-04 23:58:15 +00:00
dependabot[bot]
61f0db7713
build: Bump serde_derive from 1.0.193 to 1.0.194 in /fuzz
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.193 to 1.0.194.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.193...v1.0.194 )
---
updated-dependencies:
- dependency-name: serde_derive
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-04 08:25:04 +00:00
dependabot[bot]
0eba2d1b81
build: Bump micro_http from a4d632f to e75dfa1
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `a4d632f` to `e75dfa1`.
- [Commits](a4d632f2c5...e75dfa1eee )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-03 23:54:23 +00:00
Thomas Barrett
9e9bcd24c6
tests: add rate-limit group integration tests
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-03 10:21:06 -08:00
Thomas Barrett
c297d8d796
vmm: use RateLimiterGroup for virtio-blk devices
...
Add a 'rate_limit_groups' field to VmConfig that defines a set of
named RateLimiterGroups.
When the 'rate_limit_group' field of DiskConfig is defined, all
virtio-blk queues will be rate-limited by a shared RateLimiterGroup.
The lifecycle of all RateLimiterGroups is tied to the Vm.
A RateLimiterGroup may exist even if no Disks are configured to use
the RateLimiterGroup. Disks may be hot-added or hot-removed from the
RateLimiterGroup.
When the 'rate_limiter' field of DiskConfig is defined, we construct
an anonymous RateLimiterGroup whose lifecycle is tied to the Disk.
This is primarily done for api backwards compatability. Importantly,
the behavior is not the same! This implementation rate_limits the
aggregate bandwidth / iops of an individual disk rather than the
bandwidth / iops of an individual queue of a disk.
When neither the 'rate_limit_group' or the 'rate_limiter' fields of
DiskConfig is defined, the Disk is not rate-limited.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-03 10:21:06 -08:00
Thomas Barrett
c71da496c0
rate_limiter: add RateLimiterGroup
...
Add a 'rate_limiter/group' module that defines the RateLimiterGroup
and a RateLimiterGroupHandle types.
The RateLimiterGroupHandle can be used in place of a RateLimiter to
limit the aggregate bandwidth and/or ops of multiple virtio-blk or
virtio-net queues.
Each RateLimiterGroup has an associated worker thread that broadcasts
an event to each RateLimiterGroupHandle when a RateLimiter is unblocked.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-03 10:21:06 -08:00
dependabot[bot]
d11480197e
build: Bump serde_json from 1.0.107 to 1.0.109
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.107 to 1.0.109.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.109 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-02 08:58:51 +00:00
dependabot[bot]
533de1b3c3
build: Bump quote from 1.0.33 to 1.0.34 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-02 08:58:36 +00:00
Yi Wang
3d6594a594
build: fix clippy ptr arg issue
...
CI reports errors:
error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> arch/src/x86_64/mod.rs:1351:19
|
1351 | epc_sections: &Vec<SgxEpcSection>,
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `&[SgxEpcSection]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `-D clippy::ptr-arg` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ptr_arg)]`
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-01-02 08:58:11 +00:00
Yi Wang
ee2f0c3cb4
build: fix clippy Path::join issue
...
CI reports clippy errors:
error: argument to `Path::join` starts with a path separator
--> tests/integration.rs:4076:58
|
4076 | let serial_socket = guest.tmp_dir.as_path().join("/tmp/serial.socket");
| ^^^^^^^^^^^^^^^^^^^^
|
= note: joining a path starting with separator will replace the path instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#join_absolute_paths
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-01-02 08:58:11 +00:00
Yi Wang
9c2d650cb8
build: fix clippy complex closures issue
...
CI reports clippy errors:
error: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
--> test_infra/src/lib.rs:93:51
|
93 | match (|| -> Result<(), WaitForBootError> {
| ___________________________________________________^
94 | | let listener =
95 | | TcpListener::bind(listen_addr.as_str()).map_err(WaitForBootError::Listen)?;
96 | | listener
... |
145 | | }
146 | | })() {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
= note: `-D clippy::blocks-in-conditions` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::blocks_in_conditions)]`
Signed-off-by: Yi Wang <foxywang@tencent.com >
2024-01-02 08:58:11 +00:00
Thomas Barrett
5c0b66529a
arch: x86_64: handle npot CPU topology
...
This PR addresses a bug in which the cpu topology of a guest
with non power-of-two number of cores is incorrect. For example,
in some contexts, a virtual machine with 2-sockets and 12-cores
will incorrectly believe that 16 cores are on socket 1 and 8
cores are on socket 2. In other cases, common topology enumeration
software such as hwloc will crash.
The root of the problem was the way that cloud-hypervisor generates
apic_id. On x86_64, the (x2) apic_id embeds information about cpu
topology. The cpuid instruction is primarily used to discover the
number of sockets, dies, cores, threads, etc. Using this information,
the (x2) apic_id is masked to determine which {core, die, socket} the
cpu is on. When the cpu topology is not a power of two
(e.g. a 12-core machine), this requires non-contiguous (x2) apic_id.
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2024-01-01 10:05:03 +00:00
dependabot[bot]
a2ceb00fbc
build: Bump futures-core from 0.3.29 to 0.3.30 in /fuzz
...
Bumps [futures-core](https://github.com/rust-lang/futures-rs ) from 0.3.29 to 0.3.30.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.29...0.3.30 )
---
updated-dependencies:
- dependency-name: futures-core
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-30 10:28:33 +00:00
dependabot[bot]
48fc91467b
build: Bump thiserror from 1.0.40 to 1.0.52
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.40 to 1.0.52.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.40...1.0.52 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-30 10:28:17 +00:00
dependabot[bot]
c2b746fe15
build: Bump clap from 4.4.11 to 4.4.12 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.11 to 4.4.12.
- [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/v4.4.11...v4.4.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-29 09:35:08 +00:00
dependabot[bot]
27e8e4ece9
build: Bump getrandom from 0.2.10 to 0.2.11
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.10 to 0.2.11.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-29 09:34:56 +00:00
dependabot[bot]
e03c0c12a7
build: Bump zerocopy from 0.7.31 to 0.7.32 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.31 to 0.7.32.
- [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.7.31...v0.7.32 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-28 10:17:57 +00:00
dependabot[bot]
f8195faaa1
build: Bump once_cell from 1.18.0 to 1.19.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.18.0 to 1.19.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 00:19:29 +00:00
dependabot[bot]
accac17b22
build: Bump proc-macro2 from 1.0.70 to 1.0.71 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.70...1.0.71 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-21 23:25:33 +00:00
dependabot[bot]
580b45505b
build: Bump blocking from 1.3.1 to 1.5.1
...
Bumps [blocking](https://github.com/smol-rs/blocking ) from 1.3.1 to 1.5.1.
- [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.3.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: blocking
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-21 00:24:38 +00:00
Ravi kumar Veeramally
24f384d239
tests: Migrate docker container from ubuntu 20.04 to 22.04
...
The following tests have been temporarily disabled:
1. Live upgrade/migration test with ovs-dpdk (#5532 );
2. Disk hotplug tests on windows guests (#6037 );
This patch has been tested with PR #6048 .
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
Tested-by: Bo Chen <chen.bo@intel.com >
2023-12-20 12:12:05 -08:00
dependabot[bot]
eaef2ed7de
build: Bump anstyle-query from 1.0.0 to 1.0.2
...
Bumps [anstyle-query](https://github.com/rust-cli/anstyle ) from 1.0.0 to 1.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-query-v1.0.0...anstyle-query-v1.0.2 )
---
updated-dependencies:
- dependency-name: anstyle-query
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-19 23:52:22 +00:00
dependabot[bot]
4995e8db35
build: Bump tracing from 0.1.37 to 0.1.40
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.37 to 0.1.40.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.40 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-18 23:59:09 +00:00
dependabot[bot]
16c3df6cad
build: Bump thiserror from 1.0.50 to 1.0.51 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.50...1.0.51 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-18 23:22:27 +00:00
Jinank Jain
42477207e2
misc: Add check for sev_snp and target_arch
...
Feature 'sev_snp' can only be enabled when the target_arch is 'x86_64'
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-12-18 08:55:43 -08:00
Jinank Jain
9b151d06ca
vmm: igvm: Generate memory map for SEV-SNP guests
...
For SEV-SNP guests we need to provide the extended memory. It follows a
very simple layout and very similar to other x86 guests.
First segment: [HIGH_RAM_START - MEM_32BIT_RESERVED_START]
PCI hole: [MEM_32BIT_RESERVED_START - RAM_64BIT_START]
Second segment: [RAM_64BIT_START - RAM_END]
Fixes #5993
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-12-18 08:55:43 -08:00
Philipp Schuster
91fe48d5f7
scripts: more compatible shebangs
...
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-12-16 09:35:32 +00:00
dependabot[bot]
e0abeeb790
build: Bump acpi_tables from 1a733bf to 76e8552
...
Bumps [acpi_tables](https://github.com/rust-vmm/acpi_tables ) from `1a733bf` to `76e8552`.
- [Commits](1a733bf690...76e8552f57 )
---
updated-dependencies:
- dependency-name: acpi_tables
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-16 01:10:17 +00:00
dependabot[bot]
1302dfcafa
build: Bump bitfield-struct from 0.5.4 to 0.5.6
...
Bumps [bitfield-struct](https://github.com/wrenger/bitfield-struct-rs ) from 0.5.4 to 0.5.6.
- [Release notes](https://github.com/wrenger/bitfield-struct-rs/releases )
- [Commits](https://github.com/wrenger/bitfield-struct-rs/compare/0.5.4...0.5.6 )
---
updated-dependencies:
- dependency-name: bitfield-struct
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-16 00:09:12 +00:00
dependabot[bot]
6c9ed2a655
build: Bump libc from 0.2.150 to 0.2.151 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.150 to 0.2.151.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.150...0.2.151 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-15 23:50:46 +00:00
dependabot[bot]
b5ea8b7b02
build: Bump itoa from 1.0.9 to 1.0.10 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-15 23:37:42 +00:00
dependabot[bot]
82a3664139
build: Bump env_logger from 0.10.0 to 0.10.1
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.0...v0.10.1 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-15 17:46:09 +00:00
dependabot[bot]
b2a78c6188
build: Bump zerocopy from 0.7.21 to 0.7.31
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.21 to 0.7.31.
- [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.7.21...v0.7.31 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-15 04:39:12 +00:00
dependabot[bot]
2b4e620813
build: Bump zerocopy from 0.7.29 to 0.7.31 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.29 to 0.7.31.
- [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.7.29...v0.7.31 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-14 23:20:06 +00:00
Bo Chen
5e702dcd5e
build: Release v37.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-14 09:49:25 -08:00
Bo Chen
602d704558
tests: Stabilize 'test_vfio_user' with retries to run host commands
...
The 'test_vfio_user' is prone to fail when the system is under high
workloads with errors:
```
Error while connecting to /var/tmp/spdk.sock
Is SPDK application running?
Error details: Invalid or non-existing address: '/var/tmp/spdk.sock'
```
This is because SPDK is not fully functional before we request to
create a nvme device using the vfio_user protocol. This patch stabilize
this test with allowing retires to execute host commands.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-14 07:12:04 -08:00
Bo Chen
38a2808d85
arch: x86_64: Refactor the way to generate e820 RAM maps
...
This patch defines a new function 'generate_ram_ranges', to generate
usable physical memory ranges for the guest based on the existing guest
memory managed by VMM. This function is also made public, so that it can
be reused, say by the IGVM loader in the future [1].
No functional change.
See: #6020
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-14 07:11:53 -08:00
dependabot[bot]
5e2f218832
build: Bump async-executor from 1.5.1 to 1.8.0
...
Bumps [async-executor](https://github.com/smol-rs/async-executor ) from 1.5.1 to 1.8.0.
- [Release notes](https://github.com/smol-rs/async-executor/releases )
- [Changelog](https://github.com/smol-rs/async-executor/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-executor/compare/v1.5.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: async-executor
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-14 00:46:10 +00:00
dependabot[bot]
2fb8854ff6
build: Bump once_cell from 1.18.0 to 1.19.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.18.0 to 1.19.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-13 23:54:27 +00:00
dependabot[bot]
883bb22b65
build: Bump mshv-ioctls from 6901f9c to 0dd4d34
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `6901f9c` to `0dd4d34`.
- [Commits](6901f9cbd3...0dd4d3452a )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-13 23:24:43 +00:00
dependabot[bot]
442fe6afcb
build: Bump anstyle-query from 1.0.0 to 1.0.2 in /fuzz
...
Bumps [anstyle-query](https://github.com/rust-cli/anstyle ) from 1.0.0 to 1.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-query-v1.0.0...anstyle-query-v1.0.2 )
---
updated-dependencies:
- dependency-name: anstyle-query
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-12 23:44:37 +00:00
Bo Chen
e64b66054e
vmm: tdx: Error out early for TD migration
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-12 11:45:40 -08:00
Bo Chen
ceb1be9f50
vmm: Fix a typo from send_migration()
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-12 11:45:40 -08:00
Muminul Islam
7d5ea5ca37
hypervisor: fix few typos and cosmetic issues
...
This patch adds missing new lines after functions,
fixes few typos in the comments, adds few missing
comments to SNP related functions.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-12-12 14:42:22 +00:00
dependabot[bot]
d5839fe03c
build: Bump pin-project from 1.1.2 to 1.1.3
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: pin-project
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-12 00:21:51 +00:00
dependabot[bot]
de1b7f5e83
build: Bump ryu from 1.0.15 to 1.0.16 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.15 to 1.0.16.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.15...1.0.16 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-11 23:59:23 +00:00
Jinank Jain
cf8a348238
docs: Add a missing backslash
...
There is missing backslash in the qemu command to launch windows guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-12-11 13:30:24 +00:00
Jinank Jain
2197989782
vmm: igvm: Remove redundant copy_from_slice
...
There is no requirement to call copy_from_slice, since all the member
variables are identical and we can directly assign them value.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-12-11 13:30:05 +00:00
Jinank Jain
5d4fe8efb9
github: ci: Move to action/checkout v4
...
There is a mix of v2, v3 and v4 in the codebase. Let's move to v4
everywhere because v2 seems to be using a deprecated version of nodejs.
This is throwing warnings when the Github action CI is running.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-12-11 13:29:11 +00:00
Jinank Jain
638e29bdcc
hypervisor: vmm: Fix warnings in Cargo.toml
...
Currently there are some inconsistencies in Cargo.toml which is causing
the following warnings during the build process:
Error parsing Cargo.toml manifest, fallback to caching entire file:
Invalid TOML document: expected key-value, found comma
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-12-11 13:29:11 +00:00
dependabot[bot]
d1560b4223
build: Bump futures-core from 0.3.28 to 0.3.29
...
Bumps [futures-core](https://github.com/rust-lang/futures-rs ) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29 )
---
updated-dependencies:
- dependency-name: futures-core
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-09 00:45:57 +00:00
dependabot[bot]
6d7224dfee
build: Bump anstream from 0.6.4 to 0.6.5 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.4 to 0.6.5.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.4...anstream-v0.6.5 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-08 23:41:32 +00:00
Muminul Islam
f38adfa166
vmm: Pass IGVM file to the loader
...
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-12-08 09:22:42 -08:00
Muminul Islam
7030b15e63
vmm: Add igvm module and loader module
...
vmm: Add igvm module and loader module
Add a separate module named igvm to the vmm crate
with definitions to parse and load igvm to the guest memory.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-12-08 09:22:42 -08:00
Muminul Islam
ec79820b3f
hypervisor: Add api to retrieve CPUID leaf
...
Add necessary API to retrieve cpuid leaf on MSHV.
This API is used to update cpuid information
during the parsing of the igvm file.
Microsoft hypervisor does not provide common
CpuID like KVM. That's why we need to call this API
during the IGVM parsing.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-12-08 09:22:42 -08:00
Muminul Islam
b9117c9c50
github: workflow: Build/quality test for igvm
...
Extend the current github actions to build and
test clippy for igvm feature.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-12-08 09:22:42 -08:00
Muminul Islam
13ef424bf1
vmm: Add IGVM to the config/commandline
...
This patch adds igvm to the Vm config and params as well as
the command line argument to pass igvm file to load into
guest memory. The file must maintain the IGVM format.
The CLI option is featured guarded by igvm feature gate.
The IGVM(Independent Guest Virtual Machine) file format
is designed to encapsulate all information required to
launch a virtual machine on any given virtualization stack,
with support for different isolation technologies such as
AMD SEV-SNP and Intel TDX.
At a conceptual level, this file format is a set of commands created
by the tool that generated the file, used by the loader to construct
the initial guest state. The file format also contains measurement
information that the underlying platform will use to confirm that
the file was loaded correctly and signed by the appropriate authorities.
The IGVM file is generated by the tool:
https://github.com/microsoft/igvm-tooling
The IGVM file is parsed by the following crates:
https://github.com/microsoft/igvm
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-12-08 09:22:42 -08:00
Bo Chen
c0faa75922
tests: Print ExitStatus for 'test_serial_socket_interaction'
...
This test has been failing fairly often on the AMD worker. Let's
collect more log for debugging.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-08 11:26:33 +00:00
Bo Chen
5d411d257a
tests: Stabilize snapshot_restore tests
...
See: #5938
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-08 11:26:33 +00:00
dependabot[bot]
77f4e35bc8
build: Bump io-uring from 0.6.1 to 0.6.2
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.6.1 to 0.6.2.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-07 17:47:36 -08:00
dependabot[bot]
b2249827f5
build: Bump zerocopy from 0.7.26 to 0.7.29 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.26 to 0.7.29.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.26...v0.7.29 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-08 00:10:23 +00:00
Michael Zhao
f0c5592ba1
scripts: Workaround random wget failures on AArch64
...
Random failures of downloading `cloud-hypervisor-static-aarch64` with
`wget` were seen. The commit applies a workaround to retry the download
for a few times.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2023-12-07 14:29:22 -08:00
dependabot[bot]
b92856f41b
build: Bump anstyle-wincon from 3.0.1 to 3.0.2 in /fuzz
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 3.0.1 to 3.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.1...anstyle-wincon-v3.0.2 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-07 00:08:28 +00:00
dependabot[bot]
6a90902a4b
build: Bump anstyle-parse from 0.2.2 to 0.2.3 in /fuzz
...
Bumps [anstyle-parse](https://github.com/rust-cli/anstyle ) from 0.2.2 to 0.2.3.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-parse-v0.2.2...anstyle-parse-v0.2.3 )
---
updated-dependencies:
- dependency-name: anstyle-parse
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-06 00:08:06 +00:00
Markus Sütter
0e9513f2b7
vmm: Allow IP configuration on named TAP interfaces
...
This commit changes existing behavior of named TAP interfaces.
When booting a VM with configuration for a named TAP interface,
cloud-hypervisor will create the interface and apply a given
IP configuration to that interface. If the named interface
already exists on the system, the configuration is NOT overwritten.
Setting the ip and netmask fields in a tap interface configuration
for a named tap interface now works by handing this configuration
to the virtio_devices::Net object when it is created with a name.
This commit also touches net_util to make sure that the ip configuration
of existing TAP interfaces is not modified with ip or netmask handed to
open_tap.
Signed-off-by: Markus Sütter <markus.suetter@secunet.com >
2023-12-05 08:59:04 -08:00
Bo Chen
283ae7b33e
build: Bump gdbstub and gdbstub_arch
...
This commit also makes changes due to the breaking API changes from the
`gdbstub` crate [1].
[1] https://github.com/daniel5151/gdbstub/releases/tag/0.7.0
Fix : #5997
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-05 10:50:06 +00:00
dependabot[bot]
102a1c9abc
build: Bump clap from 4.4.10 to 4.4.11 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.10 to 4.4.11.
- [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/v4.4.10...v4.4.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-04 23:38:13 +00:00
Bo Chen
32124bce13
scripts: Show wget details for aarch64 worker
...
The wget has been causing frequent CI failure for the past few days,
while it can't be reproduced manually. Let's show the wget details in
our CI pipeline to understand better future errors.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-12-04 11:54:50 -08:00
dependabot[bot]
5f89461a7e
build: Bump js-sys from 0.3.65 to 0.3.66 in /fuzz
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.65 to 0.3.66.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-02 00:01:27 +00:00
dependabot[bot]
b00cc483f9
build: Bump clap from 4.4.9 to 4.4.10 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.9 to 4.4.10.
- [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/v4.4.9...v4.4.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 23:20:47 +00:00
dependabot[bot]
705fbefebe
build: Bump proc-macro2 from 1.0.67 to 1.0.70
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.67 to 1.0.70.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.67...1.0.70 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 08:59:14 +00:00
dependabot[bot]
d448dbd751
build: Bump wasm-bindgen from 0.2.88 to 0.2.89 in /fuzz
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.88 to 0.2.89.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.88...0.2.89 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 00:13:32 +00:00
dependabot[bot]
9d29769536
build: Bump indexmap from 2.0.2 to 2.1.0
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 2.0.2 to 2.1.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/2.0.2...2.1.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-29 10:25:13 +00:00
dependabot[bot]
d9f7fd1db8
build: Bump proc-macro2 from 1.0.69 to 1.0.70 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.69...1.0.70 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 23:56:56 +00:00
dependabot[bot]
a6d994bf75
build: Bump toml_datetime from 0.6.3 to 0.6.5
...
Bumps [toml_datetime](https://github.com/toml-rs/toml ) from 0.6.3 to 0.6.5.
- [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.6.3...toml_datetime-v0.6.5 )
---
updated-dependencies:
- dependency-name: toml_datetime
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 00:09:58 +00:00
dependabot[bot]
86aa60a226
build: Bump clap from 4.4.8 to 4.4.9 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.8 to 4.4.9.
- [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/v4.4.8...v4.4.9 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 23:12:42 +00:00
Ruslan Mstoi
800f971381
tests: test_watchdog: use event monitor
...
See: #5127
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-11-24 21:37:25 +00:00
Ruslan Mstoi
341a4558fe
tests: test_vdpa_block: fix false positive
...
Running on host where vdpa_sim_blk module is not correctly loaded
test_vdpa_block passes.
"test common_parallel::test_vdpa_block ... ok"
This commit fixes the vdpa_sim_blk test to fail in that case.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-11-24 21:37:06 +00:00
dependabot[bot]
81b30bf390
build: Bump log from 0.4.17 to 0.4.20
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.17 to 0.4.20.
- [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.17...0.4.20 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-24 08:47:05 +00:00
dependabot[bot]
526eba90e7
build: Bump uuid from 1.5.0 to 1.6.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.5.0...1.6.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-23 13:41:27 +00:00
dependabot[bot]
451a084881
build: Bump futures-task from 0.3.28 to 0.3.29
...
Bumps [futures-task](https://github.com/rust-lang/futures-rs ) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29 )
---
updated-dependencies:
- dependency-name: futures-task
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-23 13:41:12 +00:00
dependabot[bot]
a5f60338a2
build: Bump object from 0.30.3 to 0.30.4
...
Bumps [object](https://github.com/gimli-rs/object ) from 0.30.3 to 0.30.4.
- [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gimli-rs/object/compare/0.30.3...0.30.4 )
---
updated-dependencies:
- dependency-name: object
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-22 17:35:02 +00:00
dependabot[bot]
a18896bd63
build: Bump serde from 1.0.192 to 1.0.193 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.192 to 1.0.193.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.192...v1.0.193 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-21 23:29:19 +00:00
Rui Chang
2b457584e0
vmm: add add-user-device support in cloud-hypervisor.yaml
...
The change is missed when add "add-user-device" support in
53b2e19934 , use this commit to fix it.
Signed-off-by: Rui Chang <rui.chang@arm.com >
2023-11-21 09:13:22 +00:00
dependabot[bot]
57ee9b4f9c
build: Bump rustix from 0.37.25 to 0.37.27
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.37.25 to 0.37.27.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.25...v0.37.27 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-21 00:06:15 +00:00
Thomas Barrett
45b01d592a
vmm: assign each pci segment 32-bit mmio allocator
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-11-20 15:33:50 -08:00
dependabot[bot]
ef16ee37d9
build: Bump getrandom from 0.2.10 to 0.2.11 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.10 to 0.2.11.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-20 23:31:17 +00:00
Ruslan Mstoi
851ab0ad43
gitlint: validate title components
...
Valid title format:
component1[, component2, componentN]: submodule: summary
Title should have at least one component
Components are separated by comma+space: ", "
Components are validated to be in valid_components
Components list is ended by a colon
Submodules are not validated
See: #5846
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-11-20 08:39:43 -08:00
Michael Zhao
70380d289f
ci: Enable OpenAPI validate action
...
Pull the container `openapitools/openapi-generator-cli` and run the
validation.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2023-11-20 07:45:55 +00:00
dependabot[bot]
4b87964093
build: Bump num-traits from 0.2.16 to 0.2.17
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.16 to 0.2.17.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.16...num-traits-0.2.17 )
---
updated-dependencies:
- dependency-name: num-traits
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-18 00:14:41 +00:00
dependabot[bot]
16809026cd
build: Bump clap from 4.4.7 to 4.4.8 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.7 to 4.4.8.
- [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/v4.4.7...v4.4.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-17 23:16:02 +00:00
Bo Chen
c427f3a862
Jenkinsfile: Skip worker build for more cases
...
We can skip the CI worker build if the changes are only from gitlint, or
the hidden files in the root folder, such as .github, .gitignore,
.gitlint, .rustfmt.toml, and .typos.toml.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-17 08:43:19 -08:00
Bo Chen
07475d2bc1
gitlint: Increase the title length limit to 72
...
This is particularly useful for commits with long component names. Of
course, it is better to have concise subject that is less than 50 char.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-17 08:43:19 -08:00
Bo Chen
4d80be3a04
tests: Enable live-upgrade tests based on release v36.0
...
These live-upgrade tests were disabled due to CLI changes (#5791 ).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-17 08:43:13 +00:00
dependabot[bot]
af06adfd65
build: Bump serde_repr from 0.1.12 to 0.1.17
...
Bumps [serde_repr](https://github.com/dtolnay/serde-repr ) from 0.1.12 to 0.1.17.
- [Release notes](https://github.com/dtolnay/serde-repr/releases )
- [Commits](https://github.com/dtolnay/serde-repr/compare/0.1.12...0.1.17 )
---
updated-dependencies:
- dependency-name: serde_repr
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-17 00:30:50 +00:00
dependabot[bot]
5ff53db239
build: Bump js-sys from 0.3.64 to 0.3.65 in /fuzz
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.64 to 0.3.65.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-16 23:54:04 +00:00
Jinank Jain
84b643f80b
hypervisor: Add support to bringup AP threads for SEV-SNP guest
...
As part SMP bringup for a SEV-SNP guest, BSP sets up the VMSA page for
each AP threads and informs hypervisor about the same using a VMGEXIT.
Thus, extend the current GHCB interface to handle this scenario.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-11-16 14:58:53 -08:00
Jinank Jain
d7d6054b8c
hypervisor: Add support for handling SNP guest request
...
SEV-SNP guest can request AMD's secure co-processor i.e., PSP to
generate an runtime attesation report. During this process guest needs
to inform PSP about the request and response GPAs where that report
would be generated by the PSP. This is handled via a VMGEXIT request.
Thus, extend the current GHCB handling to add support for it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-11-16 14:58:53 -08:00
Jinank Jain
96bc282759
hypervisor: mshv: Add VmFd to MshvVcpu struct
...
This would be required later to implement few additional operations on
top of it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-11-16 14:58:53 -08:00
Yi Wang
a69d8c63b3
vmm: speed up JSON load when reading snap files
...
We found that it's slow to load JSON when reading snap files. As
described in [1], using from_slice instead of from_reader can fix
this.
Also, fix the error type being returned.
1. https://github.com/serde-rs/json/issues/160
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-11-16 14:56:04 -08:00
Rob Bradford
0eade51306
build: Remove OpenAPI validation
...
This container is now failing.
See: #5960
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-16 16:44:04 +00:00
Ruslan Mstoi
ea7999e064
build: add gitlint commit message linter
...
Implement commit message check workflow using gitlint
Fixes : #5840
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-11-16 16:09:17 +00:00
Thomas Barrett
5f3ff3c44a
devices: fix pv_panic alignment
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-11-16 08:28:23 +00:00
dependabot[bot]
0299bec152
build: Bump async-recursion from 1.0.4 to 1.0.5
...
Bumps [async-recursion](https://github.com/dcchut/async-recursion ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dcchut/async-recursion/releases )
- [Commits](https://github.com/dcchut/async-recursion/compare/v1.0.4...v1.0.5 )
---
updated-dependencies:
- dependency-name: async-recursion
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-16 00:42:43 +00:00
dependabot[bot]
61529a6158
build: Bump zerocopy from 0.7.25 to 0.7.26 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.25 to 0.7.26.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.25...v0.7.26 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-15 23:40:17 +00:00
dependabot[bot]
e5370cddf0
build: Bump concurrent-queue from 2.2.0 to 2.3.0
...
Bumps [concurrent-queue](https://github.com/smol-rs/concurrent-queue ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/smol-rs/concurrent-queue/releases )
- [Changelog](https://github.com/smol-rs/concurrent-queue/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/concurrent-queue/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: concurrent-queue
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-15 00:45:15 +00:00
dependabot[bot]
c30339debc
build: Bump arbitrary from 1.3.1 to 1.3.2 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.3.1 to 1.3.2.
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/derive_arbitrary@1.3.1...v1.3.2 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 23:27:53 +00:00
dependabot[bot]
819e7f7e4d
build: Bump micro_http from 0d0fdcd to a4d632f
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `0d0fdcd` to `a4d632f`.
- [Commits](0d0fdcd50e...a4d632f2c5 )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 16:00:25 +00:00
Bo Chen
de2fcc2d87
tests: Stabilize snapshot_restore tests
...
Since the 'write()' to the event file was moved to its own thread
(see #5633 ), we have no reliable way to read the latest contents of
the event file from our integration tests, since we can't ensure the
'read()' from our test always happen after 'write()' is completed from
Cloud Hypervisor. This is also why we started to see random failures on
snapshot_restore tests (particularly when the system workload is high).
This patch adds a 1s sleep before reading the event file to mitigate the
random failures.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-14 09:19:25 +00:00
Bo Chen
d4892f41b3
misc: Stop using deprecated functions from vm-memory crate
...
See: https://github.com/rust-vmm/vm-memory/pull/247
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-14 09:17:42 +00:00
Bo Chen
4d7a4c598a
build: Upgrade vm-memory crates and its consumers
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-14 09:17:42 +00:00
Bo Chen
d4a163dd39
virtio-devices: Fix beta clippy issue
...
error: use of a fallible conversion when an infallible one could be used
Error: --> virtio-devices/src/vhost_user/vu_common_ctrl.rs:206:51
|
206 | let actual_size: usize = queue.size().try_into().unwrap();
| ^^^^^^^^^^^^^^^^^^^ help: use: `into()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]`
error: could not compile `virtio-devices` (lib) due to previous error
Error: warning: build failed, waiting for other jobs to finish...
error: could not compile `virtio-devices` (lib test) due to previous error
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-14 09:15:45 +00:00
dependabot[bot]
c1e613a9ff
build: Bump serde from 1.0.189 to 1.0.192 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.189 to 1.0.192.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.189...v1.0.192 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-13 16:01:50 -08:00
dependabot[bot]
fcebc4491a
build: Bump vfio-ioctls from 847b0aa to 59c604f
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `847b0aa` to `59c604f`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](847b0aa504...59c604fa6e )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-11 09:04:38 +00:00
dependabot[bot]
f75515eedb
build: Bump smallvec from 1.11.1 to 1.11.2 in /fuzz
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.1...v1.11.2 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-10 23:36:27 +00:00
Muminul Islam
4cea713adf
docs: Add documentations for MSHV and related features
...
This patch adds brief overview and relation of mshv,
igvm, and sev-snp features.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-11-10 11:30:40 -08:00
dependabot[bot]
148955f725
build: Bump async-task from 4.4.0 to 4.5.0
...
Bumps [async-task](https://github.com/smol-rs/async-task ) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/smol-rs/async-task/releases )
- [Changelog](https://github.com/smol-rs/async-task/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-task/compare/v4.4.0...v4.5.0 )
---
updated-dependencies:
- dependency-name: async-task
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-10 09:01:28 +00:00
dependabot[bot]
49ef29c9b5
build: Bump wasm-bindgen from 0.2.87 to 0.2.88 in /fuzz
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.87 to 0.2.88.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.87...0.2.88 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-09 23:45:20 +00:00
Bo Chen
62db13ba0e
tests: Temporarily disable vhost_user_blk tests on aarch64
...
See: #5934
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-09 07:57:44 +00:00
Thomas Barrett
d9ed281719
block: fix aio backend behavior when writeback enabled
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-11-08 19:24:40 -08:00
dependabot[bot]
56f0cfefa8
build: Bump libc from 0.2.149 to 0.2.150 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.149 to 0.2.150.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.149...0.2.150 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-08 19:23:47 -08:00
dependabot[bot]
815c7f45c4
build: Bump clap from 4.3.11 to 4.4.7
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.11 to 4.4.7.
- [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/v4.3.11...v4.4.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-08 17:01:37 -08:00
Rob Bradford
4817578ce9
build: Bump version used into container for clap crate
...
See: #5925
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-08 08:13:45 -08:00
Rob Bradford
13fae28635
build: Bump MSRV to 1.70 for clap crate
...
See: #5925
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-08 08:13:45 -08:00
Wei Liu
14907d0752
scripts: fix the check for GitHub authentication token
...
When the script is invoked via dev_cli.sh, it always gets AUTH_DOWNLOAD_TOKEN
from the environment. The original test always returns true.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-11-08 10:02:15 +00:00
dependabot[bot]
aad5cd7858
build: Bump futures-sink from 0.3.28 to 0.3.29 in /fuzz
...
Bumps [futures-sink](https://github.com/rust-lang/futures-rs ) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29 )
---
updated-dependencies:
- dependency-name: futures-sink
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-07 16:12:11 -08:00
Rob Bradford
99a2551046
scripts: Propagate AUTH_DOWNLOAD_TOKEN into container
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-07 08:44:56 -08:00
Rob Bradford
8d31dfb154
build: Populate AUTH_DOWNLOAD_TOKEN environment variable
...
Use a stored credential in Jenkins to authenticate the downloads against
GitHub.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-07 08:44:56 -08:00
Rob Bradford
5e1806aed2
scripts: Authenticate to GitHub if token present
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-07 08:44:56 -08:00
Rob Bradford
72e213ebda
scripts: Extract downloading hypervisor-fw to a function
...
This will reduce the number of locations that it will be necessary to
add authentication support.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-07 08:44:56 -08:00
dependabot[bot]
df242e9468
build: Bump zerocopy from 0.7.24 to 0.7.25 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.24 to 0.7.25.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.24...v0.7.25 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-06 16:58:27 -08:00
dependabot[bot]
3ce463f482
build: Bump mshv-bindings from af397ea to f00c7d4
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `af397ea` to `f00c7d4`.
- [Commits](af397ea851...f00c7d483c )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-06 16:58:11 -08:00
dependabot[bot]
d38e951234
build: Bump parking from 2.1.1 to 2.2.0
...
Bumps [parking](https://github.com/smol-rs/parking ) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/smol-rs/parking/releases )
- [Changelog](https://github.com/smol-rs/parking/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/parking/compare/v2.1.1...v2.2.0 )
---
updated-dependencies:
- dependency-name: parking
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-06 17:42:38 +00:00
Bo Chen
1be40e2339
tests: Improve debuggability for "test_vfio"
...
Instead of relying on "wc" and "grep", this patch provides helper
functions for checking line counts and searching/counting keywords.
To understand assertion failures better, it also generate logs for the
L1/L2 VM commands when checks fail.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-06 08:50:58 -08:00
Bo Chen
bc04e75b4b
test_infra, tests: Unify error message formatting
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-06 08:50:58 -08:00
Bo Chen
5f7a847822
test_infra: Print error and output if host commands failed
...
It helps with understanding integration test errors when host commands
failed to run or complete.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-06 08:50:58 -08:00
Bo Chen
5976a37cf4
tests: Print details when checks on event monitor failed
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-06 08:50:58 -08:00
dependabot[bot]
1cfb793528
build: Bump zerocopy from 0.7.23 to 0.7.24 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.23 to 0.7.24.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.23...v0.7.24 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-03 23:51:34 +00:00
dependabot[bot]
30bc8ffa8d
build: Bump unicode-ident from 1.0.11 to 1.0.12
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-03 00:13:49 +00:00
dependabot[bot]
8b7c859d14
build: Bump zerocopy from 0.7.20 to 0.7.23 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.20 to 0.7.23.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.20...v0.7.23 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-02 23:22:08 +00:00
Yong He
d1ba50f10e
tests: Add a test simultaneously set serial and console as TTY mode
...
Add a test that supports configuring serial and console as TTY mode
at the same time. With this configuration, the VM can set up a legacy
serial device as an early printk console device, and then change to a
virito console device after the virito console device is initialized.
In this case, we can capture the logs printed by legacy serial on early
boot, and later by the virtio console.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-11-02 11:06:30 -07:00
Yong He
bb38e4e599
vmm: Allow simultaneously set serial and console as TTY mode
...
Cloud Hypovrisor supports legacy serial device and virito console device
for VMs. Using legacy serial device, CH can capture full VM console logs,
but its implementation is based on KVM PIO emulation and has poor
performance. Using the virtio console device, the VM console logs will
be sent to CH through the virtio ring, the performance is better, but CH
will only capture the VM console logs after the virtio console device is
initialized, the VM early startup logs will be discarded.
This patch provides a way to enable both the legacy serial device and the
virtio console device as a TTY mode by setting the leagcy serial port as
the VM's early printk device and setting the virtio console as the VM's
main console device.
Then CH can capture early boot logs from the legacy serial device and
capture later logs from the virito console device with better performance.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-11-02 11:06:30 -07:00
Bo Chen
f5899d15f6
build: Release v36.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-02 08:15:04 -07:00
Bo Chen
a4d83ce9c5
main: Add the '--serial socket=' option help information
...
See: #5708
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-02 08:15:41 +00:00
dependabot[bot]
e1a893793a
build: Bump zerocopy from 0.7.8 to 0.7.21
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.8 to 0.7.21.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.8...v0.7.21 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 23:55:45 +00:00
dependabot[bot]
4c411e1836
build: Bump serde_json from 1.0.107 to 1.0.108 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.107 to 1.0.108.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.108 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 23:51:29 +00:00
Bo Chen
04ec80c012
Jenkinsfile: Skip 'test_vfio' and 'test_vfio_user' on AMD workers
...
See: #5895
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-01 15:00:41 +00:00
Bo Chen
bd0ee6236a
scripts: Simplify the script for running bare-metal VFIO tests
...
The script "run_integration_tests_vfio.sh" requires to be ran on a
specific machine with specific hardware (e.g. the "vfio" bera-metal
worker equipped with a Nvidia Tesla T4 card). So the provisioning of the
running machine is out of the scope of this script, including the custom
guest image with Nvidia drivers installed, and properly configured
Nvidia Tesla T4 card.
See: #4405 , #5509
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-01 15:00:41 +00:00
Bo Chen
4afd8d96f9
tests: Remove "test_vfio" from the bare-metal worker
...
With #4324 being resolved, the nested VFIO test (e.g. "test_vfio") is
now a part of the general Azure VM-based workers. No need to run it on
the bare-metal worker.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-01 15:00:41 +00:00
Jianyong Wu
2434e76ee0
aarch64: fdt: Use more appropriate default value for topology
...
Now, default values for vcpu topology are 0s, that is not correct and may
lead to bug. Fix it by setting default value to 1s. Also add check in
case one or more of these values are zero.
Fixes : #5892
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-11-01 21:29:08 +08:00
Bo Chen
1670a5d8af
build: Bump toml_edit from 0.19.8 to 0.19.15
...
Bumps [toml_edit](https://github.com/toml-rs/toml ) from 0.19.8 to 0.19.15.
- [Commits](https://github.com/toml-rs/toml/compare/v0.19.8...v0.19.15 )
---
updated-dependencies:
- dependency-name: toml_edit
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-01 13:05:30 +00:00
Bo Chen
b312293604
build: Bump MSRV to 1.66
...
This is required for the following dependency:
toml_edit v0.19.15
└── proc-macro-crate v1.3.1
├── zbus_macros v3.14.1 (proc-macro)
└── zbus v3.14.1
├── cloud-hypervisor v35.0.0 (/home/chenb/project/cloud-hypervisor/cloud-hypervisor)
└── vmm v0.1.0 (/home/chenb/project/cloud-hypervisor/cloud-hypervisor/vmm)
└── cloud-hypervisor v35.0.0 (/home/chenb/project/cloud-hypervisor/cloud-hypervisor)
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-11-01 13:05:30 +00:00
dependabot[bot]
0974e06900
build: Bump winapi-util from 0.1.5 to 0.1.6
...
Bumps [winapi-util](https://github.com/BurntSushi/winapi-util ) from 0.1.5 to 0.1.6.
- [Commits](https://github.com/BurntSushi/winapi-util/compare/winapi-util-0.1.5...0.1.6 )
---
updated-dependencies:
- dependency-name: winapi-util
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 11:38:04 +00:00
Rob Bradford
2b607da2b3
scripts: Clear the toolchain environment variables for virtiofsd
...
virtiofsd must be built with the default gnu toolchain so clear the
environment variables that may poisoned by the alternative C library
support.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-11-01 11:37:04 +00:00
dependabot[bot]
85ec160fa1
build: Bump futures-core from 0.3.28 to 0.3.29 in /fuzz
...
Bumps [futures-core](https://github.com/rust-lang/futures-rs ) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29 )
---
updated-dependencies:
- dependency-name: futures-core
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-31 23:36:15 +00:00
Bo Chen
d2f71cebca
virtio-devices, vmm: Update seccomp list
...
The seccompiler v0.4.0 started to use `seccomp` syscall instead of the
`prctl` syscall. Also, threads for virtio-deivces should not need any of
these syscalls anyway.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-31 15:34:17 +00:00
Bo Chen
c1f496d912
build: Bump seccompiler from 0.3.0 to 0.4.0
...
Bumps [seccompiler](https://github.com/rust-vmm/seccompiler ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/rust-vmm/seccompiler/releases )
- [Changelog](https://github.com/rust-vmm/seccompiler/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/seccompiler/compare/seccompiler-v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: seccompiler
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-31 15:34:17 +00:00
dependabot[bot]
c17a11c1b8
build: Bump zerocopy from 0.7.11 to 0.7.20 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.11 to 0.7.20.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.11...v0.7.20 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-31 00:06:53 +00:00
Thomas Barrett
4980a5f778
block: add copyright text to raw_async_aio.rs
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-10-30 12:34:23 -07:00
Jinank Jain
0287e6a603
hypervisor: Add support for MMIO write emulation
...
This is very similar MMIO read emulation for SEV-SNP guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
ac43825f79
hypervisor: Add support MMIO read VMGEXIT
...
MMIO emulation is also performed via VMGEXIT in case of SEV-SNP guest.
Emulation is done in a very similar way like a regular guest. Just need
to make sure that guest memory is access via read/write GPA hypercall
instead of directly accessing it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
7975207e0f
hypervisor: Add support for legacy I/O port emulation
...
Legacy port emulation requires reading RAX register from GHCB page for
SEV-SNP guest. This is the major difference between a regular guest and
SEV-SNP enabled guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
e2288a8d2c
hypervisor: Add support for handling extended guest request
...
Currently MSHV does not support fetching extended guest report and thus
return an appropriate error stating the NAE event is not valid.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
cb5ea05945
hypervisor: Add support for handling #HV Doorbell Page
...
As part of this handling there are 4 different operations:
1. Getting the hypervisor preffered doorbell page GPA.
2. Informing hypervisor about the doorbell page chosen by the guest
3. Querying the GPA of the doorbell page
4. Clearing the GPA of the doorbell page from hypervisor
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
d6db3a9d32
build: Bump mshv-ioctls from c5a6050 to af397ea
...
Manually bumped the dependency for mshv-ioctl to get the definition of
required constants.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
d68fec594e
hypervisor: Add support for handling SEV INFO request
...
As part of handling this request, hypervisor is expected to three
things:
1. Maximum GHCB protocol version supported.
2. Minimum GHCB protocol version supported.
3. SEV-page table encryption bit number.
If the guest cannot support the protocol range supplied by the
hypervisor, it should terminate
Signed-off-by: Muminul Islam <muislam@microsoft.com >
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
6f4d82bd61
hypervisor: Add support for registering GHCB GPA with hypervisor
...
SEV-SNP guest allocates a GHCB page and in order to update hypervisor
about the same, there is a vmgexit which allows registering GHCB page
with the hypervisor.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-30 10:23:52 -07:00
Jinank Jain
437e6088e6
hypervisor: Add support for handling VMGEXIT for SEV-SNP guest
...
A VMGEXIT exit occurs for any of the listed NAE events in the GHCB
specification [1] (e.g. CPUID, RDMSR/WRMSR, MMIO, port IO, etc.). Some
of these events are handled by hypervisor while other are handled by
VMM. Currently, we are adding support for one such request i.e.,
report supported SEV-SNP features by hypervisor.
[1] GHCB protocol specification:
https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-30 10:23:52 -07:00
dependabot[bot]
7cba80484b
build: Bump typenum from 1.16.0 to 1.17.0
...
Bumps [typenum](https://github.com/paholg/typenum ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/paholg/typenum/releases )
- [Changelog](https://github.com/paholg/typenum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/paholg/typenum/compare/v1.16.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: typenum
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-30 13:28:54 +00:00
dependabot[bot]
4cbfccc166
build: Bump paste from 1.0.12 to 1.0.14
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.12 to 1.0.14.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.12...1.0.14 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 08:57:40 -07:00
dependabot[bot]
9dca409210
build: Bump clap from 4.4.6 to 4.4.7 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.6 to 4.4.7.
- [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/v4.4.6...v4.4.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 00:21:36 +00:00
dependabot[bot]
ffb9a051c3
build: Bump arbitrary from 1.3.0 to 1.3.1 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.3.0 to 1.3.1.
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.3.0...derive_arbitrary@1.3.1 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-26 00:16:21 +00:00
dependabot[bot]
53eaa8b89a
build: Bump anstyle-wincon from 1.0.1 to 1.0.2
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 1.0.1 to 1.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v1.0.1...anstyle-wincon-v1.0.2 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-26 00:02:07 +00:00
Thomas Barrett
bae13c5c56
block: add aio disk backend
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-10-25 10:19:23 -07:00
dependabot[bot]
6105d3ca83
build: Bump async-trait from 0.1.73 to 0.1.74
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.73 to 0.1.74.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.73...0.1.74 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-25 00:36:36 +00:00
dependabot[bot]
668b210055
build: Bump serde_with from 3.0.0 to 3.4.0
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.0.0 to 3.4.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.0.0...v3.4.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-24 20:53:50 +00:00
Muminul Islam
5bd113e625
hypervisor: Add API to complete isolated import
...
This is the function that needs to be called by the VMM
to inform the MSHV that isolation is complete and inform
PSP about this completion.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-24 13:02:34 -07:00
Muminul Islam
dc3903012d
hypervisor: Add API to import the isolated pages
...
Add hypervisor VM specific API to import the isolated
pages. Hypervisor adds those pages for PSP measurement.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-24 13:02:34 -07:00
dependabot[bot]
3a67537227
build: Bump uuid from 1.4.1 to 1.5.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.4.1...1.5.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-23 23:33:58 +00:00
Muminul Islam
afe798fc19
vmm: Fix clippy warnings
...
This patch fixes following warnings:
error: boolean to int conversion using if
--> vmm/src/vm.rs:866:42
|
| .create_vm_with_type(if sev_snp_enabled.into() {
| __________________________________________^
| | 1 // SEV_SNP_ENABLED
| | } else {
| | 0 // SEV_SNP_DISABLED
| | })
| |_____________________^ help: replace with from: `u64::from(sev_snp_enabled.into())`
|
= note: `-D clippy::bool-to-int-with-if` implied by `-D warnings`
= note: `sev_snp_enabled.into() as u64` or `sev_snp_enabled.into().into()` can also be valid options
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
error: useless conversion to the same type: `bool`
--> vmm/src/vm.rs:866:45
|
| .create_vm_with_type(if sev_snp_enabled.into() {
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `sev_snp_enabled`
|
= note: `-D clippy::useless-conversion` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
error: could not compile `vmm` due to 2 previous errors
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-23 16:03:16 -07:00
Thomas Barrett
53b8e1d01e
tests: Enable "test_pci_multiple_segments_numa_node"
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-10-21 09:12:50 +01:00
dependabot[bot]
3f67a002a2
build: Bump thiserror from 1.0.49 to 1.0.50 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.49 to 1.0.50.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.49...1.0.50 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-20 23:42:30 +00:00
Bo Chen
43a6eda400
vmm: Add help information for "--numa pci_segments="
...
See: #5844
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-20 11:44:28 -07:00
Ravi kumar Veeramally
ce902c19ec
performance-metrics: switch to clap
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-10-20 11:44:28 -07:00
Ravi kumar Veeramally
f160ba41b5
vhost_user_blk: switch to clap
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-10-20 11:44:28 -07:00
Ravi kumar Veeramally
627a1456a7
vhost_user_net: switch to clap
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-10-20 11:44:28 -07:00
Ravi kumar Veeramally
d1f337aef1
ch-remote: switch to clap
...
Porting back using clap crate
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-10-20 11:44:28 -07:00
Ravi kumar Veeramally
fa22cb0be5
docs: update command line options to use clap
...
Reverts commit a0922930b1
and update to latest changes.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-10-20 11:44:28 -07:00
Wei Liu
7bc3452139
main: switch command parsing to use clap
...
Partially revert 111225a2a5
and add the new dbus and pvpanic arguments.
As we are switching back to clap observe the following changes.
A few examples:
1. `-v -v -v` needs to be written as`-vvv`
2. `--disk D1 --disk D2` and others need to be written as `--disk D1 D2`.
3. `--option value` needs to be written as `--option=value.`
Change integration tests to adapt to the breaking changes.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-10-20 11:44:28 -07:00
Wei Liu
6113483363
docs: add notes on collecting coverage data from in-tree tests
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-10-20 10:35:13 -07:00
Wei Liu
8ba5682e3b
scripts: propagate RUSTFLAGS and TARGET_CC to test scripts
...
There is no need to set them in the test scripts while the main script
already has them.
The consolidates how things are done.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-10-20 10:35:13 -07:00
Wei Liu
c7e51e51e5
scripts: pass BUILD_TARGET directly to test scripts
...
There is no need to reconstruct it from within the scripts since the
main script already constructed it once.
Drop the previously useless setting of BUILD_TARGET from various
scripts. The value was always overwritten at a later point.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-10-20 10:35:13 -07:00
Wei Liu
9d42f48f49
scripts: dev_cli.sh: respect preset RUSTFLAGS
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-10-20 10:35:13 -07:00
dependabot[bot]
ec0e0b1b96
build: Bump iced-x86 from 1.19.0 to 1.20.0
...
Bumps [iced-x86](https://github.com/icedland/iced ) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/icedland/iced/releases )
- [Commits](https://github.com/icedland/iced/compare/v1.19.0...v1.20.0 )
---
updated-dependencies:
- dependency-name: iced-x86
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-20 11:07:18 +01:00
dependabot[bot]
2123a65288
build: Bump serde from 1.0.188 to 1.0.189 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.188 to 1.0.189.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.188...v1.0.189 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-19 23:47:11 +00:00
Wei Liu
fc6ff07fd7
docs: add a document for collecting coverage data
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-10-19 13:07:54 -07:00
Yi Wang
83b1a30f29
docs: fix the description of host/guest in vsock
...
In Connecting from Host to Guest section, the host/guest are misused,
this patch fix that.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-10-19 09:39:17 -07:00
Muminul Islam
274f1aa2e7
virtio-devices,vm-allocator: Fix clippy warnings
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-19 08:42:17 +01:00
Muminul Islam
a1ce37c2af
build: Bump MSRV to 1.65
...
Sev-Snp on MSHV uses igvm crate to parse the igvm file.
igvm crate needs minimum rust version 1.65 to build.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-10-19 08:42:17 +01:00
dependabot[bot]
6e35fe741e
build: Bump bitflags from 2.3.3 to 2.4.1
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.3.3 to 2.4.1.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.3...2.4.1 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 23:58:34 +00:00
dependabot[bot]
b713ded414
build: Bump lock_api from 0.4.10 to 0.4.11 in /fuzz
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.10 to 0.4.11.
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.10...lock_api-0.4.11 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 23:43:08 +00:00
dependabot[bot]
88aceca983
build: Bump rustix from 0.37.21 to 0.37.25
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.37.21 to 0.37.25.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.21...v0.37.25 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 20:25:58 +00:00
Thomas Barrett
3029fbeafd
vmm: Allow assignment of PCI segments to NUMA node
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-10-18 11:18:15 -07:00
Bo Chen
0b4c153d4d
arch, vmm: Clear AMX CPUID bits if the feature is not enabled
...
Fixes : #5833
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-18 11:13:12 -07:00
Bo Chen
7dd260f82f
arch, vmm: Add new struct CpuidConfig
...
This struct contains all configuration fields that controls the way how
we generate CPUID for the guest on x86_64. This allows cleaner extension
when adding new configuration fields.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-18 11:13:12 -07:00
dependabot[bot]
30975ea102
build: Bump serde_with from 3.3.0 to 3.4.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.3.0...v3.4.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 00:04:08 +00:00
Jinank Jain
1afac185ff
hypervisor: Enable VMGEXIT offload for SEV-SNP partition
...
For a SEV-SNP enabled partition on MSHV, some of the VMGEXITS are
offloaded for Hypervisor to handle while the rest are handled by VMM.
By setting this additional partition property hypervisor is informed
about the VMGEXITs it needs to take care off, rest all would be handled
by the CloudHypervisor.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-10-17 14:15:38 -07:00
Bo Chen
aa6e83126c
vmm: tdx: Fix a deadlock while accessing vm_config
...
The lock to `vm_config` is held for accessing `cpus.kvm_hyperv` passing
as a reference to `arch::generate_common_cpuid()`, so acquiring the same
lock again while calling to the same function is a deadlock.
Fixes: 3793ffe888
Reported-by: Yi Wang <foxywang@tencent.com >
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-17 19:41:33 +01:00
Jinank Jain
1b59ab3d7b
vmm, hypervisor: Initialize SEV-SNP VM
...
As part of this initialization for a SEV-SNP VM on MSHV, it is required
that we transition the guest state to secure state using partition
hypercall. This implies all the created VPs will transition to secure
state and could access the guest encrypted memory.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-10-17 17:45:28 +01:00
Anatol Belski
311fc05417
cpu: Store hypervisor object directly instead of separate props
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-10-17 18:43:22 +02:00
Anatol Belski
b52966a12c
cpu: Implement AMD compatible topology handling
...
cpu: Pass APIC id explicitly where needed
topology: Set subleaf number explicitly
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-10-17 18:43:22 +02:00
dependabot[bot]
31686b91d3
build: Bump semver from 1.0.19 to 1.0.20
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.19...1.0.20 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-17 03:56:17 +00:00
dependabot[bot]
1a23a98847
build: Bump jobserver from 0.1.26 to 0.1.27 in /fuzz
...
Bumps [jobserver](https://github.com/alexcrichton/jobserver-rs ) from 0.1.26 to 0.1.27.
- [Commits](https://github.com/alexcrichton/jobserver-rs/commits )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-13 23:30:44 +00:00
dependabot[bot]
2b8b04c129
build: Bump regex from 1.9.1 to 1.9.4
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.1 to 1.9.4.
- [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.9.1...1.9.4 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-13 00:12:19 +00:00
dependabot[bot]
d8e71da071
build: Bump zerocopy from 0.7.8 to 0.7.11 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.8 to 0.7.11.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.8...v0.7.11 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-12 23:26:07 +00:00
dom.song
7f47a030e7
tests: Update spdk code to support Ampere's new CPU
...
When performing integration testing on the Ampere One server, an error occurred when compiling spdk and not recognizing the CPU ID.
The latest spdk already contains fixes.
Signed-off-by: dom.song <dom.song@amperecomputing.com >
2023-10-12 11:25:38 -07:00
dependabot[bot]
88f7124c5f
build: Bump hermit-abi from 0.3.2 to 0.3.3
...
Bumps [hermit-abi](https://github.com/hermitcore/hermit-rs ) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/hermitcore/hermit-rs/releases )
- [Commits](https://github.com/hermitcore/hermit-rs/compare/hermit-abi-0.3.2...hermit-abi-0.3.3 )
---
updated-dependencies:
- dependency-name: hermit-abi
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-12 03:32:24 +00:00
dependabot[bot]
85894476d8
build: Bump semver from 1.0.19 to 1.0.20 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.19...1.0.20 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-12 00:17:32 +00:00
Jinank Jain
a5763bcb6c
hypervisor: Set isolation policy for SNP guest
...
It's a requirement that a SEV-SNP enabled guest on MSHV must have
isolation policy set before launching the guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-10-11 17:15:51 -07:00
dependabot[bot]
3981642dd1
build: Bump tempfile from 3.7.1 to 3.8.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.7.1 to 3.8.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.1...v3.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-11 08:46:02 +01:00
dependabot[bot]
4889c4847c
build: Bump errno from 0.3.2 to 0.3.5
...
Bumps [errno](https://github.com/lambda-fairy/rust-errno ) from 0.3.2 to 0.3.5.
- [Changelog](https://github.com/lambda-fairy/rust-errno/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lambda-fairy/rust-errno/commits )
---
updated-dependencies:
- dependency-name: errno
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-11 00:22:44 +00:00
dependabot[bot]
0e798c0e92
build: Bump proc-macro2 from 1.0.67 to 1.0.69 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.67 to 1.0.69.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.67...1.0.69 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-10 23:39:53 +00:00
dependabot[bot]
032098b10c
build: Bump zerocopy from 0.7.1 to 0.7.8
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.1 to 0.7.8.
- [Commits](https://github.com/google/zerocopy/compare/v0.7.1...v0.7.8 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-10 00:17:50 +00:00
dependabot[bot]
81bee58ab3
build: Bump libc from 0.2.148 to 0.2.149 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.148 to 0.2.149.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.148...0.2.149 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-09 23:40:40 +00:00
dependabot[bot]
328a1710f6
build: Bump sha1 from 0.10.5 to 0.10.6
...
Bumps [sha1](https://github.com/RustCrypto/hashes ) from 0.10.5 to 0.10.6.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha1-v0.10.5...sha1-v0.10.6 )
---
updated-dependencies:
- dependency-name: sha1
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-08 08:31:47 +00:00
dependabot[bot]
12120c2e3e
build: Bump byteorder from 1.4.3 to 1.5.0 in /fuzz
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.4.3 to 1.5.0.
- [Changelog](https://github.com/BurntSushi/byteorder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/byteorder/compare/1.4.3...1.5.0 )
---
updated-dependencies:
- dependency-name: byteorder
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-06 23:44:05 +00:00
Praveen K Paladugu
cf1ec56d3a
tests: Add test for socket backend of serial port
...
This test creates a pty link to the socket and checks pty
interactions.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-10-05 15:26:29 +01:00
Praveen K Paladugu
044f3f758e
serial_manager: Remove serial socket
...
Remove the backend socket of serial port while shutting down guest.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-10-05 15:26:29 +01:00
Praveen K Paladugu
6d1077fc3c
vmm: Unix socket backend for serial port
...
Cloud-Hypervisor takes a path for Unix socket, where it will listen
on. Users can connect to the other end of the socket and access serial
port on the guest.
"--serial socket=/path/to/socket" is the cmdline option to pass to
cloud-hypervisor.
Users can use socat like below to access guest's serial port once the
guest starts to boot:
socat -,crnl UNIX-CONNECT:/path/to/socket
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-10-05 15:26:29 +01:00
dependabot[bot]
399c596af8
build: Bump zerocopy from 0.7.6 to 0.7.8 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.6 to 0.7.8.
- [Commits](https://github.com/google/zerocopy/commits )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-05 07:49:43 +00:00
Bo Chen
1e01b5eabc
main: Report enabled features from CLI with "--version -v"
...
Fixes : #5817
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-05 08:40:50 +01:00
Bo Chen
ff651e0e28
vmm: Report enabled features from the '/vmm.ping' endpoint
...
Fixes : #5817
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-10-05 08:40:50 +01:00
dependabot[bot]
11838fca11
build: Bump openssl-src from 300.1.3+3.1.2 to 300.1.5+3.1.3
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 300.1.3+3.1.2 to 300.1.5+3.1.3.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-05 00:10:10 +00:00
dependabot[bot]
ddf332b127
build: Bump enumflags2 from 0.7.7 to 0.7.8
...
Bumps [enumflags2](https://github.com/meithecatte/enumflags2 ) from 0.7.7 to 0.7.8.
- [Release notes](https://github.com/meithecatte/enumflags2/releases )
- [Commits](https://github.com/meithecatte/enumflags2/compare/v0.7.7...v0.7.8 )
---
updated-dependencies:
- dependency-name: enumflags2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-04 00:02:28 +00:00
dependabot[bot]
eaee6eec2b
build: Bump atomic-waker from 1.1.1 to 1.1.2
...
Bumps [atomic-waker](https://github.com/smol-rs/atomic-waker ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/smol-rs/atomic-waker/releases )
- [Changelog](https://github.com/smol-rs/atomic-waker/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/atomic-waker/compare/v1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: atomic-waker
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-03 10:06:28 -07:00
dependabot[bot]
0692cb99fb
build: Bump zerocopy from 0.7.5 to 0.7.6 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.5 to 0.7.6.
- [Commits](https://github.com/google/zerocopy/commits )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-02 23:58:10 +00:00
dependabot[bot]
b1cc3e3cc3
build: Bump semver from 1.0.18 to 1.0.19
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-30 08:29:40 +01:00
dependabot[bot]
c31b34c9f8
build: Bump thiserror from 1.0.48 to 1.0.49 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.48...1.0.49 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-29 23:56:41 +00:00
dependabot[bot]
821e606663
build: Bump async-process from 1.7.0 to 1.8.0
...
Bumps [async-process](https://github.com/smol-rs/async-process ) from 1.7.0 to 1.8.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/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: async-process
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-29 00:35:26 +00:00
dependabot[bot]
66520de49b
build: Bump micro_http from 0d0fdcd to a4d632f in /fuzz
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `0d0fdcd` to `a4d632f`.
- [Commits](0d0fdcd50e...a4d632f2c5 )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-28 23:25:53 +00:00
dependabot[bot]
e80a3847ca
build: Bump num-traits from 0.2.15 to 0.2.16
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.15 to 0.2.16.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.15...num-traits-0.2.16 )
---
updated-dependencies:
- dependency-name: num-traits
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-28 15:22:36 +01:00
dependabot[bot]
11c0aa3f24
build: Bump semver from 1.0.18 to 1.0.19 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-27 23:41:19 +00:00
Bo Chen
9abb12fd71
vmm: Return the right error from Vcpu::snapshot()
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-27 08:51:40 +01:00
Jinank Jain
db785e6969
tests: Enable testing for multi PCI segment for mshv
...
This test is now supported on MSHV so we can re-enable the support for
it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-09-27 08:51:19 +01:00
dependabot[bot]
0604721c72
build: Bump serde from 1.0.168 to 1.0.188 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.168 to 1.0.188.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.188 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-27 00:25:21 +00:00
dependabot[bot]
3bcf22fbb0
build: Bump parking from 2.1.0 to 2.1.1
...
Bumps [parking](https://github.com/smol-rs/parking ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/smol-rs/parking/releases )
- [Changelog](https://github.com/smol-rs/parking/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/parking/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: parking
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-26 23:55:11 +00:00
Anatol Belski
830da38e5a
Revert "build: Skip 'test_vfio' on AMD workers"
...
This reverts commit c70f133b72 .
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-09-26 10:40:18 +01:00
Anatol Belski
8d0e12b1d1
resources: Add CONFIG_KVM_AMD=y to x86 config
...
This is required for test_vfio to run on AMD.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-09-26 10:40:18 +01:00
Bo Chen
3ca684b26e
build: Bump versions of acpi_tables and zerocopy
...
The 'derive' feature of `zerocopy` crate now is optional and requires to
be enabled explicitly [1]. Also, a version bump on `acpi_tables` is
needed to reply on a single version of `zerocopy` to avoid compilation
errors.
[1] https://github.com/google/zerocopy/pull/176
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-26 08:47:39 +01:00
dependabot[bot]
50bdd1bf84
build: Bump waker-fn from 1.1.0 to 1.1.1
...
Bumps [waker-fn](https://github.com/smol-rs/waker-fn ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/smol-rs/waker-fn/releases )
- [Changelog](https://github.com/smol-rs/waker-fn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/waker-fn/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: waker-fn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-26 00:27:25 +00:00
dependabot[bot]
a24cafd051
build: Bump bumpalo from 3.13.0 to 3.14.0 in /fuzz
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.13.0 to 3.14.0.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.13.0...3.14.0 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-25 23:45:57 +00:00
Dario Nieuwenhuis
beeb2f5136
docs/balloon: fix typos
...
Signed-off-by: Dario Nieuwenhuis <dirbaio@dirbaio.net >
2023-09-23 09:37:32 +01:00
dependabot[bot]
3fe4c3eafb
build: Bump proc-macro2 from 1.0.66 to 1.0.67 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.66...1.0.67 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 23:31:58 +00:00
Bo Chen
339912a576
build: Release v35.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-21 15:04:42 +01:00
dependabot[bot]
7ea0bf41be
build: Bump smallvec from 1.11.0 to 1.11.1 in /fuzz
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.0...v1.11.1 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-20 23:40:51 +00:00
Rob Bradford
44f200d67d
hypervisor: Set destination vCPU TSC frequency to source
...
Include the TSC frequency as part of the KVM state so that it will be
restored at the destination.
This ensures migration works correctly between hosts that have a
different TSC frequency if the guest is running with TSC as the source
of timekeeping.
Fixes : #5786
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-20 09:13:42 -07:00
dependabot[bot]
18d8c5669f
build: Bump proc-macro2 from 1.0.66 to 1.0.67
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.66...1.0.67 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-20 00:43:42 +00:00
Bo Chen
57b7f35739
Revert "build: Temporarily disable bare metal workers"
...
This reverts commit ff818869dd .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-19 17:39:27 -07:00
dependabot[bot]
ed4537f4ae
build: Bump vmm-sys-util from 0.11.1 to 0.11.2 in /fuzz
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.11.1 to 0.11.2.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/commits )
---
updated-dependencies:
- dependency-name: vmm-sys-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-20 00:08:46 +00:00
dependabot[bot]
885412a99e
build: Bump serde_json from 1.0.96 to 1.0.107
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.96 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.107 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-19 00:45:18 +00:00
dependabot[bot]
128da81d83
build: Bump io-uring from 0.6.1 to 0.6.2 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.6.1 to 0.6.2.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-18 23:37:10 +00:00
dependabot[bot]
0235bc4cee
build: Bump smallvec from 1.10.0 to 1.11.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-18 16:27:52 +00:00
dependabot[bot]
09a9cce95e
build: Bump libc from 0.2.147 to 0.2.148 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.147 to 0.2.148.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.147...0.2.148 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-15 23:42:37 +00:00
Bo Chen
ff818869dd
build: Temporarily disable bare metal workers
...
The bare metal machines are now not reachable from our Jenkins
controller, and causing CI pipeline timeout for the past few days.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-15 13:53:46 -07:00
Bo Chen
c70f133b72
build: Skip 'test_vfio' on AMD workers
...
See: #5775
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-15 08:07:31 +01:00
Bo Chen
328cf39be1
tests: Enable "test_vfio" on Azure VM instances
...
In this way, this test can be run against all PRs.
Fixes : #4324
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-15 08:07:31 +01:00
dependabot[bot]
64ad7657d1
build: Bump darling from 0.20.1 to 0.20.3
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.1 to 0.20.3.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.1...v0.20.3 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-15 00:17:16 +00:00
dependabot[bot]
cb6a53698c
build: Bump unicode-ident from 1.0.11 to 1.0.12 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-14 23:36:52 +00:00
Alyssa Ross
a91637067a
virtio-devices: fix typo in error description
...
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-09-14 14:09:14 +01:00
Christian Blichmann
88f3537b47
event_monitor: Replace unsound static mut MONITOR
...
See discussion in https://github.com/rust-lang/rust/issues/53639 .
This came up during an internal review.
Signed-off-by: Christian Blichmann <cblichmann@google.com >
2023-09-14 14:08:54 +01:00
dependabot[bot]
f557aadb67
build: Bump is-terminal from 0.4.7 to 0.4.9
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.7 to 0.4.9.
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.7...v0.4.9 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-14 07:55:17 +01:00
dependabot[bot]
ff6514572e
build: Bump serde_json from 1.0.106 to 1.0.107 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.106 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.106...v1.0.107 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-14 00:17:01 +00:00
dependabot[bot]
11ec1e647c
build: Bump cc from 1.0.79 to 1.0.83
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.79 to 1.0.83.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.79...1.0.83 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-13 00:09:38 +00:00
dependabot[bot]
226816bb04
build: Bump crc32c from 0.6.3 to 0.6.4
...
Bumps [crc32c](https://github.com/zowens/crc32c ) from 0.6.3 to 0.6.4.
- [Commits](https://github.com/zowens/crc32c/compare/v0.6.3...v0.6.4 )
---
updated-dependencies:
- dependency-name: crc32c
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-12 00:15:22 +00:00
dependabot[bot]
6e32c4531e
build: Bump serde_json from 1.0.105 to 1.0.106 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.105...v1.0.106 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-11 23:34:46 +00:00
Bo Chen
9c994f882a
virtio-devices: block: Fix the latency counter for max read/write
...
See: #5712
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-11 23:08:23 +01:00
Bo Chen
b76d0e8b50
virtio-devices: block: Fix latency counter for average read/write
...
The cumulative average formula [1] requires to use signed integers
for proper calculations, while calculated result (e.g. cumulative
average) is always positive. This patch reflects the above requirements
in our code.
[1] https://en.wikipedia.org/wiki/Moving_average#Cumulative_average
Fixes : #5745
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-11 23:08:15 +01:00
Ruslan Mstoi
e151483f70
docs: intel_tdx: add info about dependencies
...
Required Debian packages are the same as described in uefi.md
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-09-11 16:39:16 +01:00
Ruslan Mstoi
b904d666b0
docs: intel_tdx: fix python not found error
...
Fix make error:
$ make -C BaseTools -j `nproc`
/bin/sh: line 1: python: command not found
make[1]: *** [GNUmakefile:11: test] Error 127
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-09-11 16:39:16 +01:00
dependabot[bot]
0b99f96fc4
build: Bump pnet/pnet_datalink from 0.33.0 to 0.34.0
...
Bump these crates need to be bumped together to avoid build issues from
shared structures.
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-11 13:15:08 +00:00
Ruslan Mstoi
6d395c51db
docs: intel_tdx: add jobs argument to make
...
This could speed up the build
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-09-11 13:27:40 +01:00
Thomas Barrett
c4e8e653ac
block: Add support for user specified ID_SERIAL
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-09-11 12:50:41 +01:00
Ruslan Mstoi
49e342314d
tests: test_memory_overhead: use guest.vm_wait_boot
...
See: #5738
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-09-11 12:50:08 +01:00
Julian Stecklina
0d9749282a
vmm: simplify EntryPoint
...
EntryPoint had an optional entry_addr, but there is no usage of this
struct that makes it necessary that the address is optional.
Remove the Option to avoid being able to express things that are not
useful.
Signed-off-by: Julian Stecklina <julian.stecklina@cyberus-technology.de >
2023-09-09 10:46:51 +01:00
Philipp Schuster
83f3b34405
ci: Run typos
...
This adds the typos utility as dedicated CI step.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-09-09 10:46:21 +01:00
Philipp Schuster
7bf0cc1ed5
misc: Fix various spelling errors using typos
...
This fixes all typos found by the typos utility with respect to the config file.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-09-09 10:46:21 +01:00
Philipp Schuster
fa09045f55
misc: Add configuration file for typos
...
This is a preparation to run the typos utility on the repo.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-09-09 10:46:21 +01:00
Rob Bradford
367201ed1e
tests: Temporarily disable test_vdpa_net
...
This test is consistently failing after the on demand worker kernel
upgrade.
See: #5756
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-09 08:43:53 +01:00
dependabot[bot]
068470696f
build: Bump proc-macro2 from 1.0.63 to 1.0.66
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.63 to 1.0.66.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.63...1.0.66 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-08 08:40:23 +01:00
Bo Chen
e2db476f6e
virtio-devices: block: Correct the latency for the first op
...
There is a "LATENCY_SCALE" being used for calculating cumulative average
latency, so it should also be used for the latency of the first op.
See: #5712
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-09-07 23:00:47 +01:00
Rob Bradford
07d1208dd5
build: Bump vm-memory and its consumers
...
Update to the latest vm-memory and all the crates that also depend upon
it.
Fix some deprecation warnings.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-07 11:34:51 -07:00
Rob Bradford
4548de194d
build: Bump acpi_tables version
...
Fix newly added deprecation for mispelling of cacheable.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-07 13:58:33 +01:00
Jinank Jain
1b9ce69afa
src: Add compile time check for SNP and TDX
...
We need to make sure that SEV-SNP and TDX are not enabled at the same
time. As these two features belong to mutually exclusive hardware
vendors. So, we should make sure that these two features are not enabled
at the same. Thus, a compile time check for it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-09-07 12:52:27 +01:00
Jinank Jain
51548471fd
github: worflow: Add build and clippy test for snp
...
Extend the current github actions to add support for snp feature flag.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-09-07 12:52:27 +01:00
Jinank Jain
70074ddf9f
docs: Add documentation for AMD SEV-SNP
...
Creating some brief documentation for SEV-SNP, summarizing the links on
where to find more information about SEV-SNP, as well as how to build
and run Cloud Hypervisor on it.
This document is a work in progress and will be updated in future PRs
as we add support for it.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-09-07 12:52:27 +01:00
Jinank Jain
200cba0e20
vmm: Refactor VM creation workflow
...
This refactoring is required to add support for creating SEV-SNP enabled
VM.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-09-07 12:52:27 +01:00
Jinank Jain
5fd79571b7
vmm: Add a feature flag for SEV-SNP support
...
This feature flag gates the development for SEV-SNP enabled guest.
Also add a helper function to identify if SNP should be enabled for the
guest.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-09-07 12:52:27 +01:00
dependabot[bot]
3e1b0bc124
build: Bump regex-syntax from 0.7.4 to 0.7.5
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.7.4 to 0.7.5.
- [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/regex-syntax-0.7.4...regex-syntax-0.7.5 )
---
updated-dependencies:
- dependency-name: regex-syntax
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-07 07:14:34 +00:00
dependabot[bot]
1632dbbf29
build: Bump zerocopy from 0.6.3 to 0.6.4 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.6.3 to 0.6.4.
- [Commits](https://github.com/google/zerocopy/compare/v0.6.3...v0.6.4 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-06 23:18:49 +00:00
Thomas Barrett
8d2e590886
rate-limiter: Allow RateLimiter to be shared between threads
...
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com >
2023-09-06 15:02:37 -07:00
dependabot[bot]
e880aeed8d
build: Bump openssl-sys from 0.9.91 to 0.9.93
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.91 to 0.9.93.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.91...openssl-sys-v0.9.93 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-06 17:39:14 +00:00
Rob Bradford
8bdf59bbee
build: Use focal version of azure-cli client on aarch64
...
The worker is running focal not bionic - this fixes build issues on that
worker machine due to the bionic version not being installable.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-06 12:06:20 +01:00
dependabot[bot]
14edd6d9de
build: Bump thiserror from 1.0.47 to 1.0.48 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.47...1.0.48 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-05 23:43:35 +00:00
Rob Bradford
01097aa130
block: Ensure probing reads are block size aligned
...
This is necessary for O_DIRECT based use of raw block devices which may
require access at a larger block size than that of a sector (512 bytes.)
Fixes : #5722
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-05 13:09:49 -07:00
Rob Bradford
9ca2c336f2
block: Move DiskTopology to common code
...
It doens't make sense to limit this to the async_io module and import
across modules so place in default create module.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-09-05 13:09:49 -07:00
dependabot[bot]
b1a1b2a622
build: Bump nix from 0.26.2 to 0.26.4
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.26.2 to 0.26.4.
- [Changelog](https://github.com/nix-rust/nix/blob/v0.26.4/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.26.2...v0.26.4 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-01 23:52:31 +00:00
Philipp Schuster
556bda74a0
hypervisor: emulator: Use wrapping add for memory offset
...
Assume rax is 0xfee003e0 and the displacement is negative 0x60. The effective
address is then 0xfee00380. This is perfectly valid.
Example instruction:
c7 40 a0 00 10 00 00 movl $0x1000,-0x60(%rax)
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-09-01 14:27:54 +01:00
dependabot[bot]
8db85eca1f
build: Bump io-uring from 0.6.0 to 0.6.1
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.6.0 to 0.6.1.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-31 23:59:42 +00:00
Rob Bradford
b5766028a8
virtio-devices: block: Make latency infinite before first op
...
Logically until we have handled the first operation the latency is
infinite; this logic was applied to the minimum latency originally but
this patch extends that logic to the maximum and average latency.
To prevent the initial average latency being skewed by the inclusion of
infinity the average value is initally seeded with the first measured
latency.
Fixes : #5704
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-31 08:22:07 -07:00
dependabot[bot]
35757ec45a
build: Bump mshv-ioctls from a45fbeb to c5a6050
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `a45fbeb` to `c5a6050`.
- [Commits](a45fbeb4a3...c5a6050859 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-31 00:28:57 +00:00
Ruslan Mstoi
a51b48a095
tests: fix typo expected_events to latest_events
...
In the documentation of function check_latest_events_exact use same events
argument name as in the implementation
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-08-30 13:06:32 -07:00
dependabot[bot]
d1ee623f0e
build: Bump regex-automata from 0.3.3 to 0.3.7
...
Bumps [regex-automata](https://github.com/rust-lang/regex ) from 0.3.3 to 0.3.7.
- [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/regex-automata-0.3.3...regex-syntax-0.3.7 )
---
updated-dependencies:
- dependency-name: regex-automata
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 00:22:15 +00:00
Rob Bradford
a2752fe04f
virtio-devices: vsock: Support single descriptor
...
Since kernel v6.3 the vsock packet is not split over two descriptors
and is instead included in a single one.
This change is based on the discovery and fix identified by Stefano
Garzarella for the vm-virtio vsock implementation and adapted for our
very different codebase.
Fixes : #5691
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-29 15:36:49 -07:00
Omer Faruk Bayram
cc5dd8c297
docs: api: document newly added event signal to the D-Bus API
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-08-28 17:01:03 -07:00
Omer Faruk Bayram
2ed96cd3ed
vmm: dbus: broadcast event_monitor events over the DBus API
...
This commit builds on top of the `Monitor::subscribe` function and
makes it possible to broadcast events published from `event-monitor`
over D-Bus.
The broadcasting functionality is enabled if the D-Bus API is enabled
and users who wish to also enable the file based `event-monitor` can do
so with the CLI arg `--event-monitor`.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-08-28 17:01:03 -07:00
Omer Faruk Bayram
e02efe9ba0
event_monitor: make it possible to subscribe to Monitor
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-08-28 17:01:03 -07:00
dependabot[bot]
654ac49bd6
build: Bump micro_http from b538bf8 to 0d0fdcd
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `b538bf8` to `0d0fdcd`.
- [Commits](b538bf89e5...0d0fdcd50e )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-28 23:55:16 +00:00
dependabot[bot]
8013e47856
build: Bump openssl-sys from 0.9.90 to 0.9.91
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.90 to 0.9.91.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.90...openssl-sys-v0.9.91 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-26 00:16:59 +00:00
dependabot[bot]
7216d934de
build: Bump quote from 1.0.32 to 1.0.33 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-25 23:34:35 +00:00
dependabot[bot]
f45bbbfcac
build: Bump serde from 1.0.164 to 1.0.168
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.164 to 1.0.168.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.168 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-25 09:53:12 +00:00
dependabot[bot]
d87024a752
build: Bump micro_http from b538bf8 to 0d0fdcd in /fuzz
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `b538bf8` to `0d0fdcd`.
- [Commits](b538bf89e5...0d0fdcd50e )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-24 23:46:18 +00:00
dependabot[bot]
bb94dd18ee
build: Bump openssl-src from 111.26.0+1.1.1u to 111.27.0+1.1.1v
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.26.0+1.1.1u to 111.27.0+1.1.1v.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-24 08:03:35 +00:00
dependabot[bot]
00e4f28e8f
build: Bump thiserror from 1.0.44 to 1.0.47 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.44 to 1.0.47.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.47 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-24 00:01:37 +00:00
Rob Bradford
89661f6579
Revert "build: Temporarily disable bare metal Intel workers"
...
This reverts commit 96df501b7f .
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-23 17:16:50 +01:00
Rob Bradford
cd7eecc0b0
devices: pvpanic: Clean up struct visibility
...
There is no need for this struct to be public and since it is used in
this module the #[allow(dead_code)] invocation can be removed.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-23 08:05:53 +01:00
dependabot[bot]
78ec651cbf
build: Bump serde_with from 3.2.0 to 3.3.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.2.0...v3.3.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-23 00:04:13 +00:00
dependabot[bot]
3e54a586ce
build: Bump async-trait from 0.1.71 to 0.1.73
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.71 to 0.1.73.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.71...0.1.73 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-22 23:52:19 +00:00
Rob Bradford
9d5c5a6410
vmm: sigwinch_listener: Remove unncessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> vmm/src/sigwinch_listener.rs:121:38
|
121 | fn set_foreground_process_group(tty: &mut File) -> io::Result<()> {
| ^^^^^^^^^ help: consider changing to: `&File`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
8d072fef15
vmm: device_manager: Remove unnecessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> vmm/src/device_manager.rs:1908:35
|
1908 | fn set_raw_mode(&mut self, f: &mut dyn AsRawFd) -> vmm_sys_util::errno::Result<()> {
| ^^^^^^^^^^^^^^^^ help: consider changing to: `&dyn AsRawFd`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
= note: `#[warn(clippy::needless_pass_by_ref_mut)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
1dd1850747
ch-remote: dbus: Remove unnecessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> src/bin/ch-remote.rs:397:52
|
397 | fn dbus_api_do_command(toplevel: &TopLevel, proxy: &mut DBusApi1ProxyBlocking<'_>) -> ApiResult {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&DBusApi1ProxyBlocking<'_>`
|
= note: this is cfg-gated and may require further changes
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
= note: `#[warn(clippy::needless_pass_by_ref_mut)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
0bead9ebe1
vmm: cpu: Fix slow vector initialization
...
warning: slow zero-filling initialization
--> vmm/src/cpu.rs:1780:9
|
1779 | let mut mat_data: Vec<u8> = Vec::new();
| ---------- help: consider replacing this with: `vec![0; std::mem::size_of_val(&lapic)]`
1780 | mat_data.resize(std::mem::size_of_val(&lapic), 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
= note: `#[warn(clippy::slow_vector_initialization)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
05a86d892e
virtio-devices: vsock: Fix slow vector initialization
...
warning: slow zero-filling initialization
--> virtio-devices/src/vsock/csm/txbuf.rs:218:9
|
216 | let mut tmp: Vec<u8> = Vec::new();
| ---------- help: consider replacing this with: `vec![0; TxBuf::SIZE - 2]`
217 |
218 | tmp.resize(TxBuf::SIZE - 2, 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
= note: `#[warn(clippy::slow_vector_initialization)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
4d8dacec5e
virtio-devices: transport: Remove unnecessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> virtio-devices/src/transport/pci_common_config.rs:100:17
|
100 | queues: &mut [Queue],
| ^^^^^^^^^^^^ help: consider changing to: `&[Queue]`
|
= warning: changing this function will impact semver compatibility
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
= note: `#[warn(clippy::needless_pass_by_ref_mut)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
cc4422d58b
vm-device: bus: Fix incorrect partial_cmp implementation
...
warning: incorrect implementation of `partial_cmp` on an `Ord` type
--> vm-device/src/bus.rs:86:1
|
86 | / impl PartialOrd for BusRange {
87 | | fn partial_cmp(&self, other: &BusRange) -> Option<Ordering> {
| | _________________________________________________________________-
88 | || self.base.partial_cmp(&other.base)
89 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
90 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_partial_ord_impl_on_ord_type
= note: `#[warn(clippy::incorrect_partial_ord_impl_on_ord_type)]` on by default
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
239f422203
hypervisor: x86: emulator: Remove unncessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> hypervisor/src/arch/x86/emulator/instructions/mod.rs:22:15
|
22 | platform: &mut dyn PlatformEmulator<CpuState = T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&dyn PlatformEmulator<CpuState = T>`
|
= note: this is cfg-gated and may require further changes
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
5636d91524
net_util: queue_pair: Remove unnecessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> net_util/src/queue_pair.rs:167:14
|
167 | tap: &mut Tap,
| ^^^^^^^^ help: consider changing to: `&Tap`
|
= warning: changing this function will impact semver compatibility
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
11c58870c4
block: async_io: Remove unnecessary mut from reference
...
warning: this argument is a mutable reference, but not used mutably
--> block/src/async_io.rs:68:28
|
68 | fn query_block_size(f: &mut File, block_size_type: BlockSize) -> std::io::Result<u64> {
| ^^^^^^^^^ help: consider changing to: `&File`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Rob Bradford
b74907fa1b
block: vhdx: Fix block size check
...
warning: boolean expression will never evaluate to 'true'
--> block/src/vhdx/vhdx_metadata.rs:136:20
|
136 | if disk_spec.block_size < BLOCK_SIZE_MIN && disk_spec.block_size > BLOCK_SIZE_MAX {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: since `BLOCK_SIZE_MIN` < `BLOCK_SIZE_MAX`, the expression evaluates to false for any value of `disk_spec.block_size`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#impossible_comparisons
= note: `#[warn(clippy::impossible_comparisons)]` on by default
&& was used when || should have been used
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-22 12:01:54 +01:00
Wei Liu
dbe67fca7f
hypervisor: mshv: handle APIC EOI message
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-08-21 17:20:05 -07:00
dependabot[bot]
d3fc12b160
build: Bump cpufeatures from 0.2.8 to 0.2.9
...
Bumps [cpufeatures](https://github.com/RustCrypto/utils ) from 0.2.8 to 0.2.9.
- [Commits](https://github.com/RustCrypto/utils/compare/cpufeatures-v0.2.8...cpufeatures-v0.2.9 )
---
updated-dependencies:
- dependency-name: cpufeatures
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-22 00:06:45 +00:00
dependabot[bot]
d73d3203dc
build: Bump cc from 1.0.82 to 1.0.83 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.82...1.0.83 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-21 23:21:46 +00:00
Jianyong Wu
16e1449f1e
balloon: let balloon deflation works on page size other than 4k
...
Similar to balloon inflation, memory allocation is also constrained to
align with the page size. Therefore, memory is allocated in units of the
host page size, one page at a time, until all host pages that the memory
range requested by the guest are managed. If the requested size is
smaller than the page size, the entire page will still be allocated
because smaller allocations are not possible due to the page size
limitation.
Fixes: cloud-hypervisor#5369
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-08-21 16:35:23 +01:00
Jianyong Wu
9dd1698556
balloon: let balloon inflation works on page size other than 4k
...
Currently, virtio-balloon can't work well with page size other than 4k.
The virtio-balloon always works in units of 4kiB (BALLOON_PAGE_SIZE), but
we can only actually discard memory in units of the host page size.
We get some idea from [1] to solve this issue.
What has been done in this commit:
For balloon inflation:
A bitmap is employed to track the memory range to be released in 4k
granularity. Once it accumulates to one host page size, the corresponding
page is released, and the bitmap is cleared to handle the next record.
This process continues until all the memory range is managed. Memory will
only be released when a consecutive set of balloon request entries from
the same host page reaches the full host page size. If a balloon request
entry from a different host page is encountered, the bitmap and the base
host page address will be reset. Consequently, memory is released in
units of the page size, ensuring efficient memory management. That's say
if memory range length to be released smaller than page size or if the
guest scatters requests each of whose size is smaller than page size
across different host pages no memory will be released.
[1] https://patchwork.kernel.org/project/qemu-devel/patch/20190214043916.22128-6-david@gibson.dropbear.id.au/
Fixes: cloud-hypervisor#5369
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-08-21 16:35:23 +01:00
Yi Wang
d46dd4b31f
vmm: cpu: Add pending removed vcpu check to avoid resize vcpu hang
...
Add pending removed vcpu check according to VcpuState.removing, which
can avoid cloud hypervisor hangup during continual vcpu resize.
Fix #5419
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-08-20 10:40:43 +01:00
Anatol Belski
0e75e7d079
scripts: Set LAST_RELEASE_VERSION to v34.0
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-08-20 10:39:11 +01:00
Anatol Belski
be81fea46a
tests: Re-enable live migration tests for AMD
...
These had to be previously disabled because a released binary has to be
used in course of the test scenario. The necessary functionality is now
supported with the release 34.0, thus these tests should now pass.
Fixes : #5660
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-08-20 10:39:11 +01:00
Ruslan Mstoi
cd010052f8
tests: Revert disable test_vfio test
...
This reverts commit 268c4ea214 .
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-08-20 10:38:44 +01:00
Ruslan Mstoi
725bb8d038
test_data: fix cloud-hypervisor invocation
...
Update cloud-hypervisor call in accordance with argh semantics
Fixes #5190
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-08-20 10:38:44 +01:00
dependabot[bot]
ddfac7df0b
build: Bump anyhow from 1.0.71 to 1.0.75
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.71 to 1.0.75.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.75 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-19 21:40:49 +00:00
dependabot[bot]
6118359240
build: Bump serde_json from 1.0.104 to 1.0.105 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-18 23:28:23 +00:00
dependabot[bot]
0a294bf2d7
build: Bump tempfile from 3.5.0 to 3.7.1
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.5.0 to 3.7.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.5.0...v3.7.1 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-18 00:08:02 +00:00
dependabot[bot]
baf10a45a9
build: Bump anyhow from 1.0.74 to 1.0.75 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.74 to 1.0.75.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-18 00:01:38 +00:00
dependabot[bot]
c655e22e42
build: Bump pin-project-lite from 0.2.9 to 0.2.12
...
Bumps [pin-project-lite](https://github.com/taiki-e/pin-project-lite ) from 0.2.9 to 0.2.12.
- [Release notes](https://github.com/taiki-e/pin-project-lite/releases )
- [Changelog](https://github.com/taiki-e/pin-project-lite/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project-lite/compare/v0.2.9...v0.2.12 )
---
updated-dependencies:
- dependency-name: pin-project-lite
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-16 23:55:45 +00:00
dependabot[bot]
dd6ee3b39a
build: Bump log from 0.4.19 to 0.4.20 in /fuzz
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.19 to 0.4.20.
- [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.19...0.4.20 )
---
updated-dependencies:
- dependency-name: log
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-16 23:36:23 +00:00
dependabot[bot]
8b651ec7ee
build: Bump semver from 1.0.17 to 1.0.18
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.17...1.0.18 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-16 00:54:29 +00:00
zhongbingnan
5857d4851b
aarch64/fdt: fix cache sharing issue for cache passthrough on aarch64
...
We fixed the L2 and L3 level cache sharing issues and confirmed that the
L2 level cache is independent, while the L3 level cache is shared per-socket.
See:#5505
Signed-off-by: zhongbingnan <zhongbingnan@bytedance.com >
2023-08-16 08:25:20 +08:00
dependabot[bot]
0f63f8d001
build: Bump anyhow from 1.0.72 to 1.0.74 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.72 to 1.0.74.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.74 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-15 23:35:06 +00:00
dependabot[bot]
2571e59438
build: Bump libc from 0.2.144 to 0.2.147
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.144 to 0.2.147.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.144...0.2.147 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-15 00:53:20 +00:00
dependabot[bot]
d32e7fceb5
build: Bump io-uring from 0.6.0 to 0.6.1 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.6.0 to 0.6.1.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-14 23:58:17 +00:00
dependabot[bot]
86655f4967
build: Bump libz-sys from 1.1.9 to 1.1.12
...
Bumps [libz-sys](https://github.com/rust-lang/libz-sys ) from 1.1.9 to 1.1.12.
- [Release notes](https://github.com/rust-lang/libz-sys/releases )
- [Commits](https://github.com/rust-lang/libz-sys/compare/1.1.9...1.1.12 )
---
updated-dependencies:
- dependency-name: libz-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-12 16:46:35 +00:00
dependabot[bot]
d9d1cdb0c6
build: Bump libfuzzer-sys from 0.4.6 to 0.4.7 in /fuzz
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.6 to 0.4.7.
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.6...0.4.7 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-11 23:34:26 +00:00
dependabot[bot]
ca155a790c
build: Bump argh from 0.1.10 to 0.1.12 in /fuzz
...
Bumps [argh](https://github.com/google/argh ) from 0.1.10 to 0.1.12.
- [Release notes](https://github.com/google/argh/releases )
- [Commits](https://github.com/google/argh/compare/0.1.10...0.1.12 )
---
updated-dependencies:
- dependency-name: argh
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-11 00:07:42 +00:00
Rob Bradford
487a43cdee
build: Release v34.0
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-10 17:18:23 +01:00
Rob Bradford
96df501b7f
build: Temporarily disable bare metal Intel workers
...
The jenkins controller cannot reach them
See: #5670
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-10 15:24:53 +01:00
dependabot[bot]
e0e3779e96
build: Bump unicode-ident from 1.0.9 to 1.0.11
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.9 to 1.0.11.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.9...1.0.11 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-10 00:06:34 +00:00
dependabot[bot]
66c40b0f02
build: Bump zerocopy from 0.6.1 to 0.6.3 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.6.1 to 0.6.3.
- [Commits](https://github.com/google/zerocopy/compare/v0.6.1...v0.6.3 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-09 23:54:12 +00:00
Omer Faruk Bayram
a0c8bf4f9f
vmm: seccomp: implement seccomp filtering for the event-monitor thread
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-08-09 17:22:25 +01:00
Omer Faruk Bayram
02e1c54426
event_monitor: refactor the implementation to support concurrent access
...
This patch modifies `event_monitor` to ensure that concurrent access to
`event_log` from multiple threads is safe. Previously, the `event_log`
function would acquire a reference to the event log file and write
to it without doing any synchronization, which made it prone to
data races. This issue likely went under the radar because the
relevant `SAFETY` comment on the unsafe block was incomplete.
The new implementation spawns a dedicated thread named `event-monitor`
solely for writing to the file. It uses the MPMC channel exposed by
`flume` to pass messages to the `event-monitor` thread. Since
`flume::Sender<T>` implements `Sync`, it is safe for multiple threads
to share it and send messages to the `event-monitor` thread.
This is not possible with `std::sync::mpsc::Sender<T>` since it's
`!Sync`, meaning it is not safe for it to be shared between different
threads.
The `event_monitor::set_monitor` function now only initializes
the required global state and returns an instance of the
`Monitor` struct. This decouples the actual logging logic from the
`event_monitor` crate. The `event-monitor` thread is then spawned by
the `vmm` crate.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-08-09 17:22:25 +01:00
dependabot[bot]
3d82867fe2
build: Bump winnow from 0.4.1 to 0.4.9
...
Bumps [winnow](https://github.com/winnow-rs/winnow ) from 0.4.1 to 0.4.9.
- [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md )
- [Commits](https://github.com/winnow-rs/winnow/compare/v0.4.1...v0.4.9 )
---
updated-dependencies:
- dependency-name: winnow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-09 00:43:59 +00:00
dependabot[bot]
193950ce42
build: Bump scopeguard from 1.1.0 to 1.2.0
...
Bumps [scopeguard](https://github.com/bluss/scopeguard ) from 1.1.0 to 1.2.0.
- [Commits](https://github.com/bluss/scopeguard/compare/v1.1.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: scopeguard
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-08 00:21:15 +00:00
dependabot[bot]
548a5234c5
build: Bump cc from 1.0.81 to 1.0.82 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.81...1.0.82 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-07 23:19:08 +00:00
Anatol Belski
bcb411b4d6
ci: Skip failures in live_migration::*
...
These tests require a binary from a previous release to perform a
migration. That binary doesn't yet have the shutdown fixes and thus
these tests are supposed to fail. The tests are to be re-enabled after
the next release.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-08-07 07:41:28 +01:00
Anatol Belski
2c1772b401
ci: Add AMD pass
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-08-07 07:41:28 +01:00
Rob Bradford
363b478040
pci: vfio: Don't assume MSI-X is enabled
...
The fixup_msix_region() function added in
a718716831
made the assumption that MSI-X was always available. This is the case
with many VFIO devices and all our virtio devices but created regression
with MSI devices.
Simply return the existing region size if MSI-X is not supported by the
device.
Fixes : #5649
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-07 07:41:15 +01:00
Rob Bradford
a00d29867c
fuzz, vmm: Avoid infinite loop in CMOS fuzzer
...
With the addition of the spinning waiting for the exit event to be
received in the CMOS device a regression was introduced into the CMOS
fuzzer. Since there is nothing to receive the event in the fuzzer and
there is nothing to update the bit the that the device is looping on;
introducing an infinite loop.
Use an Option<> type so that when running the device in the fuzzer no
Arc<AtomicBool> is provided effectively disabling the spinning logic.
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61165
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-07 08:04:55 +08:00
dependabot[bot]
6ee7bfdd50
build: Bump errno from 0.3.1 to 0.3.2
...
Bumps [errno](https://github.com/lambda-fairy/rust-errno ) from 0.3.1 to 0.3.2.
- [Changelog](https://github.com/lambda-fairy/rust-errno/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lambda-fairy/rust-errno/compare/v0.3.1...v0.3.2 )
---
updated-dependencies:
- dependency-name: errno
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-05 00:04:52 +00:00
dependabot[bot]
d926db5ef8
build: Bump serde_with from 3.0.0 to 3.2.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.0.0 to 3.2.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.0.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 23:36:40 +00:00
Anatol Belski
376b676910
Dockerfile: Build SPDK for skylake
...
As the container image can be used on both Intel and AMD,
ensure the SPDK binaries are compatible. This implies -march=skylake
passed to the underlaying toolchain.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-08-04 13:50:34 +01:00
Bo Chen
219716c3f1
scripts: Stop using "--no-default-features" for cargo build
...
Now feature "mshv" can be built together with "kvm". There is no need to
use "--no-default-features" any more.
Fixes : #5647
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-08-04 07:34:13 +01:00
Bo Chen
3bb26093eb
build: Enable default features for release workflow
...
In this way, we are releasing binaries with all default features plus
feature "mshv".
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-08-04 07:33:30 +01:00
Rob Bradford
06dc708515
vmm: Only return from reset driven I/O once event received
...
The reset system is asynchronous with an I/O event (PIO or MMIO) for
ACPI/i8042/CMOS triggering a write to the reset_evt event handler. The
VMM thread will pick up this event on the VMM main loop and then trigger
a shutdown in the CpuManager. However since there is some delay between
the CPU threads being marked to be killed (through the
CpuManager::cpus_kill_signalled bool) it is possible for the guest vCPU
that triggered the exit to be re-entered when the vCPU KVM_RUN is called
after the I/O exit is completed.
This is undesirable and in particular the Linux kernel will attempt to
jump to real mode after a CMOS based exit - this is unsupported in
nested KVM on AMD on Azure and will trigger an error in KVM_RUN.
Solve this problem by spinning in the device that has triggered the
reset until the vcpus_kill_signalled boolean has been updated
indicating that the VMM thread has received the event and called
CpuManager::shutdown(). In particular if this bool is set then the vCPU
threads will not re-enter the guest.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-04 09:57:25 +08:00
Ruslan Mstoi
70cfd1be67
scripts: dev_cli: add possibly to use different container registry
...
Currently if container registry is inaccessible the image will be built
locally and that takes time. This patch adds support to use mirror
registry. To use a different registry CTR_IMAGE environment variable
must be set. For example:
CTR_IMAGE="registry/cloud-hypervisor" scripts/dev_cli.sh
or
export CTR_IMAGE="registry/cloud-hypervisor"
scripts/dev_cli.sh
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-08-04 08:12:22 +08:00
dependabot[bot]
6b79aca32d
build: Bump quote from 1.0.31 to 1.0.32 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.31...1.0.32 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 00:08:33 +00:00
Yong He
0149e65081
vm-device: support batch update interrupt source group GSI
...
Split interrupt source group restore into two steps, first restore
the irqfd for each interrupt source entry, and second restore the
GSI routing of the entire interrupt source group.
This patch will reduce restore latency of interrupt source group,
and in a 200-concurrent restore test, the patch reduced the
average IOAPIC restore time from 15ms to 1ms.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-08-03 15:58:36 +01:00
dependabot[bot]
ecf3db5092
build: Bump remain from 0.2.10 to 0.2.11
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.10 to 0.2.11.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.10...0.2.11 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-02 23:50:57 +00:00
dependabot[bot]
8cd40a7a80
build: Bump cc from 1.0.79 to 1.0.81 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.79 to 1.0.81.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.79...1.0.81 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-02 23:27:24 +00:00
dependabot[bot]
c559f52fe5
build: Bump signal-hook from 0.3.15 to 0.3.17
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.15 to 0.3.17.
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.15...v0.3.17 )
---
updated-dependencies:
- dependency-name: signal-hook
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-02 04:25:49 +00:00
dependabot[bot]
f022953fff
build: Bump serde_json from 1.0.100 to 1.0.104 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.100 to 1.0.104.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.100...v1.0.104 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-01 23:58:45 +00:00
Philipp Schuster
442ac9056c
x86 emulator: add Mov_moffs_AX & Mov_AX_moffs (16,32,64)
...
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-08-01 20:14:10 +01:00
dependabot[bot]
fe97785a9f
build: Bump io-uring from 0.5.13 to 0.6.0
...
Includes fixes for changed function prototypes.
bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.13 to 0.6.0.
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-08-01 14:27:54 +01:00
dependabot[bot]
e5bb3903ad
build: Bump thiserror from 1.0.43 to 1.0.44 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-31 23:43:50 +00:00
Anatol Belski
0b6bc75d3a
tests: Ensure sufficient nofile limit for VFIO tests
...
The VFIO tests based on the NVMe emulation framework require cause a
high number of file descriptors to be opened on the system. On systems
with a low limit on opened files, tests like test_vfio_user can possibly
fail with "too many open files" exeption. This issue is fixed by raising
the corresponding limit.
A tricky detail here is, that the limit has to be changed in the test
container and not on the host. As the the container is executed in the
privileged mode, the setting in it will override the host value.
Related: #5426
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-07-31 17:21:47 +01:00
Yi Wang
9da7435f06
tests: add coredump with no need pause
...
Add integration test of coredump with no need pause.
As file of coredump has been tested in test_coredump(), so this
patch only test vm state after coredump.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-31 17:05:46 +01:00
Yi Wang
3225c0c7c8
vmm: Automatically pause VM for coredump
...
If the VMM is not already paused then pause the VM prior to executing
the coredump and then resume it after. If the VM is already paused then
the original state is maintained.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-31 17:05:46 +01:00
Yi Wang
c03f3b54b6
README: update version of Host OS
...
As the commit 2f15d027c05f (KVM: x86: Properly handle APF vs disabled
LAPIC situation) has been merged into kernel 5.13, so update the minimum
performance host kernel version to that.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-31 17:05:12 +01:00
Yi Wang
ba5af92984
arch: x86_64: re-enable KVM_FEATURE_ASYNC_PF_INT in CPUID
...
The commit b92fe648e9 (vmm: cpu: Disable KVM_FEATURE_ASYNC_PF_INT in
CPUID) disabled APF (Asynchronous Page Fault) mechanism to address
problem that makes vcpu thread spin 100%. As the actual issue is in
KVM, which has been merged in commit 2f15d027c05f (KVM: x86: Properly
handle APF vs disabled LAPIC situation) since 2021, so it's okay to
re-enable APF now.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-31 17:05:12 +01:00
Omer Faruk Bayram
c74be069b5
build: bump zbus related dependencies
...
* zbus v3.13.1 -> v3.14.1
* zbus_macros v3.13.1 -> v3.14.1
* zbus_names v2.5.1 -> v2.6.0
* zvariant v3.14.0 -> v3.15.0
* zvariant_derive v3.14.0 -> v3.15.0
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-07-31 10:36:04 +01:00
dependabot[bot]
b29d9607df
build: Bump itoa from 1.0.8 to 1.0.9 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.8...1.0.9 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-28 23:50:10 +00:00
dependabot[bot]
c0c4c0f712
build: Bump anyhow from 1.0.71 to 1.0.72 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-27 23:16:23 +00:00
dependabot[bot]
1c16428e4d
build: Bump getrandom from 0.2.9 to 0.2.10
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.9 to 0.2.10.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.9...v0.2.10 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-27 00:56:26 +00:00
dependabot[bot]
1649845944
build: Bump uuid from 1.4.0 to 1.4.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.4.0...1.4.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-27 00:07:01 +00:00
dependabot[bot]
6372635195
build: Bump crc32c from 0.6.3 to 0.6.4 in /fuzz
...
Bumps [crc32c](https://github.com/zowens/crc32c ) from 0.6.3 to 0.6.4.
- [Commits](https://github.com/zowens/crc32c/compare/v0.6.3...v0.6.4 )
---
updated-dependencies:
- dependency-name: crc32c
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-26 23:34:09 +00:00
Praveen K Paladugu
dd09a0a890
vmm: Extend mshv ioctls in seccomp filters
...
Add MSHV_CREATE_DEVICE, MSHV_SET_DEVICE_ATTR ioctls to filters. These
ioctls are required to passthrough PCI devices on mshv.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-07-26 10:14:43 -07:00
dependabot[bot]
b56e721d78
build: Bump mshv-ioctls from 243953f to a45fbeb
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `243953f` to `a45fbeb`.
- [Commits](243953f7ef...a45fbeb4a3 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-26 00:47:17 +00:00
dependabot[bot]
39f1c5f476
build: Bump semver from 1.0.17 to 1.0.18 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.17...1.0.18 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-25 23:22:35 +00:00
Yi Wang
92cf2816b0
vmm: Ensure vcpu pause is synchronised
...
The pause of vcpu is async now, which makes the vm pause is not
synchronised. As virtio device calls paused_sync wait() to make
sure device_manager pause synchronously, if we make vcpu pause
synchronously, the vm pause can be synchronously then. After
vm.pause() returns the vm is really paused now.
This patch adds a AtomicBool variable to mark vcpu paused state,
to make sure the pause of CpuManager is synchronised.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-25 09:48:24 -07:00
dependabot[bot]
83c8c3c913
build: Bump itoa from 1.0.6 to 1.0.9
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.6 to 1.0.9.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.6...1.0.9 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-25 00:42:14 +00:00
dependabot[bot]
922bc0d9aa
build: Bump remain from 0.2.10 to 0.2.11 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.10 to 0.2.11.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.10...0.2.11 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-24 23:56:30 +00:00
dependabot[bot]
d760a77fbb
build: Bump hermit-abi from 0.3.1 to 0.3.2
...
Bumps [hermit-abi](https://github.com/hermitcore/rusty-hermit ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/hermitcore/rusty-hermit/releases )
- [Commits](https://github.com/hermitcore/rusty-hermit/compare/hermit-abi-0.3.1...hermit-abi-0.3.2 )
---
updated-dependencies:
- dependency-name: hermit-abi
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-22 00:30:28 +00:00
dependabot[bot]
ad8cdb5e85
build: Bump quote from 1.0.29 to 1.0.31 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.29 to 1.0.31.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.29...1.0.31 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-22 00:14:13 +00:00
dependabot[bot]
889d06277a
build: Bump async-trait from 0.1.68 to 0.1.71
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.68 to 0.1.71.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.68...0.1.71 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-20 17:05:40 -07:00
dependabot[bot]
e3fc5c83bb
build: Bump ryu from 1.0.14 to 1.0.15 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.14...1.0.15 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-20 23:44:43 +00:00
dependabot[bot]
06dc25cbd6
build: Bump unicode-ident from 1.0.10 to 1.0.11 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-20 00:15:47 +00:00
Yu Li
4ef388b67c
tests: add integration for qcow backing file
...
This test case creates a new qcow2 file using the image of ubuntu as
its backing file, and boot a virtual machine with this image file.
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
5ffc6d6107
block: qcow: initialize qcow clusters off the backing file when present
...
This preserves any data that the backing file had on a cluster when
doing a write to a subset of that cluster. These writes cause a
performance penalty on creating new clusters if a backing file is
present.
This commit is based on crosvm implementation:
5ad3bc3459
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
e98ea329bf
block: qcow: read from the backing file if present on read miss
...
Reads to qcow files with backing files will fall through to the backing
file if there is no allocated cluster. As of this change, a write will
still trash the cluster and hide any data already present.
This commit is based on crosvm implementation:
d8144a56e2
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
081a6ebb51
block: qcow: support opening backing files
...
This commit allows opening qcow with a backing file, which supports any
type implementing `BlockBackend`.
This commit is based on crosvm implementation:
9ca6039b03
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
ffe78c98fd
qcow: bugfix: do not write v3 items to qcow header
...
Fixes: 3f02ccaa8
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
741d640330
block: introduce trait BlockBackend for block types
...
This commit introduces the trait `BlockBackend` with generic ops
including read, write and seek, which can be used for common I/O
interfaces for the block types without using `DiskFile` and `AsyncIo`.
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
447cad3861
block: merge qcow, vhdx and block_util into block crate
...
This commit merges crates `qcow`, `vhdx` and `block_util` into the
crate `block`, which can allow `qcow` to use functions from `block_util`
without introducing a circular crate dependency.
This commit is based on crosvm implementation:
f2eecc4152
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
Yu Li
47fbe9af1e
block_util: add FixedVhd for its Disk type
...
This commit introduces a generic type `FixedVhd` for its sync and async
disk I/O types, and the disk I/O types will use it directly instead of
maintaining a file themselves.
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-19 13:52:43 +01:00
dependabot[bot]
3f87a81e2b
build: Bump ryu from 1.0.14 to 1.0.15
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.14...1.0.15 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-19 00:18:34 +00:00
dependabot[bot]
aeae5255c8
build: Bump signal-hook from 0.3.15 to 0.3.17 in /fuzz
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.15 to 0.3.17.
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.15...v0.3.17 )
---
updated-dependencies:
- dependency-name: signal-hook
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-19 00:02:13 +00:00
Rob Bradford
0039f45276
vmm: Use LocalX2Apic in MADT/MAT
...
Using this over the LocalApic supports APIC IDs (and hence number of
vCPUs) above 256 (size increases from u8 to u32.)
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-18 09:35:13 -07:00
Rob Bradford
b792d4751d
vmm: Encode ACPI name for CPUs using hexadecimal
...
This increases the number of CPUs that are supported.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-17 09:57:51 -07:00
dependabot[bot]
dc6c3a249d
build: Bump async-channel from 1.8.0 to 1.9.0
...
Bumps [async-channel](https://github.com/smol-rs/async-channel ) from 1.8.0 to 1.9.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/v1.8.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: async-channel
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-15 10:33:11 +00:00
dependabot[bot]
4c7cf634b9
build: Bump darling from 0.20.1 to 0.20.3 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.1 to 0.20.3.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.1...v0.20.3 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-15 00:16:47 +00:00
Alyssa Ross
69bd0036d9
vmm: support removing devices before VM is booted
...
If the VM has been configured but not yet booted, all we need to do to
support removing a device is to remove it from the config, so it will
never be created.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-07-14 10:01:23 -07:00
Yu Li
87d81dd2b1
arch: remove redundant closing paren in log
...
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-14 09:36:27 -07:00
Yu Li
f03c3b737f
main: add missing comma in for net param
...
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-14 09:36:27 -07:00
Alyssa Ross
f346687e3d
vmm: default GDB to false when deserializing
...
This fixes the valid VM config unit tests, which would otherwise fail
to deserialize their expected JSON config due to the missing "gdb" field.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-07-14 09:34:39 -07:00
dependabot[bot]
953c238544
build: Bump mshv-ioctls from afc1581 to 243953f
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `afc1581` to `243953f`.
- [Commits](afc1581a2c...243953f7ef )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-14 00:16:04 +00:00
dependabot[bot]
9ea052785e
build: Bump ryu from 1.0.13 to 1.0.14 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-13 23:31:35 +00:00
dependabot[bot]
10c33ab257
build: Bump regex from 1.8.3 to 1.9.1
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.8.3 to 1.9.1.
- [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.8.3...1.9.1 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-13 08:17:17 -07:00
dependabot[bot]
14af5e1679
build: Bump thiserror from 1.0.40 to 1.0.43 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.40 to 1.0.43.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.40...1.0.43 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-13 08:17:02 -07:00
Yu Li
8ab2d5e539
build: Fix beta clippy issue: private item shadows public glob re-export
...
error: private item shadows public glob re-export
Error: --> hypervisor/src/mshv/mod.rs:42:27
|
42 | CpuIdEntry, FpuState, LapicState, MsrEntry, SpecialRegisters, StandardRegisters,
| ^^^^^^^^^^
|
note: the name `LapicState` in the type namespace is supposed to be publicly re-exported here
--> hypervisor/src/mshv/mod.rs:16:9
|
16 | pub use mshv_bindings::*;
| ^^^^^^^^^^^^^^^^
note: but the private item here shadows it
--> hypervisor/src/mshv/mod.rs:42:27
|
42 | CpuIdEntry, FpuState, LapicState, MsrEntry, SpecialRegisters, StandardRegisters,
| ^^^^^^^^^^
= note: `-D hidden-glob-reexports` implied by `-D warnings`
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-13 08:16:30 -07:00
Yu Li
63226e2b80
build: Fix beta clippy issue (arc_with_non_send_sync)
...
warning: usage of `Arc<T>` where `T` is not `Send` or `Sync`
--> virtio-devices/src/vsock/device.rs:376:22
|
376 | backend: Arc::new(RwLock::new(backend)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using `Rc<T>` instead or wrapping `T` in a std::sync type like `Mutex<T>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
= note: `#[warn(clippy::arc_with_non_send_sync)]` on by default
The vsock backend may be shared between threads, so the type `B` in
`Vsock` should be `VsockBackend` and `Sync`.
Considering that `api_receiver` and `gdb_receiver` are only used in vmm
threads, the `Arc` can be replaced by `Rc`.
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-13 08:16:30 -07:00
Yu Li
d0dbc7fb4d
build: Fix beta clippy issue (useless_vec)
...
warning: useless use of `vec!`
--> test_infra/src/lib.rs:111:30
|
111 | let mut events = vec![epoll::Event::new(epoll::Events::empty(), 0); 1];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[epoll::Event::new(epoll::Events::empty(), 0); 1]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-13 08:16:30 -07:00
Yu Li
aac614e2ec
build: Fix beta clippy issue (unnecessary_cast)
...
warning: casting raw pointers to the same type and constness is unnecessary (`*const protocol::MemoryRange` -> `*const protocol::MemoryRange`)
--> vm-migration/src/protocol.rs:280:17
|
280 | self.data.as_ptr() as *const MemoryRange as *const u8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.data.as_ptr()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-07-13 08:16:30 -07:00
dependabot[bot]
9abf8d6868
build: Bump gimli from 0.27.2 to 0.27.3
...
Bumps [gimli](https://github.com/gimli-rs/gimli ) from 0.27.2 to 0.27.3.
- [Changelog](https://github.com/gimli-rs/gimli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gimli-rs/gimli/compare/0.27.2...0.27.3 )
---
updated-dependencies:
- dependency-name: gimli
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-12 00:22:02 +00:00
Manish Goregaokar
6fdba7ca11
build: Allow disabling io_uring
...
This gives users the chance to reduce the number of dependencies
included, which is generally good practice and also reduces code size.
Furthermore, `io_uring` specifically is a strong contender for something
one may wish to disable due to the syscall API's many security issues[1]
[1]: https://security.googleblog.com/2023/06/learnings-from-kctf-vrps-42-linux.html
Signed-off-by: Manish Goregaokar <manishsmail@gmail.com >
2023-07-11 06:19:30 -07:00
dependabot[bot]
d2e42a0ed4
build: Bump once_cell from 1.17.1 to 1.18.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.1 to 1.18.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.1...v1.18.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-10 23:58:31 +00:00
dependabot[bot]
3e4d6a4081
build: Bump serde_json from 1.0.99 to 1.0.100 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.99...v1.0.100 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-10 23:19:27 +00:00
Changyuan Lyu
7f18d0a281
memory_manager: improve memory region creation
...
Instead of making an owned `zones`, using an iterator is cheaper
since `Vec::remove` may have the performance O(n) [1].
[1]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.remove
Signed-off-by: Changyuan Lyu <changyuanl@google.com >
2023-07-10 11:54:05 -07:00
dom.song
99d42bb05e
tests: Correctly parse number of host cpus > 255
...
test_cpu_affinity needs the number of host CPUs. Since it is possible
for the host to have more than 255 CPUs; increase the size of the
datatype used for parsing the string to accomodate this.
Signed-off-by: dom.song <dom.song@amperecomputing.com >
2023-07-10 11:43:03 -07:00
dependabot[bot]
dbce6cb1ce
build: Bump ryu from 1.0.13 to 1.0.14
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-08 00:11:55 +00:00
dependabot[bot]
cbc5e8da4a
build: Bump mshv-ioctls from d0c852d to afc1581
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `d0c852d` to `afc1581`.
- [Commits](d0c852d08d...afc1581a2c )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-07 00:14:34 +00:00
dependabot[bot]
a3ddc2779d
build: Bump smallvec from 1.10.0 to 1.11.0 in /fuzz
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-06 23:41:27 +00:00
Yi Wang
99353856ef
tests: Add integration test for pvpanic
...
Add integration test for pvpanic, by two methods:
- the vendor id and device id of pci device in guest
- triggering a guest panic and check event-monitor.
Also, to support pvpanic-pci driver, add pvpanic config
in resources.
Signed-off-by: Yi Wang <foxywang@tencent.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-06 11:14:54 +01:00
Yi Wang
d99c0c0d1d
devices: pvpanic: add method for DeviceManager
...
Add method for DeviceManager to invoke.
Signed-off-by: Yi Wang <foxywang@tencent.com >
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-06 11:14:54 +01:00
Yi Wang
8e9ce3ab7c
devices: pvpanic: add snapshot support
...
Add PvPanicDeviceState to retore events of pvpanic from snapshot,
and also PciConfigurationState.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-06 11:14:54 +01:00
Yi Wang
3acb988c1a
devices: pvpanic: Add pci configuration for pvpanic device
...
Implemetion of BusDevice and PciDevice trait for pvpanic device.
Pvpanic device can be implemented as an ISA device or as a
PCI device, we choose PCI device for now.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-06 11:14:54 +01:00
Yi Wang
ef67eab8c3
devices: Add support for pvpanic device
...
Introduce emulation of pvpanic device to allow cloud hypervisor to get
the notify from guest's pvpanic driver when guest kernel crash.
Signed-off-by: Yi Wang <foxywang@tencent.com >
2023-07-06 11:14:54 +01:00
dependabot[bot]
569a2a5f07
build: Bump remain from 0.2.8 to 0.2.10
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.8 to 0.2.10.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.8...0.2.10 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-06 00:11:22 +00:00
dependabot[bot]
353c17eb4d
build: Bump virtio-bindings from 0.2.0 to 0.2.1 in /fuzz
...
Bumps [virtio-bindings](https://github.com/rust-vmm/vm-virtio ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases )
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-bindings-v0.2.0...virtio-bindings-v0.2.1 )
---
updated-dependencies:
- dependency-name: virtio-bindings
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-05 23:32:57 +00:00
Rob Bradford
3166f22751
Revert "build: Bump vm-memory from 0.11.0 to 0.12.0 in /fuzz"
...
This reverts commit efb579b224 .
This PR was mistakenly merged due to the confusion around nightly
builds. The vm-memory update needs to be done in both the root workspace
and fuzz workspace together.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-05 10:36:35 +01:00
Rob Bradford
b4376a0dd9
build: Bump proc-macro2 crate to fix nightly builds
...
error[E0635]: unknown feature `proc_macro_span_shrink`
--> $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.59/src/lib.rs:92:30
|
92 | feature(proc_macro_span, proc_macro_span_shrink)
|
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-05 09:51:54 +01:00
dependabot[bot]
d813c45d81
build: Bump itoa from 1.0.6 to 1.0.8 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.6 to 1.0.8.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.6...1.0.8 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-05 09:23:38 +01:00
dependabot[bot]
aa13ede316
build: Bump epoll from 4.3.1 to 4.3.3
...
Bumps [epoll](https://github.com/nathansizemore/epoll ) from 4.3.1 to 4.3.3.
- [Release notes](https://github.com/nathansizemore/epoll/releases )
- [Commits](https://github.com/nathansizemore/epoll/compare/4.3.1...4.3.3 )
---
updated-dependencies:
- dependency-name: epoll
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-05 09:23:19 +01:00
dependabot[bot]
d1d9e7b241
build: Bump unicode-ident from 1.0.9 to 1.0.10 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-04 08:30:15 +01:00
dependabot[bot]
d86e2ce34d
build: Bump cpufeatures from 0.2.7 to 0.2.8
...
Bumps [cpufeatures](https://github.com/RustCrypto/utils ) from 0.2.7 to 0.2.8.
- [Commits](https://github.com/RustCrypto/utils/compare/cpufeatures-v0.2.7...cpufeatures-v0.2.8 )
---
updated-dependencies:
- dependency-name: cpufeatures
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-04 08:30:02 +01:00
Christian Blichmann
b6d009830d
hypervisor: x86: Emulator is only needed on mshv, not kvm
...
On x86-64, when the underlying hypervisor platform is KVM, no
instruction emulator is necessary. KVM handles instruction boundaries
internally.
This change allows to skip the iced-x86 dependency on KVM, improving
build times, prunes the dependency graph and reduces network traffic
during the initial build.
For Hyper-V, the emulator is still necessary on x86-64, so nothing
changes there.
Signed-off-by: Christian Blichmann <cblichmann@google.com >
2023-07-04 08:29:24 +01:00
Bo Chen
2f70800e91
resources: Disable CONFIG_DEBUG_MISC and set CONFIG_DEBUG_INFO_NONE
...
Otherwise, CONFIG_DEBUG_INFO will be enabled automatically bloating the
size of the kernel image.
Now the size of kernel image is reduced from 635M to 60M on x86_64.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-07-02 21:03:15 +01:00
Rob Bradford
33f3a456c7
resources: Disable CONFIG_DEBUG_INFO in kernel config
...
This bloats the size of the kernel considerably and is a regression
relative to the older version of the kernel.
See: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/5190#issuecomment-1614885046
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-07-02 21:03:15 +01:00
dependabot[bot]
68ce3a9222
build: Bump rustix from 0.37.20 to 0.37.21
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.37.20 to 0.37.21.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.20...v0.37.21 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-01 22:29:18 +01:00
dependabot[bot]
efb579b224
build: Bump vm-memory from 0.11.0 to 0.12.0 in /fuzz
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Changelog](https://github.com/rust-vmm/vm-memory/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vm-memory/commits )
---
updated-dependencies:
- dependency-name: vm-memory
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-01 22:28:52 +01:00
dependabot[bot]
0ff6cdf5eb
build: Bump mshv-bindings from 04f5adb to d0c852d
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `04f5adb` to `d0c852d`.
- [Commits](04f5adbf64...d0c852d08d )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-30 15:12:52 +01:00
dependabot[bot]
25c0c55bb5
build: Bump uuid from 1.3.4 to 1.4.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.4 to 1.4.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.4...1.4.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-29 16:44:08 -07:00
Bo Chen
6e0e632361
build: Release v33.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-29 09:55:24 -07:00
Ravi kumar Veeramally
1c9df58440
net_gen: Use more specific clippy lint controls
...
Remove clippy:all and update it with correct clippy lint,
so that it gives proper information.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-29 08:09:20 +01:00
dependabot[bot]
1917e86206
build: Bump bitflags from 2.3.2 to 2.3.3
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.2...2.3.3 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-28 18:11:01 -07:00
dependabot[bot]
787f5085b6
build: Bump proc-macro2 from 1.0.60 to 1.0.63 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.60 to 1.0.63.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.60...1.0.63 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-29 00:14:32 +00:00
dependabot[bot]
fec39ccf51
build: Bump serde from 1.0.163 to 1.0.164
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-28 00:44:59 +00:00
dependabot[bot]
115085eb9e
build: Bump libc from 0.2.146 to 0.2.147 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.146 to 0.2.147.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.146...0.2.147 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-28 00:26:11 +00:00
Ravi kumar Veeramally
802e9009b9
tests: Remove "useless_conversion" clippy
...
Between musl and glibc there is a difference in the signature of the
ioctl libc function. Use an anonymous cast to force the type coversion.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-27 09:53:41 -07:00
dependabot[bot]
37fbece885
build: Bump toml_datetime from 0.6.1 to 0.6.3
...
Bumps [toml_datetime](https://github.com/toml-rs/toml ) from 0.6.1 to 0.6.3.
- [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.6.1...toml_datetime-v0.6.3 )
---
updated-dependencies:
- dependency-name: toml_datetime
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-27 00:44:56 +00:00
dependabot[bot]
ec6e87479f
build: Bump serde_json from 1.0.97 to 1.0.99 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.97 to 1.0.99.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.97...v1.0.99 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-27 00:12:53 +00:00
Ravi kumar Veeramally
5b51024ef7
pci: Remove "from_over_into" clippy
...
According the std docs implementing From<..> is preferred since it
gives you Into<..> for free where the reverse isn’t true.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-26 10:37:58 -07:00
Ravi kumar Veeramally
99a98f270d
vm-allicator: Remove "new_without_default" clippy
...
Add a Default implementation that delegates to new, so that clippy
can be removed.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-26 06:07:15 -07:00
dependabot[bot]
c0af33a4c9
build: Bump serde_with from 2.3.3 to 3.0.0
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.3 to 3.0.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.3...v3.0.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-24 00:44:50 +00:00
dependabot[bot]
0cf868b5c1
build: Bump tracing-attributes from 0.1.25 to 0.1.26
...
Bumps [tracing-attributes](https://github.com/tokio-rs/tracing ) from 0.1.25 to 0.1.26.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-attributes-0.1.25...tracing-attributes-0.1.26 )
---
updated-dependencies:
- dependency-name: tracing-attributes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-23 00:45:10 +00:00
dependabot[bot]
3da60dfa5e
build: Bump tracing-attributes from 0.1.24 to 0.1.25
...
Bumps [tracing-attributes](https://github.com/tokio-rs/tracing ) from 0.1.24 to 0.1.25.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-attributes-0.1.24...tracing-attributes-0.1.25 )
---
updated-dependencies:
- dependency-name: tracing-attributes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-22 00:44:07 +00:00
dependabot[bot]
1c8a91940e
build: Bump openssl-sys from 0.9.87 to 0.9.90
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.87 to 0.9.90.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.87...openssl-sys-v0.9.90 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-21 18:57:44 +00:00
Ravi kumar Veeramally
8c117a8117
vmm: Remove identity_op audit clippy
...
Avoid identity operations with 0.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-20 14:25:54 -07:00
Ruslan Mstoi
7d0aa1fd02
scripts: dev_cli: Bump container version
...
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Ruslan Mstoi
a0190b16aa
Add Hadolint Dockerfile Linter to CI
...
Fixes #5332
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Ruslan Mstoi
1bd8eb68ff
Dockerfile: fix hadolint warnings
...
Fix these warnings:
SC2086 info: Double quote to prevent globbing and word splitting.
DL3047 info: Avoid use of wget without progress bar. Use `wget --progress=dot:giga <url>`. Or consider using `-q` or `-nv` (shorthands for `--quiet` or `--no-verbose`).
SC2006 style: Use $(...) notation instead of legacy backticks `...`.
Ignore these warning cause they break the build or they do not apply:
DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
DL3003 warning: Use WORKDIR to switch to a directory
SC2016 info: Expressions don't expand in single quotes, use double quotes for that.
SC2046 warning: Quote this to prevent word splitting.
DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
SC2155 warning: Declare and assign separately to avoid masking return values.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Ruslan Mstoi
8363eddd97
Dockerfile: fix hadolint error, do not install recommended packages
...
hadolint error:
DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
Add required packages ca-certificates unzip iproute2 dbus
Without these packages build or integration tests fail if
--no-install-recommends is specified. Previously these packages were
installed as part of recommended dependency packages.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Ruslan Mstoi
70aa5bc231
Dockerfile: remove unneeded files to free space
...
Remove temporary, unneeded files in the docker image to save
about 2.0M of space.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Ruslan Mstoi
b8ce1816e9
Dockerfile: convert DEBIAN_FRONTEND to environment variable
...
Setting environment variable
DEBIAN_FRONTEND=noninteractive
Makes unnecessary setting it in all apt-get install commands
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Ruslan Mstoi
43eed4861f
Dockerfile: untabify
...
Some parts of Dockerfile are indented with spaces others with tabs.
Unify indentation to use spaces.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 12:39:18 -07:00
Bo Chen
268c4ea214
tests: disable test_vfio test
...
Details: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/5190#issuecomment-1599357074
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-20 12:14:03 -07:00
Ruslan Mstoi
29a0ddc58e
tests: Revert disable test_vfio test
...
This reverts commit 51c1738d55 .
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 16:39:21 +01:00
Ruslan Mstoi
4079e4f1ad
tests: Fix test_vfio test
...
Test was failing due to regression caused by commit
d5558aea2a
Failing command:
sudo /mnt/ch-remote --api-socket /tmp/ch_api.sock resize --memory=1073741824"
Fixes #5190
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-20 16:39:21 +01:00
Alyssa Ross
fba0b5f93c
vmm: ignore and warn TAP FDs send in vm.create
...
This does the same thing as df2a7c17 ("vmm: Ignore and warn TAP FDs
sent via the HTTP request body"), but for the vm.create endpoint,
which also previously would accept file descriptors in the body, and
try to use whatever fd occupied that number as a TAP device.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-06-20 15:45:43 +01:00
Alyssa Ross
05cc5f596c
vmm: ignore and warn TAP FDs sent via the D-Bus request body
...
Port of df2a7c17 ("vmm: Ignore and warn TAP FDs sent via the HTTP
request body"), but for the vm.create endpoint, which would previously
accept file descriptors in the body, and try to use whatever fd
occupied that number as a TAP device.
Since I had to move the wrapping of the net config in an Arc until
after it was modified, I made the same change to all other endpoints,
so the style stays consistent.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-06-20 15:45:43 +01:00
zhongbingnan
c1b33329db
aarch64/fdt: Forward host cache layout to guest
...
Using the data from sysfs forward the host host cache layout to the
guest using the FDT tables.
TEST=The host cache layout (from sysfs) can be seen in inside the guest
using lscpu.
Signed-off-by: zhongbingnan <zhongbingnan@bytedance.com >
2023-06-20 15:45:15 +01:00
dependabot[bot]
402a24a688
build: Bump iced-x86 from 1.18.0 to 1.19.0
...
Bumps [iced-x86](https://github.com/icedland/iced ) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/icedland/iced/releases )
- [Commits](https://github.com/icedland/iced/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: iced-x86
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-20 09:13:24 +00:00
Alyssa Ross
0809e7f675
vmm: allow restart_syscall() in PTY process
...
This can be triggered by debugging cloud-hypervisor using gdb, or
probably if the process is suspended and restarted.
Fixes: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/5489
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-06-19 14:26:08 +01:00
Jianyong Wu
a718716831
vfio: fix vfio device fail to initialize issue for 64k page size
...
Currently, vfio device fails to initialize as the msix-cap region in BAR
is mapped as RW region.
To resolve the initialization issue, this commit avoids mapping the
msix-cap region in the BAR. However, this solution introduces another
problem where aligning the msix table offset in the BAR to the page
size may cause overlap with the MMIO RW region, leading to reduced
performance. By enlarging the entire region in the BAR and relocating
the msix table to achieve page size alignment, this problem can be
overcomed effectively.
Fixes : #5292
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-06-19 10:29:23 +08:00
Jianyong Wu
5a9dd7489c
vm-allocator: Add page size related functions
...
To avoid code duplication extract page related functions to their
own module and add utility functions for manipulating addresses
related to page sizes
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-06-19 10:29:23 +08:00
Anatol Belski
dec8d619d4
Revert "build: Temporarily disable Windows guest tests"
...
This reverts commit 83d57d3cce .
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-06-18 09:19:38 +01:00
dependabot[bot]
c39cdb3c1f
build: Bump rustix from 0.37.19 to 0.37.20
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.37.19 to 0.37.20.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.19...v0.37.20 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-17 00:43:48 +00:00
dependabot[bot]
26ae8b6d5c
build: Bump serde_json from 1.0.96 to 1.0.97 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.96 to 1.0.97.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.97 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-17 00:24:06 +00:00
Bo Chen
de31b3fadc
vmm: Clarify memory regions are required to be page-size aligned
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-16 14:15:03 -07:00
Bo Chen
b06ad85604
arch: Refactor the way of creating memory mapping
...
This patch clarifies the assumptions we have regarding the guest address
space layout while creating memory mapping in E820 on x86_64 and fdt on
aarch64. It also explicitly checks on these assumptions and report
errors if these assumptions do not hold.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-16 14:15:03 -07:00
Yu Li
8d89736c68
vmm: memory_manager: align down the rest space of ram_region
...
This commit renames `ram_region_sub_size` to `ram_region_available_size`
and make its value align down to the default page size or hugepage
size of the current memory zone, which can prevent the memory zone from
being split into misaligned parts. And if the available size of ram
region is zero, this region will be marked as consumed even it has
unused space.
Note that there is two methods to use hugepages.
1. Specify `hugepages` for `memory` or `memory-zone`, if the
`hugepage_size` is not specified, the value can be got by `statfs`
for `/dev/hugepages`.
2. Specify a `file` in hugetlbfs for `memory-zone`, the hugepage size
can also be got by `statfs` for the file.
The value for alignment will be the hugepage size if this memory zone
is using hugepages, otherwise the value will be default page size of
system.
Fixes : #5463
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-06-16 14:15:03 -07:00
Yu Li
55ee8eb482
arch: let arch_memory_regions return all available regions
...
The previous `arch_memory_regions` function will provide some memory
regions with the specified memory size and fill all the previous
regions before using the next one, but sometimes there may be no need
to fill up the previous one, e.g., the previous one should be aligned
with hugepage size.
This commit make `arch_memory_regions` function not take any
parameters and return the max available regions, the memory manager
can use them on demand.
Fixes : #5463
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-06-16 14:15:03 -07:00
Yu Li
1017157bb6
arch: create memory mapping by the actual memory info
...
The original codes did not consider that the previous memory region
might not be full and always set it to the maximum size.
This commit fixes this problem by creating memory mappings based on
the actual memory details in both E820 on x86_64 and fdt on aarch64.
Fixes : #5463
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-06-16 14:15:03 -07:00
Yu Li
499989fb17
logger: use write with \r\n instead of writeln
...
The device manager will set tty or pty to raw mode, all the `\n` will
be LF without CR, which makes the output difficult to read.
This commit solves it by using `write` with `\r\n` instead of
`writeln`, which can print CR and LF explicitly.
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-06-16 14:15:03 -07:00
Yu Li
ce0f30bb54
vmm: use unwrap_or instead of match for prefault
...
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-06-16 14:15:03 -07:00
Ravi kumar Veeramally
fce202a90c
virtio-devices: Remove repeated suffix from enum names
...
Remove "enum_variant_names" clippy. Enumeration variant names should
specify their variant, not repeat the enumeration name.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-16 14:13:47 -07:00
dependabot[bot]
95626ae564
build: Bump bitflags from 1.3.2 to 2.3.2
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 1.3.2 to 2.3.2.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.2 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-16 01:41:45 +00:00
dependabot[bot]
1e1012c31b
build: Bump uuid from 1.3.3 to 1.3.4 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.3...1.3.4 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-16 01:14:22 +00:00
Ruslan Mstoi
56207dc3a0
tests: fix issue running vfio tests with empty workloads directory
...
Download firmware and focal image to fix issue of running vfio tests
with empty worlkoads directory:
$ scripts/dev_cli.sh tests --integration-vfio
+ cp /root/workloads/focal-server-cloudimg-amd64-custom-20210609-0.raw /root/workloads/vfio
cp: cannot stat '/root/workloads/focal-server-cloudimg-amd64-custom-20210609-0.raw': No such file or directory
+ cp /root/workloads/hypervisor-fw /root/workloads/vfio
cp: cannot stat '/root/workloads/hypervisor-fw': No such file or directory
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-15 15:54:43 -07:00
Jianyong Wu
57fdaa3a39
arch: x86_64: Populate the APIC Id
...
Program the APIC ID (CPUID leaf 0x1 EBX) with the CPU id. This resolves
an issue where the EDKII firmware expects the APIC ID to vary per-CPU.
Fixes : #5475
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-06-15 13:50:38 -07:00
dependabot[bot]
19c5c0af9f
build: Bump uuid from 1.3.3 to 1.3.4
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.3...1.3.4 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-15 00:43:16 +00:00
dependabot[bot]
e26e7b4d72
build: Bump serde from 1.0.163 to 1.0.164 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-15 00:14:27 +00:00
Ravi kumar Veeramally
e8d6c9ecb0
test_data: Simplify default configuration for local testing
...
Script `create-cloud-init.sh" uses the same cloud init data as the the CI
but this means it is somewhat overloaded with unhelpful network configuration
entries and scripts that are only needed for the CI.
For local testing data kept in test_data/cloud-init/ubuntu/local folder.
This contains minimum configuration data for user to test it locally.
Script assigns default IP address using "network-config" details
with --net "tap=" option. The default network interface will be "ens4".
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-14 10:23:52 -07:00
Ravi kumar Veeramally
0712027eb1
ci: Move CI related test data to separate folder
...
Script `create-cloud-init.sh" uses the same cloud init data as the the CI
but this means it is somewhat overloaded with unhelpful network configuration
entries and scripts that are only needed for the CI.
CI related data moved to test_data/cloud-init/ubuntu/ci folder.
Fixes : #4773
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-14 10:23:52 -07:00
dependabot[bot]
7ea5d7a416
build: Bump crossbeam-utils from 0.8.15 to 0.8.16
...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) from 0.8.15 to 0.8.16.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.15...crossbeam-utils-0.8.16 )
---
updated-dependencies:
- dependency-name: crossbeam-utils
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 00:44:53 +00:00
dependabot[bot]
7023d4ff84
build: Bump log from 0.4.18 to 0.4.19 in /fuzz
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.18 to 0.4.19.
- [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.18...0.4.19 )
---
updated-dependencies:
- dependency-name: log
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 00:19:49 +00:00
dependabot[bot]
5f31ad319e
build: Bump lock_api from 0.4.9 to 0.4.10
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.9 to 0.4.10.
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.9...lock_api-0.4.10 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 18:30:33 +00:00
dependabot[bot]
5083549afe
build: Bump getrandom from 0.2.9 to 0.2.10 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.9 to 0.2.10.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.9...v0.2.10 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 18:27:56 +00:00
Alyssa Ross
beed5e5d6d
vmm, virtio-devices: allow mremap for consoles
...
SerialBuffer uses VecDeque::extend, which calls realloc, which a
maximum buffer size of 1 MiB. Starting at allocation sizes of
128 KiB, musl's mallocng allocator will use mremap for the allocation.
Since this was not permitted by the seccomp rules, heavy write load
could crash cloud-hypervisor with a seccomp failure. (Encountered
using virtio-console, but I don't see any reason it wouldn't happen
for the legacy serial device too.)
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-06-13 11:23:15 -07:00
dependabot[bot]
7feb25daf0
build: Bump mshv-ioctls from dcd4612 to 04f5adb
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `dcd4612` to `04f5adb`.
- [Commits](dcd4612656...04f5adbf64 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 16:51:48 +00:00
dependabot[bot]
f2574897cd
build: Bump proc-macro2 from 1.0.59 to 1.0.60 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.59 to 1.0.60.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.59...1.0.60 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-10 00:17:39 +00:00
dependabot[bot]
2698924c0d
build: Bump aho-corasick from 1.0.1 to 1.0.2
...
Bumps [aho-corasick](https://github.com/BurntSushi/aho-corasick ) from 1.0.1 to 1.0.2.
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/1.0.1...1.0.2 )
---
updated-dependencies:
- dependency-name: aho-corasick
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-09 00:45:14 +00:00
dependabot[bot]
6bd4927d11
build: Bump libc from 0.2.145 to 0.2.146 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.145 to 0.2.146.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.145...0.2.146 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-09 00:14:36 +00:00
Rob Bradford
f485922b78
build: Bump acpi_tables from cb5f06c to 05a6091
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-06-08 17:28:02 +00:00
Bo Chen
1faaa2cd0a
tests: Enable "dbus_api" feature build only for dbus_api tests
...
In this way, our integration tests exercise the same set of build
features (e.g. "kvm,mshv") being used for releases.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-08 13:18:08 +01:00
Bo Chen
6c630f4908
build: Use upstream vhost for vDPA regression fix
...
The latest vhost release v0.7.0 has a vDPA regression [1]. It has been
fixed in the vhost upstream [2], but no new releases are available [3].
To unblock the bulk upgrades on rust-vmm depdencies, let's use the
upstream vhost for now.
[1] https://github.com/rust-vmm/vhost/issues/164
[2] https://github.com/rust-vmm/vhost/pull/165
[3] https://github.com/rust-vmm/vhost/issues/166
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-08 13:15:25 +01:00
Bo Chen
3b39c41a01
build: Bulk update rust-vmm dependencies
...
Bump to the latest rust-vmm crates, including vm-memory, vfio,
vfio-bindings, vfio-user, virtio-bindings, virtio-queue, linux-loader,
vhost, and vhost-user-backend,
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-06-08 13:15:25 +01:00
dependabot[bot]
309e346c4c
build: Bump once_cell from 1.17.2 to 1.18.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.2 to 1.18.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.2...v1.18.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-08 00:14:51 +00:00
dependabot[bot]
3f6833b315
build: Bump iced-x86 from 1.18.0 to 1.19.0 in /fuzz
...
Bumps [iced-x86](https://github.com/icedland/iced ) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/icedland/iced/releases )
- [Commits](https://github.com/icedland/iced/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: iced-x86
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-07 00:23:37 +00:00
dependabot[bot]
a862c804ba
build: Bump openssl-src from 111.25.0+1.1.1t to 111.26.0+1.1.1u
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.25.0+1.1.1t to 111.26.0+1.1.1u.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-06 18:04:54 +00:00
Omer Faruk Bayram
83914d80a2
docs: api: document the D-Bus API
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
a7aecb5eee
tests: refactor test_api* to support the D-Bus API and add a new test
...
Implemented a `TargetApi` enum to make the process of implementing
tests for the D-Bus and HTTP API more convenient.
Refactored `test_api_{create_boot, shutdown, pause_resume, delete}` tests
with the `TargetApi` enum to also implement tests for the D-Bus API.
Added a new test named `test_api_dbus_and_http_interleaved` that uses
both the HTTP and D-Bus API at the same time.
Modified integration test scripts to enable the `dbus_api` feature when
compiling and start a dbus-session when integration tests are run.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
a64d27f841
ch-remote: full support for calling the D-Bus API
...
Support calling into the D-Bus API in a non-breaking way.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
7a458d85d1
main: cli: add D-Bus API related CLI options
...
Introduces three new CLI options, `dbus-service-name`,
`dbus-object-path` and `dbus-system-bus` to configure the DBus API.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
a92d852848
vmm: dbus: apply seccomp filter
...
This commit applies the previously created seccomp filter
to the `DbusApi` thread.
Also encloses the main loop of the `DBusApi` thread using
`std::panic::catch_unwind` and `AssertUnwindSafe` in order to mirror
the behavior of the HTTP API.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
0664647109
vmm: seccomp: add new seccomp filter for the DBusApi thread
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
f2c813e1cf
vmm: seccomp: rename Thread::Api to Thread::HttpApi
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
f00df25d40
vmm: dbus: graceful shutdown of the DBusApi thread
...
This commit adds support for graceful shutdown of the DBusApi thread
using `futures::channel::oneshot` channels. By using oneshot channels,
we ensure that the thread has enough time to send a response to the
`VmmShutdown` method call before it is terminated. Without this step,
the thread may be terminated before it can send a response, resulting
in an error message on the client side stating that the message
recipient disconnected from the message bus without providing a reply.
Also changes the default values for DBus service name, object path
and interface name.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
c016a0d4d3
vmm: dbus: implement the D-Bus API
...
This commit introduces three new dependencies: `zbus`, `futures`
and `blocking`. `blocking` is used to call the Internal API in zbus'
async context which is driven by `futures::executor`. They are all
behind the `dbus_api` feature flag.
The D-Bus API implementation is behind the same `dbus_api` feature
flag as well.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Omer Faruk Bayram
5c96fbb19b
vmm: move the http api into its own submodule
...
This commits moves the http API code into its own
submodule.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-06-06 10:18:26 -07:00
Rob Bradford
b955f09b80
build: Bump MSRV to 1.64
...
This is required for openssl-src crate as it now uses functionality
first released in this version.
See: https://github.com/alexcrichton/openssl-src-rs/pull/184
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-06-06 17:34:22 +01:00
dependabot[bot]
79ad6f8536
build: Bump libc from 0.2.144 to 0.2.145 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.144 to 0.2.145.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.144...0.2.145 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-06 00:27:33 +00:00
dependabot[bot]
be4f04a906
build: Bump proc-macro2 from 1.0.52 to 1.0.59
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.52 to 1.0.59.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.52...1.0.59 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-03 00:38:18 +00:00
Rafael Mendonca
f8415debe9
docs: Fix broken link to macvtap doc in custom-image.md
...
We get a "404 - page not found" when clicking on this link on github.
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com >
2023-06-02 14:57:24 -07:00
dependabot[bot]
9014a5e59c
build: Bump serde from 1.0.156 to 1.0.163
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.156 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.163 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-02 00:38:59 +00:00
Ravi kumar Veeramally
612621bb46
vmm: Improve "cloud-hypervisor --help" view format
...
Rust documentation comments follows 80 char per line. But some of
these help options doesn't have space in between. Longlines of
text is starting from beginning of the next line instead of
proper format.
Before fix:
Options:
--cpus boot=<boot_vcpus>,max=<max_vcpus>,topology=<threads_per_core>:<cores_per_die>:<dies_per_package>:<packages>,kvm_hyperv=on|off,max_phys_bits=<maximum_number_of_physical_bits>,affinity=<list_of_vcpus_with_their_associated_cpuset>,features=<list_of_features_to_enable>
After fix:
Options:
--cpus boot=<boot_vcpus>, max=<max_vcpus>,
topology=<threads_per_core>:<cores_per_die>:<dies_per_package>:<packages>,
kvm_hyperv=on|off,
max_phys_bits=<maximum_number_of_physical_bits>,
affinity=<list_of_vcpus_with_their_associated_cpuset>,
features=<list_of_features_to_enable>
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-06-01 13:46:57 +01:00
Ruslan Mstoi
18e1d2caf5
tests: fix sha1sum check warning
...
Remove empty line to fix warning:
"sha1sum: WARNING: 1 line is improperly formatted"
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-06-01 13:45:47 +01:00
dependabot[bot]
4be406a308
build: Bump pkg-config from 0.3.26 to 0.3.27
...
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs ) from 0.3.26 to 0.3.27.
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.26...0.3.27 )
---
updated-dependencies:
- dependency-name: pkg-config
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-01 02:35:49 +00:00
Anatol Belski
7bf2a2c382
vmm: arch: Make phys_bits functionality use CPU vendor API
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-05-31 23:54:33 +02:00
Anatol Belski
7df80220ec
hyperivsor: Add infrastructure to determine CPU vendor
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-05-31 23:54:33 +02:00
dependabot[bot]
84d2511de0
build: Bump regex from 1.7.1 to 1.8.3
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.7.1 to 1.8.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.7.1...1.8.3 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-31 00:39:15 +00:00
dependabot[bot]
374263ddac
build: Bump once_cell from 1.17.1 to 1.17.2 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.1 to 1.17.2.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.1...v1.17.2 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-31 00:15:58 +00:00
dependabot[bot]
7b76b6b61e
build: Bump acpi_tables from 98dcb03 to cb5f06c
...
Bumps [acpi_tables](https://github.com/rust-vmm/acpi_tables ) from `98dcb03` to `cb5f06c`.
- [Commits](98dcb0309d...cb5f06c747 )
---
updated-dependencies:
- dependency-name: acpi_tables
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-30 10:20:37 -07:00
Rob Bradford
e06f12673b
build: Bump to latest version of versionize_derive
...
This version includes a patch to correctly specify the version
dependencies.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-05-30 08:27:25 -07:00
Rob Bradford
89e658d9ff
misc: Update for beta clippy failures on x86-64
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-05-30 07:18:17 -07:00
dependabot[bot]
5ac68534b1
build: Bump log from 0.4.17 to 0.4.18 in /fuzz
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.17 to 0.4.18.
- [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.17...0.4.18 )
---
updated-dependencies:
- dependency-name: log
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-30 00:12:45 +00:00
dependabot[bot]
6acceaa87c
build: Bump quote from 1.0.27 to 1.0.28 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.27 to 1.0.28.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.27...1.0.28 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-27 00:20:10 +00:00
dependabot[bot]
a3898fd8e1
build: Bump mshv-ioctls from c1230f2 to dcd4612
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `c1230f2` to `dcd4612`.
- [Commits](c1230f282c...dcd4612656 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-05-26 05:00:14 +00:00
dependabot[bot]
7026622c24
build: Bump proc-macro2 from 1.0.58 to 1.0.59 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-26 00:16:06 +00:00
dependabot[bot]
41e5384f15
build: Bump unicode-ident from 1.0.8 to 1.0.9 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.8...1.0.9 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-25 00:17:02 +00:00
dependabot[bot]
681a30bd15
build: Bump thiserror from 1.0.39 to 1.0.40
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-24 00:39:08 +00:00
Rafael Mendonca
1976157761
main: Fix error propagation if starting the VM fails
...
Commit 21d40d7 ("main: reset tty if starting the VM fails") changed
start_vmm() to join the vmm thread if an error happens after the vmm
thread is started. The implementation put all the error-prone code that
is run after the vmm is started in a closure, to be able to always join
the vmm thread, regardless of any error happening. However, it missed
propagating the error that might happen inside the closure back to the
main function, after joining the vmm thread.
For some cmd line options, the above issue inhibits proper error
reporting when starting a VM with invalid commands, as many parameters
are parsed after the vmm is started, thus if such parsing fails, no
error will be reported back to the user.
See: #5435
Fixes: 21d40d7 ("main: reset tty if starting the VM fails")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com >
2023-05-23 09:45:08 -07:00
Bo Chen
0b1e626fe3
vmm: Allocate guest memory address space before TDX initialization
...
The refactoring on deferring address space allocation (#5169 ) broke TDX,
as TDX initialization needs to access guest memory for encryption and
measurement of guest pages.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-05-23 09:00:00 -07:00
dependabot[bot]
79bc42f3c2
build: Bump anyhow from 1.0.70 to 1.0.71
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.71 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-23 00:42:11 +00:00
Jianyong Wu
eca75dcfc9
vfio: align memory region size and address to PAGE_SIZE
...
In current implementation, memory region used in vfio is assumed to
align to 4k which may cause error when the PAGE_SIZE is not 4k, like on
Arm, it can be 16k and 64k.
Remove this assumption and align memory resource used by vfio to
PAGE_SIZE then vfio can run on host with 64k PAGE_SIZE.
Fixes : #5292
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-05-22 13:25:52 +01:00
dependabot[bot]
600d1664ee
build: Bump vfio_user from e75c941 to eef6bec
...
Bumps [vfio_user](https://github.com/rust-vmm/vfio-user ) from `e75c941` to `eef6bec`.
- [Commits](e75c9415d9...eef6bec4d4 )
---
updated-dependencies:
- dependency-name: vfio_user
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-20 00:36:54 +00:00
dependabot[bot]
e6208d1c0e
build: Bump uuid from 1.3.0 to 1.3.3
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.0 to 1.3.3.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.0...1.3.3 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 00:44:43 +00:00
dependabot[bot]
cf635c64d7
build: Bump proc-macro2 from 1.0.57 to 1.0.58 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.57...1.0.58 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 00:19:07 +00:00
Rob Bradford
42ca292dce
build: Release v32.0
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-05-18 10:09:15 -07:00
dependabot[bot]
b7338c96eb
build: Bump serde from 1.0.152 to 1.0.156
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.156.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.156 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-18 13:54:52 +01:00
Rob Bradford
bf4af14e73
tests: Temporarily disable test_macvtap{_hotplug} on aarch64
...
See: #5443
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-05-18 13:54:35 +01:00
dependabot[bot]
24a3505f0b
build: Bump proc-macro2 from 1.0.56 to 1.0.57 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.56 to 1.0.57.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.56...1.0.57 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-17 00:17:34 +00:00
dependabot[bot]
20f3691474
build: Bump uuid from 1.3.2 to 1.3.3 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.2...1.3.3 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-16 00:19:41 +00:00
Hao Xu
c56a3ce59a
vmm: reduce memory copy when BFT device tree
...
The current implementation of breadth first traversal for device tree
uses a temporary vector, therefore causes unnecessary memory copy.
Remove it and do it within vector nodes.
Signed-off-by: Hao Xu <howeyxu@tencent.com >
2023-05-15 17:19:48 +01:00
dependabot[bot]
18f7a37b48
build: Bump serde from 1.0.162 to 1.0.163 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.162 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-12 00:13:33 +00:00
dependabot[bot]
98496434b9
build: Bump quote from 1.0.26 to 1.0.27 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.26 to 1.0.27.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.26...1.0.27 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-10 00:12:21 +00:00
dependabot[bot]
0b2994a6e3
build: Bump libc from 0.2.142 to 0.2.144 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.142 to 0.2.144.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.142...0.2.144 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-09 00:13:07 +00:00
Anatol Belski
553e6857bd
tests: Enable topology integration tests under mshv
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-05-08 08:50:09 -07:00
Anatol Belski
083ce323c0
seccomp: Add filter entry for MSHV_VP_REGISTER_INTERCEPT_RESULT
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-05-08 08:50:09 -07:00
Anatol Belski
8fff4c1af3
mshv: Pass topology explicitly while constructing cpuid
...
Unlike KVM, there's no internal handling for topoolgy under MSHV. Thus,
if no topology has been passed during the CH launch, use the boot CPUs
count to construct the topology struct.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-05-08 08:50:09 -07:00
Anatol Belski
35ecfb6ec5
hypervisor: mshv: Implement set_cpuid2 call
...
Passing the CPUID leafs with the topology is integrated into the common
mechanism of setting and patching CPUID in Cloud Hypervisor. All the
CPUID values will be passed to the hypervisor through the register
intercept call.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-05-08 08:50:09 -07:00
dependabot[bot]
a61a013311
build: Bump serde from 1.0.160 to 1.0.162 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.160 to 1.0.162.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-06 00:12:52 +00:00
dependabot[bot]
b509fd94cd
build: Bump darling from 0.20.0 to 0.20.1 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.0...v0.20.1 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-05 00:14:55 +00:00
dependabot[bot]
631af8a4f7
build: Bump anyhow from 1.0.70 to 1.0.71 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.71 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-03 00:12:19 +00:00
Wei Liu
aa14fe214a
pci: bump the number of supported PCI segments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-05-02 09:34:05 +01:00
Wei Liu
45e3f49bba
vmm: use MAX_NUM_PCI_SEGMENTS in test cases
...
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-05-02 09:34:05 +01:00
Wei Liu
03db406645
tests: use a constant for maximum number of PCI segments
...
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-05-02 09:34:05 +01:00
Wei Liu
ba1e89139a
pci: aml: support up to 256 PCI segments
...
Originally the AML only accepted one hex number for PCI segment
numbering. Change it to accept two numbers. That makes it possible to
add up to 256 PCI segments.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-05-02 09:34:05 +01:00
Alyssa Ross
21d40d7489
main: reset tty if starting the VM fails
...
When I refactored this to centralise resetting the tty into
DeviceManager::drop, I tested that the tty was reset if an error
happened on the vmm thread, but not on the main thread. It turns out
that if an error happened on the main thread, the process would just
exit, so drop handlers on other threads wouldn't get run.
To fix this, I've changed start_vmm() to write to the VMM's exit
eventfd and then join the thread if an error happens after the vmm
thread is started.
Fixes: b6feae0a ("vmm: only touch the tty flags if it's being used")
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-05-02 09:33:53 +01:00
Alyssa Ross
c90a0ffff6
vmm: reset to the original termios
...
Previously, we used two different functions for configuring ttys.
vmm_sys_util::terminal::Terminal::set_raw_mode() was used to configure
stdio ttys, and cfmakeraw() was used to configure ptys created by
cloud-hypervisor. When I centralized the stdio tty cleanup, I also
switched to using cfmakeraw() everywhere, to avoid duplication.
cfmakeraw sets the OPOST flag, but when we later reset the ttys, we
used vmm_sys_util::terminal::Terminal::set_canon_mode(), which does
not unset this flag. This meant that the terminal was getting mostly,
but not fully, reset.
To fix this without depending on the implementation of cfmakeraw(),
let's just store the original termios for stdio terminals, and restore
them to exactly the state we found them in when cloud-hypervisor exits.
Fixes: b6feae0a ("vmm: only touch the tty flags if it's being used")
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-05-02 09:33:53 +01:00
dependabot[bot]
dc7931f592
build: Bump uuid from 1.3.1 to 1.3.2 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.1...1.3.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-02 00:15:30 +00:00
dependabot[bot]
841627f10a
build: Bump serde_with from 2.3.2 to 2.3.3 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.2...v2.3.3 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-28 00:14:31 +00:00
dependabot[bot]
97fdb65012
build: Bump anyhow from 1.0.69 to 1.0.70
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.69...1.0.70 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-27 00:39:57 +00:00
Rob Bradford
d17d70fae1
vmm: Update for new acpi_tables version
...
In particular the Std::write() API requires that the value implements
AsBytes and copies the slice representation into the table data. This
avoids unaligned writes which can cause a panic with the updated
toolchain.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-26 23:25:57 +01:00
Rob Bradford
71d1296d09
vmm: Implemented zerocopy::AsBytes for SDT structures
...
For structures that are used in SDT ACPI tables it is necessary for them
to implement this trait for the newly safe Std::write() API.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-26 23:25:57 +01:00
dependabot[bot]
0d58e51a3a
build: Bump rustc-demangle from 0.1.21 to 0.1.23
...
Bumps [rustc-demangle](https://github.com/alexcrichton/rustc-demangle ) from 0.1.21 to 0.1.23.
- [Release notes](https://github.com/alexcrichton/rustc-demangle/releases )
- [Commits](https://github.com/alexcrichton/rustc-demangle/compare/0.1.21...0.1.23 )
---
updated-dependencies:
- dependency-name: rustc-demangle
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-26 00:38:49 +00:00
dependabot[bot]
97012c511d
build: Bump serde_json from 1.0.95 to 1.0.96
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.95...v1.0.96 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-25 08:45:18 +00:00
dependabot[bot]
c10e2a79b1
build: Bump libc from 0.2.141 to 0.2.142 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.141 to 0.2.142.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.141...0.2.142 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-25 00:22:46 +00:00
Ruslan Mstoi
f3870ae638
scripts: indent bash if statement
...
This commit indents unindented if statements in scripts
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-04-24 13:21:36 +01:00
Alyssa Ross
3c0b389c82
vmm: allow getdents64 in seccomp filter
...
This is used on older kernels where close_range() is not available.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
Fixes: 505f4dfa ("vmm: close all unused fds in sigwinch listener")
2023-04-22 11:40:17 +01:00
dependabot[bot]
9881c94f84
build: Bump vfio_user from afbbd57 to e75c941
...
Bumps [vfio_user](https://github.com/rust-vmm/vfio-user ) from `afbbd57` to `e75c941`.
- [Release notes](https://github.com/rust-vmm/vfio-user/releases )
- [Commits](afbbd57228...e75c9415d9 )
---
updated-dependencies:
- dependency-name: vfio_user
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-22 10:14:39 +00:00
Rob Bradford
ceb8151747
hypervisor, vmm: Limit max number of vCPUs to hypervisor maximum
...
On KVM this is provided by an ioctl, on MSHV this is constant. Although
there is a HV_MAXIMUM_PROCESSORS constant the MSHV ioctl API is limited
to u8.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-22 10:35:39 +01:00
Rob Bradford
2554f2a8d4
qcow: use std::mem::size_of_val()
...
Rather than manually calculate the size of the slice in bytes. This
fixes a beta clippy issue.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-22 10:33:46 +01:00
Rob Bradford
036af673e6
virtio-devices: Avoid clashing names in imports
...
Don't import via glob to avoid (unused) objects colliding in the
namespace. This fixes a beta clippy issue.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-22 10:33:46 +01:00
Rob Bradford
990362e314
net_gen: Avoid clashing names in imports
...
Remove use of glob imports to fix an issue detected by clippy.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-22 10:33:46 +01:00
Rob Bradford
83d57d3cce
build: Temporarily disable Windows guest tests
...
Windows guests tests are failing consistently.
See: #5400
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-22 09:49:07 +01:00
Rob Bradford
a0babfb9c1
tests: Remove "initial apicid" check from test_simple_launch
...
This fixes the following tests that have been consistently failing on
the CI:
[2023-04-22T07:00:53.760Z] failures:
[2023-04-22T07:00:53.760Z] common_parallel::test_focal_hypervisor_fw
[2023-04-22T07:00:53.760Z] common_parallel::test_focal_ovmf
I'm not sure of the origin of this check but it obviously dependent on
the underlying platform as the guest OS has not changed. Since it
depends on the host environment it doesn't make sense to assert for it.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-04-22 09:16:27 +01:00
dependabot[bot]
3394a59466
build: Bump serde_with from 2.3.1 to 2.3.2
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.1...v2.3.2 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-20 00:37:26 +00:00
dependabot[bot]
f8e0376f6d
build: Bump linux-raw-sys from 0.3.1 to 0.3.2
...
Bumps [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/sunfishcode/linux-raw-sys/releases )
- [Commits](https://github.com/sunfishcode/linux-raw-sys/compare/v0.3.1...v0.3.2 )
---
updated-dependencies:
- dependency-name: linux-raw-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-19 01:14:24 +00:00
Rafael Mendonca
6379074264
misc: Remove unnecessary clippy directives
...
Clippy passes fine without these.
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com >
2023-04-18 10:48:31 -07:00
dependabot[bot]
5dbc72948f
build: Bump is-terminal from 0.4.5 to 0.4.7
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.5 to 0.4.7.
- [Release notes](https://github.com/sunfishcode/is-terminal/releases )
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.5...v0.4.7 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-18 05:22:06 +00:00
Bo Chen
04d111ee15
tests: Extend '_test_macvtap()' with reboot
...
In this way, we can cover the scenario where a VM with hotplugged net
device using FDs can work properly with reboot.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
a9623c7a28
vmm: Add valid FDs for TAP devices to 'VmConfig::preserved_fds'
...
In this way, valid FDs for TAP devices will be closed when the holding
VmConfig instance is destroyed.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
4baf85857a
vmm: Add unit test for 'VmConfig::preserved_fds'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
e3d2917d5f
vmm: Implement Clone and Drop for VmConfig
...
The custom 'clone' duplicates 'preserved_fds' so that the validation
logic can be safely carried out on the clone of the VmConfig.
The custom 'drop' ensures 'preserved_fds' are safely closed when the
holding VmConfig instance is destroyed.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
a84b540b65
vmm: config: Extend 'VmConfig' with 'preserved_fds'
...
Preserved FDs are the ones that share the same life-time as its holding
VmConfig instance, such as FDs for creating TAP devices.
Preserved FDs will stay open as long as the holding VmConfig instance is
valid, and will be closed when the holding VmConfig instance is destroyed.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
8eb162e3d7
Revert "vmm: config: Implement Clone for NetConfig"
...
This reverts commit ea4a95c4f6 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
2804608a1c
Revert "vmm: config: Close FDs for TAP devices that are provided to VM"
...
This reverts commit b14427540b .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
e0125653b1
Revert "vmm: config: Don't close reserved FDs from NetConfig::drop()"
...
This reverts commit 0110fb4edc .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
e431a48201
Revert "vmm: config: Avoid closing invalid FDs from 'test_net_parsing()'"
...
This reverts commit 0567def931 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Bo Chen
c143cb3af0
Revert "vmm: config: Replace use of memfd_create with fd pointing to /dev/null"
...
This reverts commit 46066d6ae1 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-17 16:33:29 +01:00
Alyssa Ross
b6feae0ace
vmm: only touch the tty flags if it's being used
...
When neither serial nor console are connected to the tty,
cloud-hypervisor shouldn't touch the tty at all. One way in which
this is annoying is that if I am running cloud-hypervisor without it
using my terminal, I expect to be able to suspend it with ^Z like any
other process, but that doesn't work if it's put the terminal into raw
mode.
Instead of putting the tty into raw mode when a VM is created or
restored, do it when a serial or console device is created. Since we
now know it can't be put into raw mode until the Vm object is created,
we can move setting it back to canon mode into the drop handler for
that object, which should always be run in normal operation. We still
also put the tty into canon mode in the SIGTERM / SIGINT handler, but
check whether the tty was actually used, rather than whether stdin is
a tty. This requires passing on_tty around as an atomic boolean.
I explored more of an abstraction over the tty — having an object that
encapsulated stdout and put the tty into raw mode when initialized and
into canon mode when dropped — but it wasn't practical, mostly due to
the special requirements of the signal handler. I also investigated
whether the SIGWINCH listener process could be used here, which I
think would have worked but I'm hesitant to involve it in serial
handling as well as conosle handling.
There's no longer a check for whether the file descriptor is a tty
before setting it into canon mode — it's redundant, because if it's
not a tty it just won't respond to the ioctl.
Tested by shutting down through the API, SIGTERM, and an error
injected after setting raw mode.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-17 16:33:17 +01:00
Alyssa Ross
520aff2efc
vmm: don't redundantly set the TTY to canon mode
...
If the VM is shut down, either it's going to be started again, in
which case we still want to be in raw mode, or the process is about to
exit, in which case canon mode will be set at the end of main.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-17 16:33:17 +01:00
dependabot[bot]
41880919a0
build: Bump io-lifetimes from 1.0.4 to 1.0.10
...
Bumps [io-lifetimes](https://github.com/sunfishcode/io-lifetimes ) from 1.0.4 to 1.0.10.
- [Release notes](https://github.com/sunfishcode/io-lifetimes/releases )
- [Commits](https://github.com/sunfishcode/io-lifetimes/compare/1.0.4...v1.0.10 )
---
updated-dependencies:
- dependency-name: io-lifetimes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-15 00:37:15 +00:00
dependabot[bot]
865291d840
build: Bump rustix from 0.36.8 to 0.36.12
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.36.8 to 0.36.12.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.36.8...v0.36.12 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-14 21:34:46 +00:00
Omer Faruk Bayram
346ee09e6b
vmm: api: include BUILD_VERSION and CH pid in VmmPingResponse
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-04-14 12:13:46 -07:00
Omer Faruk Bayram
59012ccc6e
build: rename BUILT_VERSION to BUILD_VERSION
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-04-14 12:13:46 -07:00
Alyssa Ross
3f17f4657b
virtio-devices: remove incorrect "blk" references
...
This code is shared between all vhost-user devices, not just
vhost-user-blk.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-13 01:27:56 -07:00
Alyssa Ross
086ca9b935
virtio-devices: fix formatting of error message
...
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-12 18:55:18 -07:00
Alyssa Ross
9b724303ac
vmm: only use KVM_ARM_VCPU_PMU_V3 if available
...
Having PMU in guests isn't critical, and not all hardware supports
it (e.g. Apple Silicon).
CpuManager::init_pmu already has a fallback for if PMU is not
supported by the VCPU, but we weren't getting that far, because we
would always try to initialise the VCPU with KVM_ARM_VCPU_PMU_V3, and
then bail when it returned with EINVAL.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-13 09:02:55 +08:00
dependabot[bot]
948573db0d
build: Bump dirs from 4.0.0 to 5.0.0
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
---
updated-dependencies:
- dependency-name: dirs
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-13 00:37:35 +00:00
dependabot[bot]
0352846af2
build: Bump serde_json from 1.0.95 to 1.0.96 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.95...v1.0.96 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-13 00:18:59 +00:00
Alyssa Ross
8b3f0043b0
virtio-devices: seccomp: add vhost-user syscalls
...
Cloud Hypervisor's vhost-user implementation will reconnect if it gets
disconnected from the backend. That means connections happen inside
the vhost-user seccomp sandbox, so all syscalls used in reconnecting
have to be allowed in that sandbox.
clock_nanosleep is used by Glibc, and nanosleep is used by musl.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-12 09:27:07 -07:00
dependabot[bot]
9d532acab6
build: Bump serde from 1.0.159 to 1.0.160 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.159 to 1.0.160.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-12 00:11:33 +00:00
Bo Chen
df2a7c1764
vmm: Ignore and warn TAP FDs sent via the HTTP request body
...
Valid FDs can only be sent from another process via `SCM_RIGHTS`.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-11 09:34:14 -07:00
dependabot[bot]
3f5dac988f
build: Bump uuid from 1.3.0 to 1.3.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.0...1.3.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-11 00:15:36 +00:00
Muminul Islam
3096f1d42f
hypervisor: Fix few register names on MSHV
...
Recently generated mshv-bindings has most of the registers
renamed. This patch renames some of the MSHV registers.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-04-10 14:28:41 -07:00
Muminul Islam
42a4e593ce
build: update to latest mshv-{bindings, ioctls)
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-04-10 14:28:41 -07:00
smit-gardhariya
b56da6ee24
Export RUST_BACKTRACE when it is not set explicitly
...
Currently we are overwriting the RUST_BACKTRACE if set
explicitly by user while running performance metrics tests
using dev_cli.sh
This change will allow user to set the RUST_BACKTRACE
while running performance metrics tests with dev_cli.sh
which invokes run_metrics.sh to run the performance binary.
We will set RUST_BACKTRACE to 1 if not set explicitly.
Signed-off-by: smit-gardhariya <gardhariya.smit@gmail.com >
2023-04-10 14:08:21 -07:00
dependabot[bot]
90dcbc3232
build: Bump getrandom from 0.2.8 to 0.2.9 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.8...v0.2.9 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-07 00:14:24 +00:00
Michael Zhao
f3522e85fc
build: Release v31.0
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2023-04-06 07:05:11 -07:00
dependabot[bot]
d3ac6a85e0
build: Bump serde_with from 2.3.1 to 2.3.2 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.1...v2.3.2 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 00:11:31 +00:00
Alyssa Ross
38a1b45783
vmm: use the SIGWINCH listener for TTYs too
...
Previously, we were only using it for PTYs, because for PTYs there's
no alternative. But since we have to have it for PTYs anyway, if we
also use it for TTYs, we can eliminate all of the code that handled
SIGWINCH for TTYs.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:23:06 +01:00
Alyssa Ross
e9841db486
vmm: don't ignore errors from SIGWINCH listener
...
Now that the SIGWINCH listener has fallbacks for older kernels, we
don't expect it to routinely fail, so if there's an error setting it
up, we want to know about it.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:23:06 +01:00
Alyssa Ross
c1f555cde3
vmm: fall back if CLONE_CLEAR_SIGHAND unsupported
...
This will allow the SIGWINCH listener to run on kernels older than
5.5, although on those kernels it will have to make 64 syscalls to
reset all the signal handlers.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:23:06 +01:00
Alyssa Ross
505f4dfa53
vmm: close all unused fds in sigwinch listener
...
The PTY main file descriptor had to be introduced as a parameter to
start_sigwinch_listener, so that it could be closed in the child.
Really the SIGWINCH listener process should not have any file
descriptors open, except for the ones it needs to function, so let's
make it more robust by having it close all other file descriptors.
For recent kernels, we can do this very conveniently with
close_range(2), but for older kernels, we have to fall back to closing
open file descriptors one at a time.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:23:06 +01:00
Alyssa Ross
67ad3ff1ba
scripts: run doc tests
...
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:22:47 +01:00
Alyssa Ross
755cabea4c
hypervisor: use proper doc tests for examples
...
It seems like these examples were always intended to be doctests,
since there are lines marked with "#" so that they are excluded from
the generated documentation, but they were not recognised as doc tests
because they were not formatted correctly.
The code needed some adjustments so that it would actually compile and
run as doctests.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:22:47 +01:00
Alyssa Ross
1ed4898d28
hypervisor: fix building doctests
...
When doctests are built, the crate is built with itself as a
dependency via --extern. This causes a compiler error if using a
module with the name same as the crate, because it's ambiguous whether
it's referring to the module, or the extern version of the crate, so
it's necessary to disambiguate when using the hypervisor module here.
Fixes running cargo test --doc --workspace.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-05 11:22:47 +01:00
Alyssa Ross
a807b91f86
virtio-devices: fix accidental HTML in doc comments
...
Doc comments are Markdown, and can include HTML tags. Anything in
angle brackets will therefore be inserted as an HTML tag into
rustdoc's output. If that's not intentional, the left angle bracket
needs to be escaped.
I haven't fixed the doc comments in src/main.rs, because argh doesn't
understand the escaping, so the backslashes would show up in the
--help output. I've opened https://github.com/google/argh/issues/159
about that.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-04 17:38:21 -07:00
Alyssa Ross
f6236087d8
virtio-devices: fix broken vsock doc comments
...
These need to be //! comments, because they apply to the module as a
whole, not to whatever directly follows the comment. Using ///
comments here resulted in documentation being attached to the wrong
thing, or not rendered at all.
I've also checked the Markdown formatting of these comments as
rendered by rustdoc, and fixed it where appropriate.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-04 17:38:21 -07:00
Alyssa Ross
95f83320b1
arch: use a non-doc comment for diagram
...
This doesn't need to be rendered in the HTML API documentation, and
wouldn't be formatted correctly if it was.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-04 17:38:21 -07:00
dependabot[bot]
dcc858a403
build: Bump libc from 0.2.139 to 0.2.141 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.139 to 0.2.141.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.139...0.2.141 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-05 00:27:44 +00:00
Alyssa Ross
57ea412c64
hypervisor: make buildable independently
...
It was not possible to build just hypervisor with Cargo's -p flag,
because it was not properly specifying the features it requires from
vfio-ioctls.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2023-04-04 09:57:19 -07:00
Muminul Islam
e32c9525c0
tests: disable virtio_balloon_free_page_reporting on mshv
...
balloon_free_page_reporting test case should not
work as expected. The reason is that MSHV pins
all the pages during the memory map for the guest.
Those pages can not be altered without unpinning the pages.
MSHV does not support modifying the pages during the guest
life cycle. This test case can be enabled once we add
VA backed VM support.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-04-04 07:41:04 -07:00
Bo Chen
2b4f60e57b
docs: Remove directory support from MemoryZoneConfig::file
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-04 06:49:18 -07:00
Bo Chen
5736205cf0
tests: Use native support of shared memory
...
This replaces the deprecated way of allocating anonymous shared memory
explicitly from '/dev/shm'.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-04-04 06:49:18 -07:00
Ravi kumar Veeramally
a8d1849485
vmm: Remove directory support from MemoryZoneConfig::file
...
Fixes : #5082
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-04-04 06:49:18 -07:00
dependabot[bot]
55937f63bc
build: Bump serde_json from 1.0.93 to 1.0.95
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.93 to 1.0.95.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.95 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-04 00:41:41 +00:00
dependabot[bot]
426d5d6dd0
build: Bump proc-macro2 from 1.0.54 to 1.0.56 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.54 to 1.0.56.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.54...1.0.56 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-04 00:12:40 +00:00
dependabot[bot]
3f3d07b3dc
build: Bump openssl-sys from 0.9.81 to 0.9.83
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.81 to 0.9.83.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.81...openssl-sys-v0.9.83 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 13:29:11 -07:00
dependabot[bot]
296cb909f4
build: Bump serde_json from 1.0.94 to 1.0.95 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.94 to 1.0.95.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.94...v1.0.95 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 00:26:03 +00:00
Omer Faruk Bayram
e7d52fc736
docs: api: document receive-migration and send-migration
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-03-31 10:02:34 -07:00
dependabot[bot]
a598b935f2
build: Bump regex-syntax from 0.6.28 to 0.6.29
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.28 to 0.6.29.
- [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 )
---
updated-dependencies:
- dependency-name: regex-syntax
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-31 00:41:13 +00:00
dependabot[bot]
1c0b6f1090
build: Bump remain from 0.2.7 to 0.2.8 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.7...0.2.8 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-31 00:15:56 +00:00
Omer Faruk Bayram
1b12790c13
ch-remote: fixed ShutdownVmm and Shutdown commands
...
Fixed `ShutdownVmm` and `Shutdown` commands to call the correct API
endpoint.
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-03-30 09:37:02 -07:00
dependabot[bot]
bd307dcab5
build: Bump anyhow from 1.0.69 to 1.0.70 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.69...1.0.70 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-30 00:16:07 +00:00
Daniel Farina
83d757d89a
Fix typo in README.md
...
Signed-off-by: Daniel Farina <daniel@fdr.io >
2023-03-29 09:08:26 +01:00
dependabot[bot]
1b8e7ac06c
build: Bump vm-fdt from 3709ca6 to ad21ede
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `3709ca6` to `ad21ede`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](3709ca6336...ad21ede0dd )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-29 00:41:17 +00:00
dependabot[bot]
389e4fe8be
build: Bump serde from 1.0.158 to 1.0.159 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.158 to 1.0.159.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-29 00:19:16 +00:00
Omer Faruk Bayram
06a9c3b839
scripts: dev_cli: mention the --local flag in the help string
...
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-03-28 12:37:35 +01:00
Omer Faruk Bayram
36cf46e381
docs: document that vmcoredump is conditionally compiled
...
Fixes #5311 .
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr >
2023-03-28 11:16:13 +01:00
dependabot[bot]
1efdea7466
build: Bump semver from 1.0.16 to 1.0.17
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.16...1.0.17 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-28 00:40:43 +00:00
dependabot[bot]
e662a2e12c
build: Bump proc-macro2 from 1.0.53 to 1.0.54 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.53 to 1.0.54.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.53...1.0.54 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-28 00:20:45 +00:00
Ravi kumar Veeramally
5496bd5dfb
tests: Replace use of "curl" with direct HTTP API calls
...
Fixes : #5128
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-03-27 10:02:22 -07:00
dependabot[bot]
e655de1e39
build: Bump windows-targets from 0.42.1 to 0.42.2
...
Bumps [windows-targets](https://github.com/microsoft/windows-rs ) from 0.42.1 to 0.42.2.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows-targets
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-25 00:41:54 +00:00
dependabot[bot]
a55a642b70
build: Bump proc-macro2 from 1.0.52 to 1.0.53 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.52 to 1.0.53.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.52...1.0.53 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-25 00:17:24 +00:00
dependabot[bot]
ded8959b9a
build: Bump versionize from 0.1.9 to 0.1.10
...
Bumps [versionize](https://github.com/firecracker-microvm/versionize ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/firecracker-microvm/versionize/releases )
- [Changelog](https://github.com/firecracker-microvm/versionize/blob/main/CHANGELOG.md )
- [Commits](https://github.com/firecracker-microvm/versionize/compare/v0.1.9...v0.1.10 )
---
updated-dependencies:
- dependency-name: versionize
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-24 23:46:46 +00:00
dependabot[bot]
53e49636ca
build: Bump versionize from 0.1.9 to 0.1.10 in /fuzz
...
Bumps [versionize](https://github.com/firecracker-microvm/versionize ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/firecracker-microvm/versionize/releases )
- [Changelog](https://github.com/firecracker-microvm/versionize/blob/main/CHANGELOG.md )
- [Commits](https://github.com/firecracker-microvm/versionize/compare/v0.1.9...v0.1.10 )
---
updated-dependencies:
- dependency-name: versionize
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-24 22:55:42 +00:00
dependabot[bot]
0b0f3c69f0
build: Bump windows_x86_64_gnu from 0.42.1 to 0.42.2
...
Bumps [windows_x86_64_gnu](https://github.com/microsoft/windows-rs ) from 0.42.1 to 0.42.2.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_x86_64_gnu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-24 00:39:19 +00:00
dependabot[bot]
6650f553bd
build: Bump semver from 1.0.16 to 1.0.17 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.16...1.0.17 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-24 00:23:44 +00:00
dependabot[bot]
c5bca514b9
build: Bump serde from 1.0.156 to 1.0.158 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.156 to 1.0.158.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.158 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-23 19:38:30 +00:00
Bo Chen
c4106c0592
fuzz: Fix building error with 'versionize_derive'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-23 12:18:21 -07:00
dependabot[bot]
61f89e7dcc
build: Bump windows_i686_gnu from 0.42.1 to 0.42.2
...
Bumps [windows_i686_gnu](https://github.com/microsoft/windows-rs ) from 0.42.1 to 0.42.2.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_i686_gnu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-22 17:57:39 -07:00
dependabot[bot]
7a4be1534f
build: Bump serde_with from 2.2.0 to 2.3.1
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.2.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-22 00:39:59 +00:00
dependabot[bot]
cf0c4e07b6
build: Bump thiserror from 1.0.39 to 1.0.40 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-22 00:13:14 +00:00
dependabot[bot]
36ec53c4a0
build: Bump is-terminal from 0.4.4 to 0.4.5
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/sunfishcode/is-terminal/releases )
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.4...v0.4.5 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-21 00:39:09 +00:00
dependabot[bot]
c7997ea4e5
build: Bump serde_json from 1.0.93 to 1.0.94 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.94 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-21 00:21:19 +00:00
dependabot[bot]
b2d3aba19c
build: Bump proc-macro2 from 1.0.51 to 1.0.52
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.51...1.0.52 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-18 01:00:38 +00:00
dependabot[bot]
9cd97bb64e
build: Bump remain from 0.2.6 to 0.2.7 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.6...0.2.7 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-18 00:15:31 +00:00
dependabot[bot]
868fdf9dfe
build: Bump paste from 1.0.11 to 1.0.12
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-17 17:22:53 +00:00
dependabot[bot]
12729eb034
build: Bump darling from 0.14.3 to 0.14.4 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.3...v0.14.4 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-17 17:18:14 +00:00
Rob Bradford
a062401be6
scripts: dev_cli: Bump container version
...
Unfortunately the build had a transient error and so needed to be
restarted which generated a build with a different date tag.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-03-16 08:36:25 +00:00
dependabot[bot]
09cc139b53
build: Bump openssl-sys from 0.9.80 to 0.9.81
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.80 to 0.9.81.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.80...openssl-sys-v0.9.81 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-16 00:46:10 +00:00
dependabot[bot]
4635ebd4b2
build: Bump arbitrary from 1.2.3 to 1.3.0 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.2.3 to 1.3.0.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.2.3...v1.3.0 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-16 00:23:59 +00:00
Rob Bradford
ca96ff601b
build: Migrate from DockerHub to ghcr
...
It is necessary to transition away from DockerHub as the small
organisation plan in being EOLed.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-03-15 22:41:23 +00:00
Bo Chen
feb523ef78
README: Fix typo and trailing white-space
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-15 10:13:27 -07:00
smit-gardhariya
7e47464a48
tests: performance-metrics: Add timeout parameter as runtime argument
...
This commit will add timeout parameter to performance metrics
testcases as runtime argument. Testcases are facing the timeout
sometimes when we run with MSHV hypervisor. This change will
provide mechanism to pass the timeout as per the need while
running the testcases. If nothing is passed, default timeout or
timeout set as per the testcase will be followed.
Signed-off-by: smit-gardhariya <gardhariya.smit@gmail.com >
2023-03-14 22:05:55 -07:00
dependabot[bot]
4c4f79c831
build: Bump windows_x86_64_gnullvm from 0.42.1 to 0.42.2
...
Bumps [windows_x86_64_gnullvm](https://github.com/microsoft/windows-rs ) from 0.42.1 to 0.42.2.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_x86_64_gnullvm
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-15 00:39:47 +00:00
dependabot[bot]
0fd701ac75
build: Bump serde from 1.0.154 to 1.0.156 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.154 to 1.0.156.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.156 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-15 00:20:16 +00:00
dependabot[bot]
64924d5c2b
build: Bump signal-hook from 0.3.14 to 0.3.15
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.14...v0.3.15 )
---
updated-dependencies:
- dependency-name: signal-hook
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-14 00:40:33 +00:00
dependabot[bot]
9c11927305
build: Bump proc-macro2 from 1.0.51 to 1.0.52 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.51...1.0.52 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-14 00:21:55 +00:00
Yang
b13d0e53c5
README: Add slack channel for community activity
...
Signed-off-by: Yang <ailin.yang@intel.com >
2023-03-13 12:27:32 -07:00
Ruslan Mstoi
6001240ca1
tests: Fix typo vitio-blk to virtio-blk
...
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-03-13 11:59:39 -07:00
dependabot[bot]
9534604ef3
build: Bump thiserror-impl from 1.0.38 to 1.0.39 in /fuzz
...
Bumps [thiserror-impl](https://github.com/dtolnay/thiserror ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.38...1.0.39 )
---
updated-dependencies:
- dependency-name: thiserror-impl
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-11 10:03:06 +00:00
Bo Chen
c152f9f6bc
mics: Update reference kernel to 6.2
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-11 09:55:34 +00:00
Bo Chen
325e62372d
scripts: Ensure to rebuild custom kernel for bare-metal tests
...
Tests of rate-limiter and vfio are running on bare-metal, so we need to
ensure the custom kernel is updated and rebuilt for them.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-11 09:55:34 +00:00
Bo Chen
9421884334
scripts: Use 'build_custom_linux' if possible
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-11 09:55:34 +00:00
dependabot[bot]
fcd09946b7
build: Bump darling from 0.14.3 to 0.14.4
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.3...v0.14.4 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-11 00:40:18 +00:00
dependabot[bot]
a20e481abe
build: Bump thiserror from 1.0.38 to 1.0.39
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.38...1.0.39 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-10 00:39:45 +00:00
dependabot[bot]
6e4374c392
build: Bump ryu from 1.0.12 to 1.0.13 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.12...1.0.13 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-10 00:18:00 +00:00
Ravi kumar Veeramally
44452cbe22
doc: Fix broken link for micro_http website
...
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-03-09 09:58:46 -08:00
dependabot[bot]
7b2ebd2fa5
build: Bump itoa from 1.0.5 to 1.0.6
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.5...1.0.6 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-09 00:39:36 +00:00
dependabot[bot]
8a0f6014ce
build: Bump serde from 1.0.153 to 1.0.154 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.153 to 1.0.154.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-09 00:15:46 +00:00
Bo Chen
d78da5d252
tests: Enable live-upgrade tests based on v30.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-08 13:02:38 +00:00
Dom
b35a94d83c
tests: integration: Use hugepage size to calculate the number of pages
...
The tests require a fixed amount of huge page memory to run, rather than
encode that as fixed number of huge pages it should be calculated from
the size of memory required and the huge page size
Signed-off-by: Dom <peng6662001@163.com >
2023-03-08 10:18:28 +00:00
dependabot[bot]
961319d8ad
build: Bump vfio-ioctls from 43439e0 to ea8f710
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `43439e0` to `ea8f710`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](43439e056d...ea8f710464 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-08 02:11:45 +00:00
dependabot[bot]
b97f929706
build: Bump serde from 1.0.152 to 1.0.153 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.153.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-08 01:32:23 +00:00
Bo Chen
b71564f284
vmm: Remove unnecessary parentheses (beta 1.69 clippy check)
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-07 17:02:35 -08:00
dependabot[bot]
f2be30f699
build: Bump mshv-bindings from 0b2af25 to 66531ba
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `0b2af25` to `66531ba`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](0b2af25128...66531ba242 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-07 00:38:07 +00:00
dependabot[bot]
b14216e854
build: Bump unicode-ident from 1.0.6 to 1.0.8 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.6 to 1.0.8.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.6...1.0.8 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-07 00:22:05 +00:00
dependabot[bot]
3498e67bda
build: Bump ryu from 1.0.12 to 1.0.13
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.12...1.0.13 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-04 00:37:43 +00:00
dependabot[bot]
24d163b244
build: Bump itoa from 1.0.5 to 1.0.6 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.5...1.0.6 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-04 00:24:21 +00:00
dependabot[bot]
90697d4ae0
build: Bump io-uring from 0.5.12 to 0.5.13
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.12 to 0.5.13.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-03 18:04:21 +00:00
Rob Bradford
73c4156775
vmm, devices: Update to latest acpi_tables crate API
...
Significant API changes have occured, most significantly is the switch
to an approach which does not require vm-memory and can run no_std.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2023-03-03 13:08:36 +00:00
dependabot[bot]
02f774824b
build: Bump gdbstub from 0.6.3 to 0.6.4
...
Bumps [gdbstub](https://github.com/daniel5151/gdbstub ) from 0.6.3 to 0.6.4.
- [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.6.3...0.6.4 )
---
updated-dependencies:
- dependency-name: gdbstub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-02 00:39:01 +00:00
Hao Xu
74cd3d0dc2
virtio-devices: Reset offset properly upon unmap for virtio-fs.
...
We should reset the offset to 0, when asked to remove the whole dax
mapping.
Signed-off-by: Hao Xu <howeyxu@tencent.com >
2023-03-01 09:45:26 -08:00
Bo Chen
85962099c7
build: Update development container and release action to Rust 1.67
...
This latest stable Rust toolchain can help reduce the final binary size
around ~300k when comparing with building with Rust 1.62. Specifically,
the binary size now is 3.3M (previously 3.6M) with default feature, and
4.0M (previously 4.2M) with "kvm+mshv" feature (e.g. our release action
build) .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-03-01 15:16:23 +00:00
dependabot[bot]
04ee1efa70
build: Bump virtio-queue from 0.7.0 to 0.7.1
...
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases )
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.7.0...virtio-queue-v0.7.1 )
---
updated-dependencies:
- dependency-name: virtio-queue
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-01 00:37:27 +00:00
dependabot[bot]
5258a870e0
build: Bump jobserver from 0.1.25 to 0.1.26 in /fuzz
...
Bumps [jobserver](https://github.com/alexcrichton/jobserver-rs ) from 0.1.25 to 0.1.26.
- [Release notes](https://github.com/alexcrichton/jobserver-rs/releases )
- [Commits](https://github.com/alexcrichton/jobserver-rs/compare/0.1.25...0.1.26 )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-01 00:14:52 +00:00
Yong He
76d6d28f3e
vmm: do not start signal thread to resize console if no need
...
Now cloud hypervisor will start signal thread to catch
SIGWINCH signal, cloud hypervisor then will resize the
guest console via vconsole.
This patch skip starting signal thread when there is no
need to resize guest console, such as console is not
configured.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-02-28 09:40:07 -08:00
dependabot[bot]
5132e3b907
build: Bump is-terminal from 0.4.3 to 0.4.4
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/sunfishcode/is-terminal/releases )
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.3...v0.4.4 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-28 00:40:40 +00:00
dependabot[bot]
599c5280ed
build: Bump vm-fdt from c5a99ab to 3709ca6
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `c5a99ab` to `3709ca6`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](c5a99ab71b...3709ca6336 )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-25 00:36:09 +00:00
dependabot[bot]
2f649bb6ad
build: Bump syn from 1.0.108 to 1.0.109 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.108 to 1.0.109.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.108...1.0.109 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-25 00:18:44 +00:00
Bo Chen
ece0e6fa92
build: Release v30.0
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-23 16:46:00 -08:00
Bo Chen
2593b67864
misc: Remove tailing whitespaces from release notes and cargo.toml
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-23 16:46:00 -08:00
dependabot[bot]
191e865261
build: Bump once_cell from 1.17.0 to 1.17.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.17.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-24 00:36:14 +00:00
dependabot[bot]
ca3a441c49
build: Bump syn from 1.0.107 to 1.0.108 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.107 to 1.0.108.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.107...1.0.108 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-24 00:16:53 +00:00
Wei Liu
de3ca97095
hypervisor: rename get_cpuid to get_supported_cpuid
...
To better reflect its nature and avoid confusion with get_cpuid2.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-02-23 13:03:12 +00:00
Yu Li
74dcb37ec3
vmm: config: fix incorrect values of error
...
The PR #2333 added I/O rate limiter on block device, with some options
in `DiskConfig`. And the PR #2401 added rate limiter on virtio-net
device with same options, but it still throws `Error::ParseDisk`.
This commit fixes it with correct values.
Fixes : #2401
Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com >
2023-02-23 09:57:48 +00:00
dependabot[bot]
1d55de9c74
build: Bump virtio-bindings from 0.1.0 to 0.2.0
...
Bumps [virtio-bindings](https://github.com/rust-vmm/vm-virtio ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases )
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.1.0...virtio-bindings-v0.2.0 )
---
updated-dependencies:
- dependency-name: virtio-bindings
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-23 00:59:32 +00:00
Ruslan Mstoi
2e94a86b31
scripts: dev_cli.sh: print help if command unspecified
...
To improve user friendliness, print help text when no command is given.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-02-22 11:29:54 -08:00
Rob Bradford
996bdc6e08
vfio_user: Use new Rust-VMM crate
...
This contains the same code as was included in tree.
Fixes : #5123
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-22 15:13:12 +00:00
dependabot[bot]
9d18012c52
build: Bump io-uring from 0.5.12 to 0.5.13 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.12 to 0.5.13.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-22 00:18:07 +00:00
dependabot[bot]
6a8bd8e8c5
build: Bump signal-hook-registry from 1.4.0 to 1.4.1
...
Bumps [signal-hook-registry](https://github.com/vorner/signal-hook ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/registry-v1.4.0...registry-v1.4.1 )
---
updated-dependencies:
- dependency-name: signal-hook-registry
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-21 00:37:30 +00:00
dependabot[bot]
d9184e5256
build: Bump virtio-queue from 0.7.0 to 0.7.1 in /fuzz
...
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases )
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.7.0...virtio-queue-v0.7.1 )
---
updated-dependencies:
- dependency-name: virtio-queue
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-21 00:21:31 +00:00
dependabot[bot]
5e475e70e6
build: Bump acpi_tables from 4fd38dd to 12bb6d7
...
Bumps [acpi_tables](https://github.com/rust-vmm/acpi_tables ) from `4fd38dd` to `12bb6d7`.
- [Release notes](https://github.com/rust-vmm/acpi_tables/releases )
- [Commits](4fd38dd5f7...12bb6d7b25 )
---
updated-dependencies:
- dependency-name: acpi_tables
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-18 00:37:26 +00:00
Ruslan Mstoi
bd1e1677bd
scripts: ch-trace-visualiser.py: remove unused import 'xml'
...
Unused import 'xml' is redefined at:
> xml = ET.ElementTree(element=svg)
Hence, remove unused xml import.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com >
2023-02-17 11:48:37 -08:00
dependabot[bot]
595c9d13a9
build: Bump proc-macro2 from 1.0.50 to 1.0.51
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.50...1.0.51 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-17 05:29:34 +00:00
dependabot[bot]
c2616f3f4f
build: Bump signal-hook from 0.3.14 to 0.3.15 in /fuzz
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.14...v0.3.15 )
---
updated-dependencies:
- dependency-name: signal-hook
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-17 00:14:37 +00:00
Rob Bradford
7ceb126184
github: Build examples as well as tests in quality workflow
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
879411e70f
build: Ensure pci crate uses vm-memory with required features
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
1181fd21fd
vfio_user: Make GPIO device more interesting
...
Every third read on the GPIO pin will return 1 and also trigger an
interrupt in the guest.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
c8967fcc37
vfio_user: Add command line parsing for socket option
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
19e893fa53
vfio_user: Reject SET_IRQS with VFIO_IRQ_SET_DATA_BOOL
...
This is unsupported.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
aa502b3e41
vfio_user: Add TODOs for missing functionality
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
10531f052b
vfio_user: Always generate an error for commands
...
Any error from the backend or from the protocol handling code will now
result in an error reply being sent. This is cleanly achieved by
splitting the command handling out into its own method and using the
Rust Result<> based error handling to trigger the generation of the
error reply.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
b072eb454e
vfio_user: Add a simple sample device
...
This implements a similar GPIO device to that found in the libvfio-user
source code.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
b7c2a0f23f
vfio_user: Add basic server side support
...
This allows the implementation of PCI devices in a different process
using the vfio-user protocol.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
874d524a13
vfio_user: Add flags for DMA_UNMAP command
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Rob Bradford
91e2601523
vfio_user: Improve flags for DMA_MAP command
...
Replace the use of an enum with a bitfield representation which means
that is now possible to logical OR flags together.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-16 09:59:14 -08:00
Yong He
01900e3c2b
vmm: properly set vcpu state when thread exited
...
Once error occur, vcpu thread may exit, this should
be critical event for the whole VM, we should fire
exit event and set vcpu state.
If we don't set vcpu state, the shutdown process
will hang at signal_thread, which is waiting the
vcpu state to change.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-02-16 14:40:04 +00:00
dependabot[bot]
e35ef40029
build: Bump fdt from 0.1.4 to 0.1.5
...
Bumps [fdt](https://github.com/repnop/fdt ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/repnop/fdt/releases )
- [Commits](https://github.com/repnop/fdt/commits )
---
updated-dependencies:
- dependency-name: fdt
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-16 00:36:48 +00:00
dependabot[bot]
aa0af5f8d7
build: Bump proc-macro2 from 1.0.50 to 1.0.51 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.50...1.0.51 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-16 00:14:39 +00:00
Rob Bradford
46066d6ae1
vmm: config: Replace use of memfd_create with fd pointing to /dev/null
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-15 11:10:00 -08:00
Rob Bradford
51c1738d55
tests: Disable test_vfio test
...
This test (which relies on nesting) is failing on the VFIO worker. The tests that use the
dedicated hardware pass fine.
See: #5190
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-15 12:30:34 +00:00
Bo Chen
0567def931
vmm: config: Avoid closing invalid FDs from 'test_net_parsing()'
...
We need to provide valid FDs while creating 'NetConfig' instances even
for unit tests. Closing invalid FDs would cause random unit test
failures.
Also, two identical 'NetConfig' instances are not allowed any more,
because it would lead to close the same FD twice. This is consistent
with the fact that a clone of a "NetConfig" instance is no
longer *equal* to the instance itself.
Fixes : #5203
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-15 12:30:09 +00:00
Bo Chen
0110fb4edc
vmm: config: Don't close reserved FDs from NetConfig::drop()
...
Fixes : #5203
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-15 12:30:09 +00:00
dependabot[bot]
4f945743cb
build: Bump is-terminal from 0.4.2 to 0.4.3
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/sunfishcode/is-terminal/releases )
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.2...v0.4.3 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-15 11:27:27 +00:00
dependabot[bot]
8f6afec520
build: Bump once_cell from 1.17.0 to 1.17.1 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.17.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-15 00:14:51 +00:00
Rob Bradford
b14427540b
vmm: config: Close FDs for TAP devices that are provided to VM
...
These are owned by the config (and are duplicated before being used to
create the `Tap` for the virtio-net device.)
By implementing Drop on NetConfig we have issues with moving out of
members that don't implement the Copy trait. This requires a small
adjustment to the unit tests that use the Default::default() function.
Fixes : #5197
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-14 12:37:50 +01:00
Rob Bradford
ea4a95c4f6
vmm: config: Implement Clone for NetConfig
...
The custom version duplicates any FDs that have been provided so that
the validation logic used on hotplug, which takes a clone of the config,
can be safely carried out.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-14 12:37:50 +01:00
dependabot[bot]
f5084f7c65
build: Bump uuid from 1.2.2 to 1.3.0
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.2...1.3.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-14 00:37:27 +00:00
dependabot[bot]
45ab9f77b7
build: Bump signal-hook-registry from 1.4.0 to 1.4.1 in /fuzz
...
Bumps [signal-hook-registry](https://github.com/vorner/signal-hook ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/registry-v1.4.0...registry-v1.4.1 )
---
updated-dependencies:
- dependency-name: signal-hook-registry
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-14 00:24:21 +00:00
dependabot[bot]
f0ea8eb70b
build: Bump serde_json from 1.0.91 to 1.0.93
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.91 to 1.0.93.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.91...v1.0.93 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-13 14:09:46 +01:00
Bo Chen
3377e0e983
docs: hotplug: Fix link to booting with uefi on aarch64
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-12 14:40:04 +08:00
dependabot[bot]
e9435b1327
build: Bump serde_json from 1.0.92 to 1.0.93 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.92...v1.0.93 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-11 00:17:12 +00:00
Rob Bradford
09fca4a5dd
build: Move to rust-vmm acpi_tables crate
...
This code is indentical to what is in this repository. When a release
gets made we can then switch to that.
Fixes : #5122
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-10 18:58:12 +01:00
Praveen K Paladugu
1143d54ee0
tpm: Add recv timeout while running recvmsg
...
If swtpm becomes unresponsive, guest gets blocked at "recvmsg" on tpm's
data FD. This change adds a timeout to the data fd socket. If swtpm
becomes unresponsive guest waits for "timeout" (secs) and continues to
run after returning an I/O error to tpm commands.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-02-10 17:49:03 +01:00
Anatol Belski
934b20a77a
ci: Switch to Windows Server 2022
...
The updated image is configured in a same way as the previously used
2019, it has same
- Credentials
- Services configured, like SAC, SSH, RDP
- Size
All the Windows updates are applied so the state is current to the date.
Also, the latest stable version 0.1.229 of the VirtIO Windows drivers
is installed.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2023-02-10 17:48:46 +01:00
Jinank Jain
b54ce6c3db
vmm: Defer address space allocation
...
We can ideally defer the address space allocation till we start the
vCPUs for the very first time. Because the VM will not access the memory
until the CPUs start running. Thus there is no need to allocate the
address space eagerly and wait till the time we are going to start the
vCPUs for the first time.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2023-02-10 11:52:20 +01:00
Kaihang Zhang
3dd01443d5
openapi: Make 'vcpu' and 'host_cpus' required in CpuAffinity
...
Signed-off-by: Kaihang Zhang <kaihang.zhang@smartx.com >
2023-02-10 10:06:43 +01:00
dependabot[bot]
43227cd5c4
build: Bump anyhow from 1.0.68 to 1.0.69
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.68 to 1.0.69.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.68...1.0.69 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-10 00:55:05 +00:00
dependabot[bot]
176e438d17
build: Bump anyhow from 1.0.68 to 1.0.69 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.68 to 1.0.69.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.68...1.0.69 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-10 00:13:38 +00:00
Rob Bradford
c22c4675b3
arch, hypervisor: Populate CPUID leaf 0x4000_0010 (TSC frequency)
...
This hypervisor leaf includes details of the TSC frequency if that is
available from KVM. This can be used to efficiently calculate time
passed when there is an invariant TSC.
TEST=Run `cpuid` in the guest and observe the frequency populated.
Fixes : #5178
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-09 18:32:21 +01:00
Rob Bradford
7ccf58a019
Revert "build: Temporarily disable bare metal x86-64 workers"
...
This reverts commit 496f932276 .
The systems are back online and reachable.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-09 16:30:07 +01:00
dependabot[bot]
48e1af7d3c
build: Bump fdt from 0.1.4 to 0.1.5 in /fuzz
...
Bumps [fdt](https://github.com/repnop/fdt ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/repnop/fdt/releases )
- [Commits](https://github.com/repnop/fdt/commits )
---
updated-dependencies:
- dependency-name: fdt
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-08 23:20:11 +00:00
dependabot[bot]
341a69c39c
build: Bump openssl-src from 111.24.0+1.1.1s to 111.25.0+1.1.1t
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.24.0+1.1.1s to 111.25.0+1.1.1t.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-08 23:09:51 +00:00
dependabot[bot]
5d34d85b92
build: Bump darling from 0.14.2 to 0.14.3
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.2 to 0.14.3.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.2...v0.14.3 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-07 23:40:55 +00:00
dependabot[bot]
bcd46906ec
build: Bump serde_json from 1.0.91 to 1.0.92 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.91...v1.0.92 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-07 23:17:44 +00:00
Bo Chen
bc59ca72f3
docs: Update the intel_tdx documentation
...
Updates include:
- Add references to 'TDX Tools'
- Expand instructions on buidling and using TDShim
- Add version information of guest/host kernel, TDVF, TDShim being tested
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-07 06:30:38 -08:00
dependabot[bot]
995945dd25
build: Bump rustix from 0.36.7 to 0.36.8
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.36.7 to 0.36.8.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.36.7...v0.36.8 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-06 23:42:06 +00:00
dependabot[bot]
8edd81ec82
build: Bump darling from 0.14.2 to 0.14.3 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.2 to 0.14.3.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.2...v0.14.3 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-06 23:21:38 +00:00
dependabot[bot]
726cfa41f4
build: Bump pnet and pnet_datalink from 0.31.0 to 0.33.0
...
Bumps [pnet](https://github.com/libpnet/libpnet ) from 0.31.0 to 0.33.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.31.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-06 19:26:36 +00:00
dependabot[bot]
d19a5d5356
build: Bump mshv-bindings from 48b389a to 0b2af25
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `48b389a` to `0b2af25`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](48b389af1f...0b2af25128 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-02 23:42:08 +00:00
Rob Bradford
69e8f60b91
tdx: Set the SEPT_VE_DISABLE attribute
...
This is required for booting Linux:
From: https://lore.kernel.org/all/20221028141220.29217-3-kirill.shutemov@linux.intel.com/
"""
Virtualization Exceptions (#VE) are delivered to TDX guests due to
specific guest actions such as using specific instructions or accessing
a specific MSR.
Notable reason for #VE is access to specific guest physical addresses.
It requires special security considerations as it is not fully in
control of the guest kernel. VMM can remove a page from EPT page table
and trigger #VE on access.
The primary use-case for #VE on a memory access is MMIO: VMM removes
page from EPT to trigger exception in the guest which allows guest to
emulate MMIO with hypercalls.
MMIO only happens on shared memory. All conventional kernel memory is
private. This includes everything from kernel stacks to kernel text.
Handling exceptions on arbitrary accesses to kernel memory is
essentially impossible as handling #VE may require access to memory
that also triggers the exception.
TDX module provides mechanism to disable #VE delivery on access to
private memory. If SEPT_VE_DISABLE TD attribute is set, private EPT
violation will not be reflected to the guest as #VE, but will trigger
exit to VMM.
Make sure the attribute is set by VMM. Panic otherwise.
There's small window during the boot before the check where kernel has
early #VE handler. But the handler is only for port I/O and panic as
soon as it sees any other #VE reason.
SEPT_VE_DISABLE makes SEPT violation unrecoverable and terminating the
TD is the only option.
Kernel has no legitimate use-cases for #VE on private memory. It is
either a guest kernel bug (like access of unaccepted memory) or
malicious/buggy VMM that removes guest page that is still in use.
In both cases terminating TD is the right thing to do.
"""
With this change Cloud Hypervisor can boot the current Linux guest
kernel.
Reported-By: Jiaqi Gao <jiaqi.gao@intel.com
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-02 14:53:59 +00:00
dependabot[bot]
c6eb69caba
build: Bump miniz_oxide from 0.6.2 to 0.6.4
...
Bumps [miniz_oxide](https://github.com/Frommi/miniz_oxide ) from 0.6.2 to 0.6.4.
- [Release notes](https://github.com/Frommi/miniz_oxide/releases )
- [Changelog](https://github.com/Frommi/miniz_oxide/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Frommi/miniz_oxide/compare/0.6.2...0.6.4 )
---
updated-dependencies:
- dependency-name: miniz_oxide
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 23:44:16 +00:00
dependabot[bot]
e4ed9bc557
build: Bump uuid from 1.2.2 to 1.3.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.2...1.3.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 23:27:32 +00:00
dependabot[bot]
f4509c3611
build: Bump kvm-ioctls from 0.12.0 to 0.13.0
...
Bumps [kvm-ioctls](https://github.com/rust-vmm/kvm-ioctls ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/rust-vmm/kvm-ioctls/releases )
- [Changelog](https://github.com/rust-vmm/kvm-ioctls/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/kvm-ioctls/commits )
---
updated-dependencies:
- dependency-name: kvm-ioctls
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-02-01 12:23:00 +00:00
Bo Chen
ecbb8ab282
docs: Add @likebreath to MAINTAINERS.md
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-02-01 12:19:07 +00:00
Wei Liu
29ebecccb0
tpm: be more consistent when converting responses
...
Do the following:
1. Use from_be_bytes to drop mutable slices.
2. Check for the exact buffer size throughout.
3. Simplify ptm_to_request where possible.
4. Make error messages style consistent.
Fix a typo in code comment while at it.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-31 18:09:28 +00:00
Wei Liu
5646a917ff
tpm: handle short write
...
There is no guarantee that the write can send the whole buffer at once.
In those rare occasions, we should return a sensible error.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-31 18:09:28 +00:00
Wei Liu
6e22f23831
tpm: save almost 8KB stack space
...
The largest possible PTM response is only 16 bytes. Size the output
buffer correctly.
In the socket read function, rely on the caller to provide a
sufficiently large buffer. That eliminates another large stack variable.
In total this saves almost 8KB stack space.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-31 18:09:28 +00:00
Wei Liu
8e996ff2fe
tpm: drop unnecessary cast
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-31 18:09:28 +00:00
Wei Liu
2d2f356d94
devices: tpm: failure to deliver request is considered fatal
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-31 18:09:18 +00:00
dependabot[bot]
938c16f2b2
build: Bump cc from 1.0.78 to 1.0.79
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.78...1.0.79 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 13:51:07 +00:00
dependabot[bot]
105a7dd7aa
build: Bump cc from 1.0.78 to 1.0.79 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.78...1.0.79 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 23:21:59 +00:00
Wei Liu
11ef495e6b
performance-metrics: share build.rs from project root
...
No need to duplicate the same content in two places.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-30 21:10:02 +00:00
Wei Liu
34b3170680
vmm: fix two typos
...
Change "thead" to "thread".
Also make sure the two messages are distinguishable by adding "vmm" and
"vm" prefix.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-30 21:10:02 +00:00
Wei Liu
427a2bacf5
block_util: convert aligned_operations to SmallVec
...
The number of aligned operations can not be larger than the number of
descriptors. Initializing the capacity to 1 is good enough per the
observation that most of time there is only one data descriptor in a
given request.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-30 08:13:40 +00:00
Wei Liu
1325c76525
block_util: use SmallVec in async adaptor
...
Also fix a comment while at it.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-30 08:13:40 +00:00
Michael Zhao
4a51a6615f
arch: Fix AArch64 socket setting in CPU topology
...
Before Linux v6.0, AArch64 didn't support "socket" in "cpu-map"
(CPU topology) of FDT.
We found that clusters can be used in the same way of sockets. That is
the way we implemented the socket settings in Cloud Hypervisor. But in
fact it was a bug.
Linux commit 26a2b7 fixed the mistake. So the cluster nodes can no
longer act as sockets. And in a following commit dea8c0, sockets were
supported.
This patch fixed the way to configure sockets. In each socket, a default
cluster was added to contain all the cores, because cluster layer is
mandatory in CPU topology on AArch64.
This fix will break the socket settings on the guests where the kernel
version is lower than v6.0. In that case, if socket number is set to
more than 1, the kernel will treat that as FDT mistake and all the CPUs
will be put in single cluster of single socket.
The patch only impacts the case of using FDT, not ACPI.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2023-01-30 08:12:56 +00:00
Rob Bradford
d5ce855649
misc: Update reference kernel to 6.1.6
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-30 08:12:56 +00:00
Bo Chen
496f932276
build: Temporarily disable bare metal x86-64 workers
...
These machines are unreachable.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-01-28 09:27:27 +00:00
dependabot[bot]
c33efe294a
build: Bump micro_http from fbef706 to b538bf8
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `fbef706` to `b538bf8`.
- [Release notes](https://github.com/firecracker-microvm/micro-http/releases )
- [Commits](fbef706e28...b538bf89e5 )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-27 23:59:35 +00:00
dependabot[bot]
2d022d0c85
build: Bump micro_http from fbef706 to b538bf8 in /fuzz
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `fbef706` to `b538bf8`.
- [Release notes](https://github.com/firecracker-microvm/micro-http/releases )
- [Commits](fbef706e28...b538bf89e5 )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-27 23:19:16 +00:00
Praveen K Paladugu
5b31b19530
tests: enable tpm tests for mshv
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-01-27 21:14:38 +00:00
Praveen K Paladugu
ad202f9b7a
hypervisor: x86: emulate MOVSB
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-01-27 21:14:38 +00:00
Wei Liu
3a225aaa23
hypervisor: x86: emulate MOVSW
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-27 21:14:38 +00:00
Wei Liu
1bfa07f48e
hypervisor: x86: use a macro to generate emulate function for movs
...
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-27 21:14:38 +00:00
Ravi kumar Veeramally
8e682bcb00
scripts: Avoid warning from mkdosfs command
...
Fix lowercase label to avoid "mkfs.fat: Warning: lowercase labels
might not work properly on some systems".
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-01-27 08:12:38 -08:00
Bo Chen
1ee2922dbc
Jenkinsfile: Enforce global execution timeout
...
This patch adds a global execution timeout to the Jenkinsfile to avoid
infinite pending Jenkins pipelines, such as when certain worker nodes
are not available. The global execution timeout is now set to 4 hours
which is derived from total timeout of our longest stage (e.g. the
`Worker build`).
Fixes : #5148
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-01-27 08:04:40 +00:00
dependabot[bot]
2ce503f457
build: Bump libfuzzer-sys from 0.4.5 to 0.4.6 in /fuzz
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.5 to 0.4.6.
- [Release notes](https://github.com/rust-fuzz/libfuzzer/releases )
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.5...0.4.6 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-26 23:17:41 +00:00
Bo Chen
574576c8e9
misc: Automatically fix cargo clippy issues added in 1.68 (beta)
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-01-26 08:58:37 -08:00
Ravi kumar Veeramally
aaf67c9ae4
doc: Add musl-tools to instructions for build
...
As a first time user of cloud-hypervisor and Rust environment
you get build errors with out this.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com >
2023-01-26 08:09:46 -08:00
Rob Bradford
8b9da4e286
build: Bump MSRV to 1.62
...
Needed for #[derive(Default)] on enums which is now clippy checked in
1.68.
Fixes : #5140
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-26 13:05:23 +00:00
dependabot[bot]
271f11d9ec
build: Bump ssh2 from 0.9.3 to 0.9.4
...
Bumps [ssh2](https://github.com/alexcrichton/ssh2-rs ) from 0.9.3 to 0.9.4.
- [Release notes](https://github.com/alexcrichton/ssh2-rs/releases )
- [Commits](https://github.com/alexcrichton/ssh2-rs/compare/0.9.3...0.9.4 )
---
updated-dependencies:
- dependency-name: ssh2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-26 07:59:11 +00:00
Muminul Islam
e436b382cc
scripts: check if /dev/{mshv,kvm} exists before test run
...
Right now integration test fails during the test run if
/dev/mshv or /dev/kvm does not exist. We should not
progress and exit early if not present.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-01-26 07:58:13 +00:00
Wei Liu
1ce1fe7334
tpm: rework set_buffer_size
...
Make the code more idiomatic by wrapping the actual size configured in
the returning Result type. This further allows simplifying
get_buffer_size.
The debug message in startup_tpm is more useful if it prints out the
actual size than the wanted size.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
73af65f417
tpm: drop unused fields in BackendCmd struct
...
They are never used.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
cffde0ff65
devices: avoid unnecessary allocations in TPM code
...
Use the data buffer in the TPM device directly.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
e41b7d90d5
tpm: drop cmd from Emulator struct
...
The command is not done asynchronously. And there is no way to propagate
this error anywhere.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
60425471dd
tpm: get_buffer_size always succeeds
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
2b76e1d7ba
devices: simplify TPM handling
...
The error is never propagated anywhere. Drop it.
Avoid unwrapping unconditionally.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
15ace525be
devices: drop cmd field from TPM struct
...
There is no need to hold on to it. It is only used locally in a
function.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-26 07:57:48 +00:00
Wei Liu
8db630763a
devices: clean up two comments in TPM code
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-25 18:40:57 +00:00
Wei Liu
cd1470e289
devices: rework TPM register and field look-up
...
Match against enums instead.
This then drops the need to import phf.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-25 18:40:57 +00:00
Wei Liu
99d8c34861
devices: change TPM_CRB_R_MAX from u32 to usize
...
This simplifies the code a bit.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-25 18:40:57 +00:00
Philipp Schuster
6725771dc3
virtio-devices: typo fixes
...
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-01-25 10:38:31 +00:00
dependabot[bot]
0e8fd0bc17
build: Bump object from 0.30.2 to 0.30.3
...
Bumps [object](https://github.com/gimli-rs/object ) from 0.30.2 to 0.30.3.
- [Release notes](https://github.com/gimli-rs/object/releases )
- [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gimli-rs/object/compare/0.30.2...0.30.3 )
---
updated-dependencies:
- dependency-name: object
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-24 23:41:13 +00:00
dependabot[bot]
0ef1e668a5
build: Bump quote from 1.0.21 to 1.0.23 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.21 to 1.0.23.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.21...1.0.23 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-24 23:21:28 +00:00
dependabot[bot]
477332a94a
build: Bump arbitrary from 1.2.0 to 1.2.3 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.2.0 to 1.2.3.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.2.0...v1.2.3 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-24 00:26:33 +00:00
dependabot[bot]
7b102c4fa3
build: Bump gimli from 0.27.0 to 0.27.1
...
Bumps [gimli](https://github.com/gimli-rs/gimli ) from 0.27.0 to 0.27.1.
- [Release notes](https://github.com/gimli-rs/gimli/releases )
- [Changelog](https://github.com/gimli-rs/gimli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gimli-rs/gimli/compare/0.27.0...0.27.1 )
---
updated-dependencies:
- dependency-name: gimli
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-23 23:43:21 +00:00
Praveen K Paladugu
1e159dbefb
tests: Add a test for tpm driver
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-01-23 10:10:19 -08:00
Praveen K Paladugu
a4ef6e57a7
ci: install swtpm in Docker container
...
Add steps to build and install swtpm and its dependencies in
ci docker container.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2023-01-23 10:10:19 -08:00
Bo Chen
ec45daac19
docs: Use the TDVF firmware from the edk2 repository
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2023-01-23 10:25:27 +01:00
dependabot[bot]
c773330a65
build: Bump arc-swap from 1.5.1 to 1.6.0 in /fuzz
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/vorner/arc-swap/releases )
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/compare/v1.5.1...v1.6.0 )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-20 23:17:10 +00:00
Sebastien Boeuf
e4ae668bcd
tdx: Update support based on kvm-upstream v5.19
...
In order to comply with latest TDX version, we rely onto the branch
kvm-upstream-2022.08.07-v5.19-rc8 from https://github.com/intel/tdx
repository. Updates are based on changes that happened in
arch/x86/include/uapi/asm/kvm.h headers file.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2023-01-20 09:59:56 +00:00
Rob Bradford
f6c058da56
.github: Don't try and create releases for created branches
...
Dependabot will create a branch on the repo for it's updates this
triggers the release action (because it's the same event as a tag) which
will then fail leading to dependabot PRs not being automerged. Instead
only run the release check test on PRs or tag creation.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-20 09:58:53 +00:00
dependabot[bot]
089dffcb49
build: Bump io-uring from 0.5.11 to 0.5.12
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.11 to 0.5.12.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-20 09:24:06 +00:00
dependabot[bot]
9d7034b9c6
build: Bump io-uring from 0.5.11 to 0.5.12 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.11 to 0.5.12.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-20 09:44:48 +01:00
Rob Bradford
a86edd3032
tests: Add tpm2-tools to custom jammy image
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-19 19:19:52 +00:00
Anirudh Rayabharam
7805fe58e2
tests: disable test_memory_mergeable_on for mshv
...
KSM doesn't work with MSHV stack since guest memory is pinned
(`pin_user_pages`) and pinned pages cannot be merged.
So, don't run the test for mshv.
Signed-off-by: Anirudh Rayabharam <anrayabh@linux.microsoft.com >
2023-01-19 13:25:40 +00:00
dependabot[bot]
e66ffffd43
build: Bump rustix from 0.36.6 to 0.36.7
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.36.6 to 0.36.7.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.36.6...v0.36.7 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-19 07:36:35 +00:00
dependabot[bot]
843c8ad51c
build: Bump proc-macro2 from 1.0.49 to 1.0.50 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.49 to 1.0.50.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.49...1.0.50 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-19 07:36:23 +00:00
dependabot[bot]
a334831d54
build: Bump vmm-sys-util from 0.11.0 to 0.11.1 in /fuzz
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.11.0...v0.11.1 )
---
updated-dependencies:
- dependency-name: vmm-sys-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-18 11:30:04 +00:00
Rob Bradford
dab9f1cf30
docs: Add instructions for heap profiling
...
Fixes : #5074
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-17 14:02:01 +00:00
Rob Bradford
3a81f9328f
build: Add optional dhat heap profiling
...
Add new "dhat-heap" build feature which enables dhat heap profiling.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-17 14:02:01 +00:00
Rob Bradford
e2886a4b1f
docs: Update instructions to point to new profiling target
...
This removes the need for the user to manually change the Cargo.toml
file for profiling.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-17 14:02:01 +00:00
Rob Bradford
c6d3f61a42
build: Add new profiling target
...
This makes it much more convenient to build binaries for profiling
without having to modify the Cargo.toml file.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-17 14:02:01 +00:00
dependabot[bot]
4689abd9f4
build: Bump argh_derive from 0.1.9 to 0.1.10
...
Bumps [argh_derive](https://github.com/google/argh ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/google/argh/releases )
- [Commits](https://github.com/google/argh/compare/0.1.9...0.1.10 )
---
updated-dependencies:
- dependency-name: argh_derive
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-17 09:11:48 +01:00
dependabot[bot]
f479f0605d
build: Bump serde_with from 2.1.0 to 2.2.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.1.0...v2.2.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-17 09:11:36 +01:00
Rob Bradford
5034bea8c4
Docker: Update Rust toolchain in dev container
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-16 16:43:49 +00:00
Wei Liu
b8172408f8
vhost_user_net: add --version
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
b0a2ce0598
vhost_user_block: add --version
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
a0922930b1
docs: update command line options
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
d1ec65873e
vhost_user_net: switch to argh
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
54e9ed9932
vhost_user_blk: switch to argh
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
111225a2a5
main: switch to argh
...
A few breaking changes:
1. `-vvv` needs to be written as `-v -v -v`.
2. `--disk D1 D2` and others need to be written as `--disk D1 --disk D2`.
3. `--option=value` needs to be written as `--option value`
Change integration tests to adapt to the breaking changes.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
fe49056129
main: split out a few functions
...
Switching to `argh` requires individual default functions.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
d5558aea2a
ch-remote: switch to argh
...
Since argh does not support `--option=value`, we need to change the
integration test code to become `--option value`.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
Wei Liu
1ba995d952
performance-metrics: switch to argh
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-16 16:39:03 +00:00
dependabot[bot]
c6c081099f
build: Bump proc-macro2 from 1.0.47 to 1.0.49
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.47 to 1.0.49.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.47...1.0.49 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-16 09:22:06 +01:00
dependabot[bot]
3a1254a9b2
build: Bump clap from 4.0.32 to 4.1.0 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.32 to 4.1.0.
- [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/v4.0.32...clap_complete-v4.1.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-16 09:21:57 +01:00
Rob Bradford
6e9172bf6f
.github: Re-order release steps to ensure binaries are available
...
Since we run "cargo clean" before running the aarch64 build we need to
create the release and upload the x86-64 assets before the clean.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-14 12:12:11 +00:00
Rob Bradford
22cf8c97e5
build: Release v29.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-13 17:10:35 +00:00
Wei Liu
9e6301be70
Reland: build: drop clap from dev-dependencies
...
Some crates don't need it at all.
Some crates are using it for a simple functionality which can be
replaced easily.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
This was causing issues with the release build process but we now have a
fix to clean residual build assets.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-13 16:44:59 +00:00
Rob Bradford
547230bb77
.github: Clean source tree before cross building release assets
...
This address issues with leaking symbols into the cross build.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-13 16:44:59 +00:00
Rob Bradford
ef7e177df2
.github: Run release style builds on all PRs
...
Adjust the release workflow to move the conditional check on the tag
creation into the steps that create the release/upload the assets.
This allows us to ensure we're always in a releaseable state.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-13 14:38:15 +00:00
Rob Bradford
375e094c77
Revert "build: drop clap from dev-dependencies"
...
This reverts commit 998fb48ff2 .
This is breaking the release build process (cross build for aarch64
musl) so temporarily reverting until we can identify the cause to allow
the release proceeed.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-13 14:38:15 +00:00
dependabot[bot]
3df82337f1
build: Bump thiserror from 1.0.37 to 1.0.38
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.37...1.0.38 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-13 01:34:59 +00:00
dependabot[bot]
0e273e8b0d
build: Bump once_cell from 1.16.0 to 1.17.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.16.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-13 00:34:13 +00:00
Philipp Schuster
ad6c0ee52b
virtio-devices: properly join all threads on Drop
...
This change is important to do a proper resource cleanup. We decided
to do this repetitive approach as VirtioCommon can't implement Drop
without major changes to the corresponding code. Also, devices such as
Net can't easily use the epoll_threads-abstraction from VirtioCommon as
it has multiple threads with different semantics.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-01-12 18:03:33 +00:00
dependabot[bot]
b1f6a59579
build: Bump semver from 1.0.14 to 1.0.16
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.14 to 1.0.16.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.14...1.0.16 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-12 12:54:36 +00:00
Yong He
3494080e2f
vmm: add configuration for network offloading features
...
Add new configuration for offloading features, including
Checksum/TSO/UFO, and set these offloading features as
enabled by default.
Fixes : #4792 .
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-01-12 09:05:45 +00:00
Muminul Islam
06e583c9ab
vmm: move kvm feature gate right before the if condition
...
This change uses the kvm feature gate cleaner way
in the handling of PIO/MMIO exits.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-01-12 09:03:28 +01:00
Muminul Islam
7d8f795430
hypervisor: remove unnecessary derive of HypervisorType
...
There was an unnecessary change in previous PR #5077 .
This is the follow-up clean up patch.
Right now there is no use case of the drive of
Eq and PartialEq.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-01-12 09:03:28 +01:00
dependabot[bot]
f8c6d7fe37
build: Bump micro_http from 4b18a04 to fbef706 in /fuzz
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `4b18a04` to `fbef706`.
- [Release notes](https://github.com/firecracker-microvm/micro-http/releases )
- [Commits](4b18a043e9...fbef706e28 )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-11 23:19:57 +00:00
Yong He
0dc122a9a9
virto-device: add latency account for virtio-block
...
Add new latency counters for virtio-block device, including
minimal latency, maximal latency, and average latency for block
read and write.
The average latency is calculated based on cumulative average.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-01-11 17:38:42 +00:00
Yong He
e2ea9e2821
block_util: add timestamp in request
...
Add timestamp per request, so that we could account
block process latency base request.
Signed-off-by: Yong He <alexyonghe@tencent.com >
2023-01-11 17:38:42 +00:00
Muminul Islam
4e3bc20f2c
vmm: Ensure PIO/MMIO exits complete before pausing only for KVM
...
MSHV does not require to ensure MMIO/PIO exits complete
before pausing. This patch makes sure the above requirement
by checking the hypervisor type run-time.
Fixes #5037
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2023-01-11 17:15:56 +00:00
Rob Bradford
e661139e1e
arch: Print details of host hypervisor status & address space size
...
e.g. on QEMU on KVM:
cloud-hypervisor: 17.079406ms: <vmm> INFO:arch/src/x86_64/mod.rs:565 -- Running under nested virtualisation. Hypervisor string: KVMKVMKVM
Or under Azure:
cloud-hypervisor: 3.881263ms: <vmm> INFO:arch/src/x86_64/mod.rs:565 -- Running under nested virtualisation. Hypervisor string: Microsoft Hv
Fixes : #5067
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-11 14:38:22 +00:00
dependabot[bot]
c99a5fc7a5
build: Bump io-uring from 0.5.9 to 0.5.11
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.9 to 0.5.11.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-10 23:41:07 +00:00
dependabot[bot]
5b2adb398a
build: Bump serde_with_macros from 2.1.0 to 2.2.0 in /fuzz
...
Bumps [serde_with_macros](https://github.com/jonasbb/serde_with ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.1.0...v2.2.0 )
---
updated-dependencies:
- dependency-name: serde_with_macros
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-10 23:18:05 +00:00
Rob Bradford
db5582f7d1
block_util: Preserve ordering of sync file backend completions
...
For the synchronous backends efficiently preserve the order for
completion requests through the use of VecDequeue. Preserving the order
is not required but is beneficial as it matches the existing
optimisation that looks to match completions and requests.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 17:30:25 +00:00
Rob Bradford
ce51755109
block_util: Avoid intermediate completion queue allocation
...
Rather than aggregate the completion list into an intermediate vector
instead adjust the API to provide one completion item at a time.
With DHAT this shows the number of heap allocations has decreased.
Before:
dhat: Total: 623,852 bytes in 8,157 blocks
After:
dhat: Total: 380,444 bytes in 3,469 blocks
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 17:30:25 +00:00
Rob Bradford
67ff0d7819
block_util: Use SmallVec for I/O requests
...
The number of buffers in the request is usually one so by using SmallVec
the number of heap allocations can be significantly reduced.
DHAT reports:
Before:
dhat: Total: 1,166,412 bytes in 40,383 blocks
After:
dhat: Total: 623,852 bytes in 8,157 blocks
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 17:30:25 +00:00
Rob Bradford
e7a51cde78
block_util: Pass a reference to the slice of iovecs
...
Rather than passing the vector of iovecs for the I/O to act on pass a
reference to the slice of values inside them. This removes the explicit
container type from the API allowing the use of e.g. SmallVec.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 17:30:25 +00:00
Rob Bradford
9ba06ce5f5
vmm: memory_manager: Deprecate directory backing for memory
...
This functionality has been obsoleted by our native support for
hugepages and shared memory.
See: #5082
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 15:08:34 +00:00
Sebastien Boeuf
0e7d5d2761
qcow: Fix number of refcount table entries
...
The number of entries in the refcount table was incorrectly calculated
given there was no need for dividing the number of refblock clusters.
The number of refblock clusters is the number of entries in the refcount
table.
Suggested-by: lv_mz <lv.mengzhao@zte.com.cn >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2023-01-10 12:05:15 +00:00
Rob Bradford
ba9554389b
virtio-devices: block: Replace use of HashMap for inflight requests
...
During analysis of the asynchrous block I/O handling it was observed
that the majority of the time the completion events occur in the same
order as submissions. Further the maximum number of inflight requests
during the boot time is much lower than the size of the queue.
Through the use of a double ended queue (VecDequeue) with a reasonable
pre-allocation capacity we can have O(1) allocation free addition of
items to the list of inflight requests and mostly O(1) matching of
completed requests to submissions.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 10:41:24 +00:00
Rob Bradford
c89b8e061f
Revert "vmm: Deprecate MemoryZoneConfig::file"
...
This reverts commit 9fb0274479 .
A user was identified of this functionality.
See: #4837
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-10 10:31:18 +00:00
Sebastien Boeuf
c2450bd055
tests: Remove unnecessary filename
...
Since SGX testing doesn't rely on a custom guest image anymore, there's
no need to keep the custom filename around as it's already not in use.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2023-01-10 09:22:59 +00:00
dependabot[bot]
bae9799259
build: Bump mshv-bindings from dda85d3 to fb19bb3
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `dda85d3` to `fb19bb3`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](dda85d32b9...fb19bb3011 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-09 23:45:35 +00:00
dependabot[bot]
3dd487c2cf
build: Bump syn from 1.0.105 to 1.0.107 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.105 to 1.0.107.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.105...1.0.107 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-09 23:24:11 +00:00
Rob Bradford
eb87538100
block_util: Avoid reallocation of Vec on push
...
When using DHAT[1] for analysis the amount heap allocations change from:
dhat: Total: 3,186,536 bytes in 41,452 blocks
to
dhat: Total: 1,059,816 bytes in 34,747 blocks
When running against virtio-block; this still more allocations than
virtio-pmem but a significant improvement without any cost.
[1] https://docs.rs/dhat/latest/dhat/
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-09 10:41:56 -08:00
Philipp Schuster
9e8296b696
log: align log message timestamp
...
With this change, all log messages will have the same width for the
timestamp. The number of ms is rounded to 6 decimal places.
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-01-09 16:38:29 +01:00
Philipp Schuster
0dc3282ae0
lifecycle: align "KILL_EVENT received" messages across code-base
...
To align the logging messages with the rest of the code, this
message should be aligned with another similar occurrence in
epoll_helper.rs
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de >
2023-01-09 15:16:48 +00:00
dependabot[bot]
67340c5295
build: Bump clap from 4.0.29 to 4.0.32
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.29 to 4.0.32.
- [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/v4.0.29...v4.0.32 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-06 23:41:55 +00:00
dependabot[bot]
160ea00d6b
build: Bump ryu from 1.0.11 to 1.0.12 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-06 23:14:20 +00:00
Wei Liu
0389190c64
build: drop the need to import macros from Clap
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-06 13:06:16 -08:00
Wei Liu
998fb48ff2
build: drop clap from dev-dependencies
...
Some crates don't need it at all.
Some crates are using it for a simple functionality which can be
replaced easily.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-06 13:06:16 -08:00
Wei Liu
03d8a3ebcf
performance-metrics: add metrics for UDP PPS
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-06 11:03:08 +00:00
Wei Liu
08e4d1f481
test_infra: make measure_virtio_net_throughput & co measure PPS too
...
While measuring UDP PPS, we saturate the link, so there are packets
lost. We only account for the packets that are not lost.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-06 11:03:08 +00:00
Wei Liu
d50a4cbb6b
test_infra: do not output interval values for iperf3
...
We only care about the end result.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-06 11:03:08 +00:00
dependabot[bot]
28eeb8a492
build: Bump libc from 0.2.138 to 0.2.139
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.138 to 0.2.139.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.138...0.2.139 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-05 23:41:28 +00:00
dependabot[bot]
ec3520d8b2
build: Bump semver from 1.0.14 to 1.0.16 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.14 to 1.0.16.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.14...1.0.16 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-05 23:14:59 +00:00
Rob Bradford
19661d36af
build: Re-enable Jenkins bare metal workers
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-05 17:55:03 +00:00
dependabot[bot]
9747cd1059
build: Bump remain from 0.2.5 to 0.2.6
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.5...0.2.6 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-04 23:40:40 +00:00
dependabot[bot]
0bdc7dcc1c
build: Bump proc-macro2 from 1.0.47 to 1.0.49 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.47 to 1.0.49.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.47...1.0.49 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-04 23:18:36 +00:00
Wei Liu
e16817ea14
performance-metrics: add IOPS tests for FIO
...
Change fio_ops to fio_control and add a new field to indicate whether it
should report bandwidth or IOPS.
All existing tests are bandwidth tests. Adapt the code accordingly. Add
a set of new tests to report IOPS.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2023-01-04 09:47:44 +00:00
dependabot[bot]
3de0a6d401
build: Bump iced-x86 from 1.17.0 to 1.18.0
...
Bumps [iced-x86](https://github.com/icedland/iced ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/icedland/iced/releases )
- [Commits](https://github.com/icedland/iced/compare/v1.17.0...v1.18.0 )
---
updated-dependencies:
- dependency-name: iced-x86
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-03 23:41:28 +00:00
dependabot[bot]
bb9c5e5faf
build: Bump serde from 1.0.151 to 1.0.152 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.151 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-03 23:12:47 +00:00
Rob Bradford
0036302fc9
tests: Remove support for Ubuntu Bionic
...
This OS is EOL this year and is well tested by the Rust Hypervisor
Firmware CI so there is no need to duplicate this effort.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2023-01-03 14:42:24 +01:00
dependabot[bot]
b4ec59cb0c
build: Bump openssl-sys from 0.9.79 to 0.9.80
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.79 to 0.9.80.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.79...openssl-sys-v0.9.80 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-03 12:20:54 +00:00
dependabot[bot]
8511603fdb
build: Bump io-uring from 0.5.9 to 0.5.11 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.9 to 0.5.11.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-02 23:13:05 +00:00
dependabot[bot]
df6e17840a
build: Bump remain from 0.2.5 to 0.2.6 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.5...0.2.6 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-02 09:43:01 +00:00
dependabot[bot]
fdb2d673d3
build: Bump anyhow from 1.0.66 to 1.0.68
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.66 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.66...1.0.68 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-30 23:40:35 +00:00
dependabot[bot]
2d828121a6
build: Bump quote from 1.0.21 to 1.0.23
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.21 to 1.0.23.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.21...1.0.23 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-29 23:41:08 +00:00
dependabot[bot]
55a8d3a0ea
build: Bump paste from 1.0.10 to 1.0.11
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-28 23:41:07 +00:00
dependabot[bot]
8e373f52a9
build: Bump mshv-ioctls from 2852337 to dda85d3
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `2852337` to `dda85d3`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](2852337bf4...dda85d32b9 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-28 02:10:58 +00:00
dependabot[bot]
6eb0330bed
build: Bump clap from 4.0.29 to 4.0.32 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.29 to 4.0.32.
- [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/v4.0.29...v4.0.32 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-26 23:13:24 +00:00
dependabot[bot]
c4c384bd1e
build: Bump is-terminal from 0.4.1 to 0.4.2 in /fuzz
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/sunfishcode/is-terminal/releases )
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.1...v0.4.2 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-23 23:18:08 +00:00
dependabot[bot]
180cc12b46
build: Bump is-terminal from 0.4.1 to 0.4.2
...
Bumps [is-terminal](https://github.com/sunfishcode/is-terminal ) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/sunfishcode/is-terminal/releases )
- [Commits](https://github.com/sunfishcode/is-terminal/compare/v0.4.1...v0.4.2 )
---
updated-dependencies:
- dependency-name: is-terminal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-22 23:40:50 +00:00
dependabot[bot]
ccb76fc19f
build: Bump itoa from 1.0.4 to 1.0.5 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-22 23:13:42 +00:00
dependabot[bot]
5668d7dfb7
build: Bump unicode-ident from 1.0.5 to 1.0.6
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.5...1.0.6 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-21 23:42:28 +00:00
dependabot[bot]
7ca2a771c2
build: Bump anyhow from 1.0.66 to 1.0.68 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.66 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.66...1.0.68 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-21 23:13:54 +00:00
dependabot[bot]
09abb5b709
build: Bump mshv-bindings from ef01a5a to 2852337
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `ef01a5a` to `2852337`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](ef01a5abd0...2852337bf4 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-20 23:40:27 +00:00
dependabot[bot]
7bac36bea4
build: Bump unicode-ident from 1.0.5 to 1.0.6 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.5...1.0.6 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-20 23:19:44 +00:00
dependabot[bot]
0f5702f297
build: Bump itoa from 1.0.4 to 1.0.5
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-20 10:10:57 +00:00
Jinank Jain
8914ce9da8
build: Bump mshv-ioctls from 10d0c52 to ef01a5a
...
With this bump there was a change in one of the externally exposed
variable. Thus, the use of that variable in CLH must be adjusted
accordingly.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-12-20 10:10:34 +00:00
dependabot[bot]
1f191d8130
build: Bump serde_json from 1.0.89 to 1.0.91 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.89 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.89...v1.0.91 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-19 23:18:39 +00:00
dependabot[bot]
129416de5c
build: Bump serde from 1.0.150 to 1.0.151
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.150 to 1.0.151.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-17 00:08:58 +00:00
dependabot[bot]
b3980f581b
build: Bump serde from 1.0.150 to 1.0.151 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.150 to 1.0.151.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-16 23:24:12 +00:00
Wei Liu
3a232ef31a
hypervisor: kvm: aarch64: remove repetition in offset_of
...
The repetition served no purpose.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-12-16 17:04:43 +00:00
Wei Liu
cd83d258b8
hypervisor: kvm: aarch64: rename offset__of to offset_of
...
The double underscore made it different from how other projects would
name this particular macro.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-12-16 17:04:43 +00:00
Hao Xu
1b0f35e42d
virtio-devices: block: Remove duplicated code in handle_event()
...
There is duplicated code when handlin queue events in handle_event()
refactor and introduce a new helper function.
Signed-off-by: Hao Xu <howeyxu@tencent.com >
2022-12-16 14:52:48 +00:00
Rob Bradford
85f818421f
build: Skip Jenkins build on .github only changes
...
Fixes : #4988
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-16 09:39:55 +00:00
Rob Bradford
0031dacd7b
build: Consolidate touched file checks
...
This will make it easier to add more in the future.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-16 09:39:55 +00:00
dependabot[bot]
2f855c9a67
build: Bump cc from 1.0.77 to 1.0.78
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.77 to 1.0.78.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.77...1.0.78 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-16 00:04:51 +00:00
dependabot[bot]
b7e7455b49
build: Bump cc from 1.0.77 to 1.0.78 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.77 to 1.0.78.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.77...1.0.78 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-15 23:23:12 +00:00
Rob Bradford
795f2a5558
vmm: memory_manager: Mark guest memory mappings as non-dumpable
...
Including the guest RAM (or other mapped memory) in a coredump is not
useful.
See: #5014
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-15 20:36:40 +01:00
dependabot[bot]
2b92a2778b
build: Bump linux-raw-sys from 0.1.3 to 0.1.4
...
Bumps [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/sunfishcode/linux-raw-sys/releases )
- [Commits](https://github.com/sunfishcode/linux-raw-sys/compare/v0.1.3...v0.1.4 )
---
updated-dependencies:
- dependency-name: linux-raw-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-14 23:43:43 +00:00
Rob Bradford
cbe988d33e
.build: Add .vscode to .gitignore
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-14 14:27:32 +00:00
Rob Bradford
5e52729453
misc: Automatically fix cargo clippy issues added in 1.65 (stable)
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-14 14:27:19 +00:00
Rob Bradford
8b59316718
build: Temporarily disable bare metal x86-64 workers
...
These machines are unreachable.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-14 10:47:15 +00:00
dependabot[bot]
6e8972372e
build: Bump linux-raw-sys from 0.1.3 to 0.1.4 in /fuzz
...
Bumps [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/sunfishcode/linux-raw-sys/releases )
- [Commits](https://github.com/sunfishcode/linux-raw-sys/compare/v0.1.3...v0.1.4 )
---
updated-dependencies:
- dependency-name: linux-raw-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-14 10:28:13 +01:00
dependabot[bot]
748ba1f50d
build: Bump paste from 1.0.9 to 1.0.10
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-14 10:28:05 +01:00
Rob Bradford
a48d7c281e
vmm: seccomp: Remove unreachable patterns
...
Make HypervisorType enum's members conditional on build time features.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-13 18:10:42 +00:00
Rob Bradford
aea1f7743b
devices: Remove unnecessary clippy directives
...
Clippy passes fine without these and remove some genuinely unused code.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-13 18:10:42 +00:00
Rob Bradford
ab8e559343
block_util: Use anonymous case to handle ioctl signature difference
...
Between musl and glibc there is a difference in the signature of the
ioctl libc function. Use an anonymous cast to force the type coversion.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-13 18:10:42 +00:00
Rob Bradford
1b314cff5b
acpi_tables: sdt: Implement Std::is_empty()
...
This allows the removal of [allow(clippy::len_without_is_empty)]
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-13 18:10:42 +00:00
Claudio Fontana
683d116416
docs: update UEFI.md to reference upstream tianocore EDK2 repository
...
after testing the build briefly, it seems upstream tianocore EDK2 works fine,
no need for the separate cloud-hypervisor edk2 repo.
Signed-off-by: Claudio Fontana <claudio.fontana@gmail.com >
2022-12-13 18:16:34 +01:00
Henry Wang
b93d50582d
docs: Consolidate AArch64 guest booting doc into README
...
Take the opportunity to fix a bug in the `Booting the guest VM` doc
in README.
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-12-13 13:38:11 +00:00
Henry Wang
de4cd49c6d
docs: Consolidate AArch64 kernel building doc into README
...
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-12-13 13:38:11 +00:00
Henry Wang
709545920e
docs: Consolidate AArch64 cloud-img related doc into README
...
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-12-13 13:38:11 +00:00
Henry Wang
2b11966faa
docs: Consolidate AArch64 UEFI doc into uefi.md
...
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-12-13 13:38:11 +00:00
Henry Wang
6835dfa5e9
docs: Consolidate building on AArch64 to building.md
...
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-12-13 13:38:11 +00:00
Henry Wang
d15e1f1a13
docs: Move AArch64 hardware requirements to README
...
Also drop the SWAP enabling requirements for AArch64 because this
is an AArch64 specific issue.
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-12-13 13:38:11 +00:00
dependabot[bot]
8ab15b9a98
build: Bump serde from 1.0.149 to 1.0.150
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.149 to 1.0.150.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-13 00:08:23 +00:00
dependabot[bot]
287ec367d6
build: Bump serde from 1.0.149 to 1.0.150 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.149 to 1.0.150.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-12 23:27:28 +00:00
Rob Bradford
9fb0274479
vmm: Deprecate MemoryZoneConfig::file
...
Remove from the documentation and API definition but continue support
using the field (with a deprecation warning.)
See: #4837
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-12 16:44:04 +00:00
Bo Chen
51307dd509
fuzz: Add fuzzer for 'linux loader' cmdline
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-12-12 13:50:28 +00:00
Bo Chen
de06bf4aed
vmm: Make "Vm::generate_cmdline()" public for fuzzing
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-12-12 13:50:28 +00:00
Bo Chen
32ded2c72b
fuzz: Add fuzzer for 'linux loader'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-12-12 13:50:28 +00:00
Sebastien Boeuf
8ecce8876e
tests: Disable live upgrade testing
...
Since the refactoring of the vm-migration crate broke the backward
compatibility, we must disable the live upgrade tests until next
release.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
3931b99d4e
vm-migration: Introduce new constructor for Snapshot
...
This simplifies the Snapshot creation as we expect a SnapshotData to be
provided most of the time.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
4ae6b595d7
vm-migration: Rename add_data_section() into add_data()
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
748018ace3
vm-migration: Don't store the id as part of Snapshot structure
...
The information about the identifier related to a Snapshot is only
relevant from the BTreeMap perspective, which is why we can get rid of
the duplicated identifier in every Snapshot structure.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
426ee39972
vm-migration: Simplify SnapshotData implementation
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
1d1043316b
vm-migration: Don't store snapshots through a Box
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
4517b76a23
vm-migration: Rename SnapshotDataSection into SnapshotData
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
1b32e2f8b2
vm-migration: Simplify SnapshotDataSection structure
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
5b3bcfa233
vm-migration: Snapshot should have a unique SnapshotDataSection
...
There's no reason to carry a HashMap of SnapshotDataSection per
Snapshot. And given we now provide at most one SnapshotDataSection per
Snapshot, there's no need to keep the id part of the SnapshotDataSection
structure.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-09 10:26:06 +01:00
Sebastien Boeuf
0489b6314e
tdx: Support new way of declaring memory resources
...
Without breaking the former way of declaring them. This is simply based
on the presence of the GUID TDX Metadata offset. If not present, we
consider the firmware is quite old and therefore we fallback onto the
previous way to expose memory resources.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-08 10:13:12 -08:00
Rob Bradford
2c367bdde8
misc: Bulk update dependencies
...
In particular update to latest linux-loader release and point to latest
vfio repository for both crates hosted there.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-07 18:24:58 +00:00
Sebastien Boeuf
4f3f36fe5f
tdx: Add support for new method of TDVF descriptor discovery
...
The preferred way of retrieving the offset where to find the TDVF
descriptor structure is by going through a table of GUIDs that can be
found at a specific offset in the firmware file. If the expected GUIDs
can't be found, we can fallback onto the former way, which is to read
directly the value at a specific offset in the file.
This patch implements the new mechanism without breaking compatibility
for older firmwares as it keeps supporting the previous mechanism.
As a reference, here is the documentation from the EDK2 code, and
particularly from the OvmfPkg/ResetVector/Ia16/ResetVectorVtf0.asm file:
```
GUIDed structure. To traverse this you should first verify the
presence of the table footer guid
(96b582de-1fb2-45f7-baea-a366c55a082d) at 0xffffffd0. If that
is found, the two bytes at 0xffffffce are the entire table length.
The table is composed of structures with the form:
Data (arbitrary bytes identified by guid)
length from start of data to end of guid (2 bytes)
guid (16 bytes)
so work back from the footer using the length to traverse until you
either find the guid you're looking for or run off the beginning of
the table.
```
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-07 17:55:54 +00:00
Rob Bradford
4b08142117
misc: Remove #![allow(clippy::significant_drop_in_scrutinee)]
...
This isn't supported by clippy on Rust 1.60 but also no longer seems to
be required.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-07 17:50:48 +00:00
Rob Bradford
b3e3a5fdd7
vmm: Fix clippy on musl toolchains
...
The datatype used for the ioctl() C library call is different between it
and the glibc toolchains. The easiest solution is to have the compiler
type cast to type of the parameter.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-07 17:50:48 +00:00
Rob Bradford
a1c6ef8385
.github: Add musl variants to quality (clippy) checks
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-07 17:50:48 +00:00
dependabot[bot]
16d0906dfd
build: Bump mshv-ioctls from 0983996 to 10d0c52
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `0983996` to `10d0c52`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](098399606d...10d0c5208c )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-06 23:44:44 +00:00
dependabot[bot]
3e9ce6012c
build: Bump rustix from 0.36.4 to 0.36.5 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.36.4 to 0.36.5.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.36.4...v0.36.5 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-06 23:21:09 +00:00
Shuaiyi Zhang
389264351e
ch-remote: Add support for vmm.shutdown
...
Signed-off-by: Shuaiyi Zhang <zhangsy28@lenovo.com >
2022-12-06 13:21:55 -08:00
Rob Bradford
00becda899
README: Use consistent path to cloud-hypervisor binary
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-06 17:30:34 +00:00
dependabot[bot]
fe5bde236a
build: Bump libc from 0.2.137 to 0.2.138
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.137 to 0.2.138.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.137...0.2.138 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-06 00:10:07 +00:00
dependabot[bot]
80cc2b6ef8
build: Bump libc from 0.2.137 to 0.2.138 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.137 to 0.2.138.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.137...0.2.138 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-05 23:25:56 +00:00
Rob Bradford
c37dadcc9a
.github: Enable "guest_debug" clippy on aarch64
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-05 17:23:52 +00:00
Rob Bradford
cefbf6b4a3
vmm: guest_debug: Mark coredump functionality x86_64 only
...
The coredump functionality is only implemented for x86_64 so it should
only be compiled in there.
Fixes : #4964
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-05 17:23:52 +00:00
Sebastien Boeuf
31209474b3
vmm: Move TDX initialization before vCPUs creation
...
TDX was broken by the recent refactoring moving the vCPU creation
earlier than before. The simple and correct way to fix this problem is
by moving the TDX initialization right before the vCPUs creation. The
rest of the TDX setup can remain where it is.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-05 07:49:40 -08:00
Shuaiyi Zhang
0e09b537e3
ch-remote: Add support for vmm.ping
...
Signed-off-by: Shuaiyi Zhang <zhangsy28@lenovo.com >
2022-12-05 07:45:01 -08:00
dependabot[bot]
ca6d338ffa
build: Bump clap from 4.0.27 to 4.0.29
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.27 to 4.0.29.
- [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/v4.0.27...v4.0.29 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 23:45:26 +00:00
dependabot[bot]
166b73e106
build: Bump io-lifetimes from 1.0.2 to 1.0.3 in /fuzz
...
Bumps [io-lifetimes](https://github.com/sunfishcode/io-lifetimes ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/sunfishcode/io-lifetimes/releases )
- [Commits](https://github.com/sunfishcode/io-lifetimes/compare/v1.0.2...v1.0.3 )
---
updated-dependencies:
- dependency-name: io-lifetimes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 23:21:11 +00:00
dependabot[bot]
9398a0bd80
build: Bump syn from 1.0.104 to 1.0.105
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.104...1.0.105 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 00:00:29 +00:00
dependabot[bot]
55f7df2e21
build: Bump syn from 1.0.104 to 1.0.105 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.104...1.0.105 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 23:16:35 +00:00
Rob Bradford
7fb1280666
devices: gic: Pass slice rather than &Vec
...
This addresses a clippy issue
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 22:41:01 +00:00
Rob Bradford
bfa31f9c56
vmm: Propagate vCPU configure error correctly
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 22:41:01 +00:00
Rob Bradford
725e388684
vmm: Seperate the CPUID setup from the CpuManager::new()
...
This allows the decoupling of CpuManager and MemoryManager.
See: #4761
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 22:41:01 +00:00
Rob Bradford
c5eac2e822
vmm: Don't store GuestMemoryMmap for "guest_debug" functionality
...
This removes the storage of the GuestMemoryMmap on the CpuManager
further allowing the decoupling of the CpuManager from the
MemoryManager.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 22:41:01 +00:00
Rob Bradford
c7b22156da
aarch, vmm: Reduce requirement for guest memory to vCPU boot only
...
When configuring the vCPUs it is only necessary to provide the guest
memory when booting fresh (for populating the guest memory). As such
refactor the vCPU configuration to remove the use of the
GuestMemoryMmap stored on the CpuManager.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 22:41:01 +00:00
Rob Bradford
e5e5a89e65
vmm: cpu: Rename "vm_memory" parameter/member to "guest_memory"
...
This gives consistency across the file.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 22:41:01 +00:00
Sebastien Boeuf
d98f2618bd
vmm: Create restored Vm as paused
...
Thanks to the new way of restoring Vm, we can now create the Vm object
directly with the appropriate VmState rather than having to patch it at
a later time.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 10:16:44 -08:00
Sebastien Boeuf
2e01bf7f74
vmm: Provide an owned Snapshot rather than a reference
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 10:16:44 -08:00
Sebastien Boeuf
a4160c1fef
vmm: Simplify list of parameters to Vm::new()
...
No need to provide a boolean to know if the VM is being restored given
we already have this information from the Option<Snapshot>.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 10:16:44 -08:00
Sebastien Boeuf
d0c53a5357
vmm: Move Vm to the new restore design
...
Now the entire codebase has been moved to the new restore design, we can
complete the work by creating a dedicated restore() function for the Vm
object and get rid of the method restore() from the Snapshottable trait.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 10:16:44 -08:00
Rob Bradford
3888f57600
aarch64: Remove unnecessary casts (beta clippy check)
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 17:02:30 +00:00
Rob Bradford
7fd2022e8e
.github: Ensure target used for clippy tests
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 17:02:30 +00:00
Rob Bradford
1b6dd597b2
.github: Remove build testing for aarch64 with guest_debug feature
...
See: #4964
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 17:02:30 +00:00
Rob Bradford
ad817f19b5
main: Allow the use of let ahead and immediate return
...
On aarch64 there is no modification of the app struct however
refactoring to remove this would be very intrusive.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-12-01 17:02:30 +00:00
Michael Zhao
a8839c4a4e
tests: Disable live_upgrade test on AArch64
...
The `live_upgrade` test was broken when the Gic snapshot moved from `Vm`
to `DeviceManager`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-12-01 17:07:25 +01:00
Michael Zhao
b173f6f654
vmm,devices: Change Gic snapshot and restore path
...
The snapshot and restore of AArch64 Gic was done in Vm. Now it is moved
to DeviceManager.
The benefit is that the restore can be done while the Gic is created in
DeviceManager.
While the moving of state data from Vm snapshot to DeviceManager
snapshot breaks the compatability of migration from older versions.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-12-01 17:07:25 +01:00
Michael Zhao
def1d7cf86
vmm: Remove GICR typers in snapshot on AArch64
...
The GICR typers are also set in restoring the GIC. Saving them in
snapshot is not needed.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-12-01 17:07:25 +01:00
Sebastien Boeuf
e8c6d83f3f
vmm: Merge Vm::new_from_snapshot with Vm::new
...
Given the recent factorization that happened in vm.rs, we're now able to
merge Vm::new_from_snapshot with Vm::new.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 13:46:31 +01:00
Sebastien Boeuf
1c36065754
vmm: Move devices creation to Vm creation
...
This moves the devices creation out of the dedicated restore function
which will be eventually removed.
This factorizes the creation of all devices into a single location.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 13:46:31 +01:00
Sebastien Boeuf
bccfa81368
vmm: Restore clock from Vm creation (x86_64 only)
...
This allows the clock restoration to be moved out of the dedicated
restore function, which will eventually be removed.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 13:46:31 +01:00
Sebastien Boeuf
a6959a7469
vmm: Move DeviceManager to new restore design
...
Based on all the work that has already been merged, it is now possible
to fully move DeviceManager out of the previous restore model, meaning
there's no need for a dedicated restore() function to be implemented
there.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 13:46:31 +01:00
Sebastien Boeuf
4487c8376b
vmm: Move CpuManager and Vcpu to the new restore design
...
Every Vcpu is now created with the right state if there's an available
snapshot associated with it. This simplifies the restore logic.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 09:27:00 +01:00
Sebastien Boeuf
b62a40efae
virtio-devices, vmm: Always restore virtio devices in paused state
...
Following the new restore design, it is not appropriate to set every
virtio device threads into a paused state after they've been started.
This is why we remove the line of code pausing the devices only after
they've been restored, and replace it with a small patch in every virtio
device implementation. When a virtio device is created as part of a
restored VM, the associated "paused" boolean is set to true. This
ensures the corresponding thread will be directly parked when being
started, avoiding the thread to be in a different state than the one it
was on the source VM during the snapshot.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-12-01 09:27:00 +01:00
dependabot[bot]
8f1e03fcf4
build: Bump terminal_size from 0.2.2 to 0.2.3
...
Bumps [terminal_size](https://github.com/eminence/terminal-size ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/eminence/terminal-size/releases )
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.2...v0.2.3 )
---
updated-dependencies:
- dependency-name: terminal_size
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 00:08:19 +00:00
dependabot[bot]
5ee68b1ee3
build: Bump terminal_size from 0.2.2 to 0.2.3 in /fuzz
...
Bumps [terminal_size](https://github.com/eminence/terminal-size ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/eminence/terminal-size/releases )
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.2...v0.2.3 )
---
updated-dependencies:
- dependency-name: terminal_size
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-30 23:23:46 +00:00
Bo Chen
e2e02c8f69
fuzz: Add fuzzer for virtio-net
...
To synthesize the interactions between the virtio-net device and the tap
interface, the fuzzer utilizes a pair of unix domain sockets: one socket
(e.g. the dummy tap frontend) is used to construct the 'net_util::Tap'
instance for creating a virtio-net device; the other socket (e.g. the
dummy tap backend) is used in a epoll loop for handling the tx and rx
requests from the virtio-net device.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-30 12:13:14 +00:00
Bo Chen
ec94ae31ee
vmm: EpollContext: Allow to add custom epoll events for fuzzing
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-30 12:13:14 +00:00
Bo Chen
83ab5ea528
virtio-devices: net: Provide custom functions for fuzzing
...
Three functions are added:
* 'Tap::new_for_fuzzing()' a custom constructor that creates a dummy
`Tap` interface directly from `File` backed by Unix domain socket;
* 'Tap::mtu()' a custom function that returns hard-coded mtu;
* 'Net::wait_for_epoll_threads()'.
Two functions are reused with modifications to work with the dummy 'Tap'
interface:
* 'Net::new_with_tap()' is made public for fuzzing;
* 'Net::activate()' is modified to not call into 'Tap::set_offload()'
for fuzzing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-30 12:13:14 +00:00
Rob Bradford
30a7a8033e
build: Move to released versions of vhost and vhost-user-backend crates
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-30 12:12:34 +00:00
dependabot[bot]
fc43a50f34
build: Bump vfio-ioctls from ad86d84 to 3d82543
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `ad86d84` to `3d82543`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](ad86d843a2...3d82543586 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-29 23:46:48 +00:00
dependabot[bot]
105c6cfc5a
build: Bump clap from 4.0.27 to 4.0.29 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.27 to 4.0.29.
- [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/v4.0.27...v4.0.29 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-29 23:15:39 +00:00
Rob Bradford
ee5792c0bb
build: Document the project's MSRV policy
...
To me the most logical place to document the policy is right next to the
version itself.
Fixes : #4318
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-29 18:09:11 +00:00
Sebastien Boeuf
30e421d2e5
pci: Remove unused restore() implementations
...
Now that VirtioPciDevice, VfioPciDevice and VfioUserPciDevice have all
been moved to the new restore design, there's no need to keep the old
way around, therefore the restore() implementations for MsiConfig,
MsixConfig and PciConfiguration can be removed.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-29 13:46:30 +01:00
Sebastien Boeuf
90b5014a50
vmm: device_manager: Remove 'restoring' attribute
...
Given 'restoring' isn't needed anymore from the DeviceManager structure,
let's simplify it.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-29 13:46:30 +01:00
Sebastien Boeuf
cc3706afe1
pci, vmm: Move VfioPciDevice and VfioUserPciDevice to new restore design
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-29 13:46:30 +01:00
Sebastien Boeuf
1eac37bd5f
pci: msi: Move MsiConfig to the new restore design
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-29 13:46:30 +01:00
Sebastien Boeuf
d6bf1f5eb0
pci: Move VfioCommon creation to a dedicated function
...
This is some preliminatory work for moving both VfioUser and Vfio to the
new restore design.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-29 13:46:30 +01:00
Bo Chen
559faa272a
net_util: queue_pair: Avoid integer overflow
...
This integer overflow was triggered with fuzzing on the virtio-net
device. The integer overflow is from the wrong assumption that the
packets read from or written to the tap device is always larger than the
size of a virtio-net header.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-28 17:19:53 +00:00
Rob Bradford
6f8bd27cf7
build: Bulk update dependencies
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-28 16:57:49 +00:00
Yuji Hagiwara
47a7ebe434
docs: Fix a typo on the doc for tpm
...
swtpm accepts --tpmstate option
Signed-off-by: Yuji Hagiwara <yuuzi41@gmail.com >
2022-11-27 18:55:07 +00:00
dependabot[bot]
1fd5384062
build: Bump regex-syntax from 0.6.27 to 0.6.28
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.27 to 0.6.28.
- [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 )
---
updated-dependencies:
- dependency-name: regex-syntax
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-25 23:46:39 +00:00
Sebastien Boeuf
81862e8ed3
devices, vmm: Move Gpio to new restore design
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-25 17:37:29 +00:00
Sebastien Boeuf
9fbf52b998
devices, vmm: Move Pl011 to new restore design
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-25 17:37:29 +00:00
Sebastien Boeuf
0bd910e8b0
devices, vmm: Move Serial to new restore design
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-25 17:37:29 +00:00
Sebastien Boeuf
ef92e55998
devices, vmm: Move Ioapic to new restore design
...
Moving the Ioapic object to the new restore design, meaning the Ioapic
is created directly with the right state, and it shares the same
codepath as when it's created from scratch.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-25 17:18:21 +01:00
Sebastien Boeuf
9f7ccb34cd
docs: Provide documentation for creating custom image for VFIO CI
...
Extend the existing `custom-image.md` document with a new section on how
to create a custom image that contains NVIDIA drivers that are required
for our VFIO baremetal CI.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-25 13:39:25 +01:00
Sebastien Boeuf
e23f4e0783
tests: Enable VFIO integration tests
...
Re-enable the VFIO integration now the machine is back online.
The image has been updated to rely on Ubuntu 22.04 (Jammy) and it's
smaller given only the NVIDIA drivers along with the nvidia-smi tool are
installed.
The test to verify the GPU is functional has been simplified given it
only relies on nvidia-smi to validate it has been able to find the Tesla
T4 card, meaning the associated driver was loaded correctly.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-25 08:55:14 +00:00
dependabot[bot]
6a29eba69e
build: Bump regex from 1.6.0 to 1.7.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [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.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-24 23:44:40 +00:00
dependabot[bot]
98e10062e8
build: Bump clap from 4.0.26 to 4.0.27 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.26 to 4.0.27.
- [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/v4.0.26...v4.0.27 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-24 23:13:36 +00:00
Rob Bradford
c95b82d975
scripts: Build dual kvm/mshv binary (like release.yaml) for integration testing
...
This means we are testing the same binary as we use in our releases.
Fixes : #4915
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-24 17:06:56 +00:00
Rob Bradford
d83fc7f663
scripts: Make --hypervisor=mshv only affect features used by tests
...
This uncouples it from the features used for building the binary under
test allowing it to use the default build features.
This change also removes the feature control from the test scripts where
it was never used (e.g. run_integration_tests_sgx.sh)
This allows the combined binary to be used for all testing but allows
the disabling of tests known not to work under mshv.
Fixes : #4915
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-24 17:06:56 +00:00
Rob Bradford
e3a5102f85
net_util: tap: Include ioctl code in failure errors
...
This will help with debugging issues like #4917 since we can find which
ioctl causes the error.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-24 16:18:39 +00:00
Rob Bradford
ea39fcca3f
net_util: tap: Refactor TAP ioctl calls
...
Consolidate the identical code that tests the return values of the ioctl
into helper functions
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-24 16:18:39 +00:00
dependabot[bot]
7e10b236d4
build: Bump serde_json from 1.0.87 to 1.0.89 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.87 to 1.0.89.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.87...v1.0.89 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-23 23:15:07 +00:00
Sebastien Boeuf
405b4a6829
tests: Increase time for proper shutdown in test_simple_launch()
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-23 18:37:40 +00:00
Sebastien Boeuf
a50b3784fe
virtio-devices: Create a proper result type for VirtioPciDevice
...
Creating a dedicated Result type for VirtioPciDevice, associated with
the new VirtioPciDeviceError enum. This allows for a clearer handling of
the errors generated through VirtioPciDevice::new().
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-23 18:37:40 +00:00
Sebastien Boeuf
eae8043890
pci, virtio-devices: Move VirtioPciDevice to the new restore design
...
The code for restoring a VirtioPciDevice has been updated, including the
dependencies VirtioPciCommonConfig, MsixConfig and PciConfiguration.
It's important to note that both PciConfiguration and MsixConfig still
have restore() implementations because Vfio and VfioUser devices still
rely on the old way for restore.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-23 18:37:40 +00:00
Rob Bradford
8868c9c950
tests: Use Ubuntu Jammy for test_multi_cpu
...
This allows the unification of the same testing methodology with aarch64
and removes a user of the Bionic image.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-23 18:02:03 +00:00
Michael Zhao
7d16c74020
vmm: Refactor AArch64 GIC initialization process
...
In the new process, `device::Gic::new()` covers additional actions:
1. Creating `hypervisor::vGic`
2. Initializing interrupt routings
The change makes the vGic device ready in the beginning of
`DeviceManager::create_devices()`. This can unblock the GIC related
devices initialization in the `DeviceManager`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-11-23 11:49:57 +01:00
Sebastien Boeuf
86e7f07485
vmm: cpu: Create vCPUs before the DeviceManager
...
Moving the creation of the vCPUs before the DeviceManager gets created
will allow for the aarch64 vGIC to be created before the DeviceManager
as well in a follow up patch. The end goal being to adopt the same
creation sequence for both x86_64 and aarch64, and keeping in mind that
the vGIC requires every vCPU to be created.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-23 11:49:57 +01:00
Sebastien Boeuf
578780ed0c
vmm: cpu: Split vCPU creation
...
Split the vCPU creation into two distincts parts. On the one hand we
create the actual Vcpu object with the creation of the hypervisor::Vcpu.
And on the other hand, we configure the existing Vcpu, setting registers
to proper values (such as setting the entry point).
This will allow for further work to move the creation earlier in the
boot, so that the hypervisor::Vcpu will be already created when the
DeviceManager gets created.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-11-23 11:49:57 +01:00
Sebastien Boeuf
ec01062ada
vmm: Switch order between DeviceManager and CpuManager creation
...
The CpuManager is now created before the DeviceManager. This is required
as preliminary work for creating the vCPUs before the DeviceManager,
which is required to ensure both x86_64 and aarch64 follow the same
sequence.
It's important to note the optimization for faster PIO accesses on the
PCI config space had to be removed given the VmOps was required by the
CpuManager and by the Vcpu by extension. But given the PciConfigIo is
created as part of the DeviceManager, there was no proper way of moving
things around so that we could provide PciConfigIo early enough.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-11-23 11:49:57 +01:00
dependabot[bot]
d828fcd4ed
build: Bump cc from 1.0.76 to 1.0.77
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.76 to 1.0.77.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.76...1.0.77 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-23 00:21:21 +00:00
dependabot[bot]
d330f5389e
build: Bump cc from 1.0.73 to 1.0.77 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.73 to 1.0.77.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.73...1.0.77 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-22 23:36:54 +00:00
Rob Bradford
e37ec26ccf
vmm: Remove PCI PIO optimisation
...
This optimisation provided some peformance improvement when measured by
perf however when considered in terms of boot time peformance this
optimisation doesn't have any impact measurable using our
peformance-metrics tooling.
Removing this optimisation helps simplify the VMM internals as it allows
the reordering of the VM creation process permitting refactoring of the
restore code path.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-22 19:47:53 +00:00
Bo Chen
4d9a2b17a7
net_util: queue_pair: Avoid panic and handle error properly
...
This panic was triggered with fuzzing on the virtio-net device. This
commits handles the error explicitly to avoid the panic, which also
makes the fuzzer happy (as panic is treated as bugs).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-22 09:31:50 +00:00
Rob Bradford
7c3110e6d5
arch: x86_64: Use host cpuid information for L2 cache for older KVM
...
If the KVM version is too old (pre Linux 5.7) then fetch the CPUID
information from the host and use that in the guest. We prefer the KVM
version over the host version as that would use the CPUID for the
running CPU vs the CPU that runs this code which might be different due
to a hybrid topology.
Fixes : #4918
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-22 09:32:30 +01:00
dependabot[bot]
1c25d71127
build: Bump os_str_bytes from 6.4.0 to 6.4.1 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.4.0...6.4.1 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-22 00:47:55 +00:00
Rob Bradford
8724ac1fe6
scripts: Remove stripping from testing scripts
...
The binary stripping is now done by the toolchain for release builds.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-21 07:54:39 -08:00
Henry Wang
1ff0191b30
github,Cargo.toml: Strip release binaries using toolchain
...
From Rust 1.59, the cargo command is now able to strip a binary [1].
This can be enabled in Cargo.toml by adding a `strip = "true"` to
the `[profile.release]` section.
Adding such binary stripping support in Cargo.toml of the project,
also change the stripping process in the release workflow to the one
using toolchain, so that the AArch64 release binaries can also
be stripped.
Fixes: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/4916
[1] https://doc.rust-lang.org/beta/cargo/reference/profiles.html#strip
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
2022-11-21 13:39:29 +00:00
dependabot[bot]
464ead57ec
build: Bump cc from 1.0.73 to 1.0.76
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.73 to 1.0.76.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.73...1.0.76 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-19 00:27:00 +00:00
dependabot[bot]
cee2d6627d
build: Bump clap from 4.0.18 to 4.0.26 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.18 to 4.0.26.
- [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/v4.0.18...v4.0.26 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-18 23:44:01 +00:00
Muminul Islam
bfeab9f69f
.github: do release build with both KVM and MSHV enabled
...
Fixes : #4678
Currently release build is done on kvm feature only,
that makes live upgrade test on MSHV failing since
it does not find /dev/kvm. As Cloud-Hypervisor
supports both kvm and mshv in a single binary we should
make the release build with both KVM/MSHV feature enabled.
That way live upgrade test does not fail on MSHV.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-18 19:15:25 +00:00
Rob Bradford
3504947f0e
Jenkinsfile: Re-enable SGX CI testing
...
With the modernised testing of SGX the testing can be re-enabled on the
CI.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-18 18:31:55 +00:00
Rob Bradford
d2442d39a8
tests: Update version of jammy image in use
...
This version has the cpuid binary installed which can be used for SGX
integration testing.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-18 18:31:55 +00:00
Rob Bradford
1e87a409c7
docs: Add cpuid to custom disk image instructions
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-18 18:31:55 +00:00
Rob Bradford
1a2185ea96
tests: Modernise SGX testing
...
The jammy disk image has a new enough kernel to support SGX and if we
rely on just the CPUid information (which is sufficient) then we can use
the regular jammy test image for testing.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-18 18:31:55 +00:00
Rob Bradford
8cea5db955
Jenkinsfile: Re-enable rate limiter CI
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-18 07:48:07 -08:00
Wei Liu
3ca6c29e28
github: do not allow undocumented unsafe blocks
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
d05586f520
vmm: modify or provide safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
d5f294b326
main: add safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
145df4b689
tests: allow undocumented unsafe blocks in integration test
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
c45d24df16
virtio-devices: modify or provide safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
f110029acf
block_util: modify or provide safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
8a7f4b47cb
net_util: modify or provide safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
c5bd8cabc4
pci: add safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
d1b9d9d7f7
test_infra: allow undocumented unsafe blocks
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
9806d83e7c
devices: modify safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
f16b57716d
arch: modify or add safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
3edf12accf
block_util: modify and add safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
7f2723d9c6
hypervisor: x86: add two safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
6c89c541da
hypervisor: kvm: add two safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
d272113d0c
hypervisor: mshv: modify two safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
93883681be
tracer: add safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
ca02a69fdf
qcow: add a safety comment
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
c4ffdad4bc
vfio_user: modify the style of safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
2a5c248f32
vm-migration: add two safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
926d149881
net_gen: add a safety comment
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
7f4b5dfae5
tpm: change the style of safety comments
...
To satisfy clippy's check.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
58b7057c7f
rate_limiter: add a safety comment
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
b1efa5b26b
event_monitor: add safety comments
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
b9ad3eda27
vhdx: add some safety comments
...
Also add some assertions to some places along side the safety comments.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
1d9050dbe3
acpi_tables: add a safety comment for the write function
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
3d08a0fba9
vm-allocator: fix a clippy warning on missing safety comments
...
There is already a comment but Clippy isn't happy with its form.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
Wei Liu
d274fe9cb8
vmm: fix tdx check
...
The field has been moved in 3793ffe888 .
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-18 12:50:01 +00:00
dependabot[bot]
cd24f470f4
build: Bump getrandom from 0.2.7 to 0.2.8
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-17 23:46:30 +00:00
dependabot[bot]
2e22f950b7
build: Bump serde_with from 2.0.1 to 2.1.0 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.1...v2.1.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-17 23:14:56 +00:00
Rob Bradford
66460765a3
build: Release v28.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-17 15:40:14 +00:00
Rob Bradford
b748b8987d
Jenkinsfile: Re-enable metrics CI
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-17 15:34:12 +00:00
Wei Liu
c9483fb080
tracer: avoid unnecessary allocations
...
Allocation is only required when creating a new entry in the hashmap.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-17 12:52:27 +00:00
Michael Zhao
f52cd3bb85
Revert "Jenkins: Temporarily turn off AArch64 CI"
...
This reverts commit 345e65c9c2 .
The AArch64 server maintenance is done. Now we can enable the CI again.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-11-17 15:26:27 +08:00
dependabot[bot]
57cd12fabc
build: Bump remain from 0.2.4 to 0.2.5
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.4...0.2.5 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 23:48:46 +00:00
dependabot[bot]
869c649e81
build: Bump os_str_bytes from 6.3.1 to 6.4.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.3.1 to 6.4.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.3.1...6.4.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 23:24:01 +00:00
Rob Bradford
a9e30c88df
README: Update version of Rust Hypervisor Firmware
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-16 08:11:22 -08:00
dependabot[bot]
1666375a31
build: Bump vfio-ioctls from bf7c9b9 to ad86d84
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `bf7c9b9` to `ad86d84`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](bf7c9b997b...ad86d843a2 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 11:26:45 +00:00
dependabot[bot]
9a0be7db3a
build: Bump uuid from 1.2.1 to 1.2.2 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.1...1.2.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-15 23:17:26 +00:00
Praveen K Paladugu
324c5deb37
docs: Add doc for using and testing tpm device
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
09e79a5e9b
vmm: Add tpm device to mmio bus
...
Add tpm device to mmio bus if appropriate cmdline arguments were
passed.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
af261f231c
vmm: Add required acpi entries for vtpm device
...
Add an TPM2 entry to DSDT ACPI table. Add a TPM2 table to guest's ACPI.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
7122e2989c
vmm: Add tpm parameter
...
Add an optional --tpm parameter that takes UNIX Domain
Socket from swtpm.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
d0b253d15f
devices: Add tpm device
...
This device emulates a tpm device in cloud-hypervisor. Read and write support
to miminal set of control registers is supported.
Non-control commands will be processed as reads and write to
CRB_DATA_BUFFER. Reads and Writes to this data buffer are forwarded to
swtpm via the configured data_fd.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
59baa29deb
arch: Add TPM Address ranges to layouts
...
Add TPM's CRB Interface specific address ranges to layouts
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
19fdf8bc79
tpm: Add emulator module
...
Emulator module adds methods required to communicate with swtpm
over Ctrl and Data channels.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
58b902d036
tpm: Add socket module
...
Add SocketDev struct. Methods in SocketDev will be used to read & write
to Ctrl channel created by swtpm.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
e3213c8a79
tpm: Add library module
...
Add structures and related methods to process Ctrl requests and responses
from swtpm to tpm library.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Wei Liu
2e2ce47271
hypervisor: do not get and set MSR_IA32_TSC for MSHV
...
Setting that MSR causes the reference TSC page to be disabled.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-15 10:19:57 +00:00
Rob Bradford
d3a8332282
tests: Remove test_reboot
...
There is no need for this test any longer as we have plenty of other
tests that reboot the VM.
Further this test used unmodified bionic image, which not only will be
EOLed soon but also took a long time to shutdown as it still had snapd
installed.
Fixes : #4849
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-15 09:30:16 +00:00
dependabot[bot]
c64004b9a9
build: Bump mshv-ioctls from ac9c92f to 1a9ca01
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `ac9c92f` to `1a9ca01`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](ac9c92f9b3...1a9ca01801 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 23:45:35 +00:00
Rob Bradford
149e424b6e
virtio-devices: block: Return error to driver on writes if read-only
...
TEST=Boot `--disk readonly=on` along with a guest that tries to write
(unmodified hypervisor-fw) and observe that the virtio device thread no
longer panics.
Fixes : #4888
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-14 15:28:30 +00:00
Wei Liu
b07d471d4f
virtio-devices: show the failed block request to help debugging
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-14 14:19:17 +00:00
Michael Zhao
345e65c9c2
Jenkins: Temporarily turn off AArch64 CI
...
Temporarily turn off AArch64 integration test in Jenkins for server
maintenance.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-11-14 08:34:47 +00:00
dependabot[bot]
f93aa42319
build: Bump once_cell from 1.15.0 to 1.16.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-12 08:30:12 +00:00
dependabot[bot]
fa4bf92feb
build: Bump io-uring from 0.5.8 to 0.5.9 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-12 08:30:01 +00:00
Rob Bradford
f30d460fa3
virtio-devices: seccomp: Move mprotect() to virtio common rules
...
It's perfectly reasonable to expect if that some virtio threads trigger
libc behaviour that needs mprotect() that all virtio threads would do
the same.
Fixes : #4874
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-12 08:29:47 +00:00
Rob Bradford
2c94773bdc
docs: seccomp: Enhance strace command to print thread name
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-11 16:47:24 +00:00
dependabot[bot]
9f1d2d34e8
build: Bump darling from 0.14.1 to 0.14.2
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.1...v0.14.2 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-11 08:15:25 +00:00
Rob Bradford
57508a4b1c
virtio-net: net: Wait for threads to exit on Drop
...
It is required to close all file descriptors pointing to an opened TAP
device prior to reopening the TAP device; otherwise it will return
-EBUSY as the device can only be opened once (excluding MQ use cases.)
When rebooting the VM the virtio-net threads would still be running and
so the TAP file descriptor may not have been closed. To ensure that the
TAP FD is closed wait for all the epoll threads to exit after receiving the
KILL_EVENT.
Fixes : #4868
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-10 07:46:16 -08:00
dependabot[bot]
012f2572d5
build: Bump terminal_size from 0.2.1 to 0.2.2
...
Bumps [terminal_size](https://github.com/eminence/terminal-size ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/eminence/terminal-size/releases )
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.1...v0.2.2 )
---
updated-dependencies:
- dependency-name: terminal_size
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-10 09:39:09 +00:00
dependabot[bot]
b9dbe3a2f7
build: Bump rustix from 0.35.12 to 0.35.13 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.12 to 0.35.13.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.12...v0.35.13 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-09 23:43:39 +00:00
Rob Bradford
6230929d51
openapi: Add thp option to MemoryConfig
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
Rob Bradford
04d034a0bc
docs: Update memory.md for THP
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
Rob Bradford
f603afc46e
vmm: Make Transparent Huge Pages controllable (default on)
...
Add MemoryConfig::thp and `--memory thp=on|off` to allow control of
Transparent Huge Pages.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
Rob Bradford
b68add2d0d
vmm: Enable THP when using anonymous memory
...
If the memory is not backed by a file then it is possible to enable
Transparent Huge Pages on the memory and take advantage of the benefits
of huge pages without requiring the specific allocation of an appropriate
number of huge pages.
TEST=Boot and see that in /proc/`pidof cloud-hypervisor`/smaps that the
region is now THPeligible (and that also pages are being used.)
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
dependabot[bot]
0f44db5da4
build: Bump openssl-src from 111.23.0+1.1.1r to 111.24.0+1.1.1s
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.23.0+1.1.1r to 111.24.0+1.1.1s.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-08 23:44:15 +00:00
dependabot[bot]
a7dccf94cf
build: Bump terminal_size from 0.2.1 to 0.2.2 in /fuzz
...
Bumps [terminal_size](https://github.com/eminence/terminal-size ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/eminence/terminal-size/releases )
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.1...v0.2.2 )
---
updated-dependencies:
- dependency-name: terminal_size
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-08 23:36:26 +00:00
Jianyong Wu
0e6e539d9b
AArch64/fdt: fix PMU irqflag calculation
...
Currently, CPU mask involved into PMU irqflag caculation which is used
for Gicv2. It limits the CPU number up to 31. For Gicv3+, CPU mask is no
longer needed. More info see [1].
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
[1] https://lore.kernel.org/all/165668798833.3744902.12084627427900181326.b4-ty@kernel.org/t/
2022-11-08 11:24:11 +00:00
dependabot[bot]
1cb1cff882
build: Bump env_logger from 0.9.1 to 0.9.3
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.9.1...v0.9.3 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-07 23:55:26 +00:00
dependabot[bot]
fefbc356a2
build: Bump once_cell from 1.15.0 to 1.16.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-07 23:52:05 +00:00
Muminul Islam
8b37448d28
tests: Disable test_snapshot_restore_hotplug_virtiomem for MSHV
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-04 12:24:33 -07:00
Muminul Islam
92d083f593
tests: Add a basic test for snapshot/retsore
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-04 12:24:33 -07:00
Muminul Islam
58d8795b53
tests: Make a wrapper function for snapshot/restore
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-04 12:24:33 -07:00
Bo Chen
b37e2ed378
virtio-devices: mem: Handle integer overflow properly
...
An integer overflow from our virtio-mem device can be triggered
from (misbehaved) guest driver with malicious requests. This patch
handles this integer overflow explicitly and treats it as an invalid
request.
Note: this bug was detected by our virtio-mem fuzzer through 'oss-fuzz'.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-04 09:33:21 +00:00
Bo Chen
ef8fb9bd25
fuzz: Add fuzzer for virtio-console
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-03 09:10:41 -07:00
Bo Chen
cfafc85b9c
virtio-devices: Custom 'EpollHelper::run_with_timeout' for fuzz
...
To support all virtio-devices, this patch replaces the customized
EpollHelper::run` with customized `EpollHelper::run_with_timeout` for
fuzzing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-03 09:10:41 -07:00
Bo Chen
683491a955
virtio-devices: console: Provide 'wait_for_epoll_threads'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-03 09:10:41 -07:00
dependabot[bot]
2bbb08b2a4
build: Bump io-uring from 0.5.7 to 0.5.8
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-02 23:56:43 +00:00
dependabot[bot]
b77eb63688
build: Bump darling from 0.14.1 to 0.14.2 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.1...v0.14.2 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-02 23:51:00 +00:00
Rob Bradford
6722c303b0
docs: Fix broken link in windows.md
...
Fixes : #4840
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 11:40:44 +00:00
Rob Bradford
6e0bd73c90
build: Bump linux-loader from 0.6.0 to 0.7.0
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 11:02:00 +00:00
Rob Bradford
103fe1f48b
tests: Skip building kernel if already present
...
When running the glibc and musl integration tests on the CI after each
other skip building the kernel a second time.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 09:42:07 +00:00
Rob Bradford
f4e1b72477
build: Consolidate integration testing to reused built assets
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 09:42:07 +00:00
Rob Bradford
65628e8d94
build: Run linter over Jenkinsfile
...
This has resulted in the content being indented with spaces rather tabs
per Groovy coding style.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 09:42:07 +00:00
dependabot[bot]
851de1e0b3
build: Bump io-uring from 0.5.7 to 0.5.8 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-02 09:21:17 +00:00
Bo Chen
a9ec0f33c0
misc: Fix clippy issues
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-02 09:41:43 +01:00
dependabot[bot]
9266ea4995
build: Bump clap from 4.0.17 to 4.0.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.17 to 4.0.18.
- [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/v4.0.17...v4.0.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-01 00:41:51 +00:00
dependabot[bot]
6b8070de95
build: Bump io-lifetimes from 0.7.3 to 0.7.4
...
Bumps [io-lifetimes](https://github.com/sunfishcode/io-lifetimes ) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/sunfishcode/io-lifetimes/releases )
- [Commits](https://github.com/sunfishcode/io-lifetimes/compare/v0.7.3...v0.7.4 )
---
updated-dependencies:
- dependency-name: io-lifetimes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 23:48:55 +00:00
dependabot[bot]
a5712641d2
build: Bump remain from 0.2.4 to 0.2.5 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.4...0.2.5 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 23:46:39 +00:00
Rob Bradford
aad4dc3b6b
docs: Update memory.md to indicated that hugepages overrides shared
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
f4495de143
vmm: Improve handling of shared memory backing
...
As huge pages are always MAP_SHARED then where the shared memory would
be checked (for vhost-user and local migration) we can also check
instead for huge pages.
The checking is also extended to cover the memory zones based
configuration as well.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
99d9a3d299
vmm: memory_manager: Avoid MAP_PRIVATE CoW with VFIO for hugepages too
...
We can't use MAP_ANONYMOUS and still have huge pages so MAP_SHARED is
effectively required when using huge pages.
Unfortunately it is not as simple as always forcing MAP_SHARED if
hugepages is on as this might be inappropriate in the backing file case
hence why there is additional complexity of assigning to mmap_flags on
each case and the MAP_SHARED is only turned on for the anonymous file
huge page case as well as anonymous shared file case.
See: #4805
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
df7c728399
vmm: memory_manager: Only file back memory when required
...
If we do not need an anonymous file backing the memory then do not
create one.
As a side effect this addresses an issue with CoW (mmap with MAP_PRIVATE
but no MAP_ANONYMOUS) when the memory is pinned for VFIO.
Fixes : #4805
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
1e5a4e8d77
vmm: memory_manager: Split filesystem backed and anonymous RAM creation
...
This simplifies the code somewhat making the code paths more readable.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
ff3fb91ba6
vmm: Refactor creation of the FileOffset for GuestRegionMmap::new()
...
Create this earlier so that it is possible to pass a None in for
anonymous mappings.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
86c19816c6
block_util: Probe for used io_uring opcodes
...
The probing logic wasn't updated to reflect the actual opcodes in use
for io_uring which are vectored read/writes not the unvectored versions.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 08:53:54 +01:00
dependabot[bot]
ad1cb130a5
build: Bump openssl-sys from 0.9.76 to 0.9.77
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.76 to 0.9.77.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.76...openssl-sys-v0.9.77 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-28 23:45:06 +00:00
dependabot[bot]
0c75e7f7b2
build: Bump os_str_bytes from 6.3.0 to 6.3.1 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.3.0...6.3.1 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-28 23:40:41 +00:00
Jinrong Liang
cb171d4a23
device_manager: Avoid checking io_uring support when it's not needed
...
After testing, io_uring_is_supported() causes about 38ms of
overhead when creating virtio-blk. By modifying the position
of io_uring_is_supported(), the overhead of creating virtio-blk
is reduced to less than 1ms when we close io_uring.
Signed-off-by: Jinrong Liang <cloudliang@tencent.com >
2022-10-27 22:21:51 -07:00
dependabot[bot]
bc310bb173
build: Bump libc from 0.2.135 to 0.2.137
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.135 to 0.2.137.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.135...0.2.137 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 23:57:43 +00:00
dependabot[bot]
76f4641004
build: Bump arbitrary from 1.1.7 to 1.2.0 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.7 to 1.2.0.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.7...v1.2.0 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 23:53:53 +00:00
dependabot[bot]
dcb12c05a7
build: Bump pkg-config from 0.3.25 to 0.3.26
...
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs ) from 0.3.25 to 0.3.26.
- [Release notes](https://github.com/rust-lang/pkg-config-rs/releases )
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.25...0.3.26 )
---
updated-dependencies:
- dependency-name: pkg-config
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 07:57:53 +00:00
Bo Chen
078c0408b3
virtio-devices: console: Remove obsoleted 'INPUT_EVENT'
...
Since the processing of the console inputs was moved from the VMM thread
to the virtio-console thread (#3061 ), we have been using the 'FILE_EVENT'
to handle input from stdin/pty/file, which made 'INPUT_EVENT' obsoleted.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-27 09:27:12 +02:00
Wei Liu
b99b2bc990
memory_manager: use MFD_CLOEXEC flag when creating memory fd
...
Until there is a need for sharing the memory fd with a child process, we
should err on the safe side to close it on exec.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-10-27 09:20:08 +02:00
dependabot[bot]
0cd6d96874
build: Bump getrandom from 0.2.7 to 0.2.8 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-26 23:53:05 +00:00
Bo Chen
a5d0ff7039
virtio-devices: console: Propagate GuestMemory errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-26 09:39:30 +02:00
Bo Chen
da1ab77848
virtio-devices: console: Report error instead of panic
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-26 09:39:30 +02:00
dependabot[bot]
989d3d3960
build: Bump syn from 1.0.102 to 1.0.103
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.102...1.0.103 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 23:45:43 +00:00
dependabot[bot]
1559b7b684
build: Bump rustix from 0.35.11 to 0.35.12 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.11 to 0.35.12.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.11...v0.35.12 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 23:43:02 +00:00
dependabot[bot]
e96474a5bd
build: Bump rustix from 0.35.11 to 0.35.12
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.11 to 0.35.12.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.11...v0.35.12 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 23:48:30 +00:00
dependabot[bot]
2a36a18be3
build: Bump syn from 1.0.102 to 1.0.103 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.102...1.0.103 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 23:47:19 +00:00
zbleness
0e386581e0
README.md: Add missing backslash to example code
...
Signed-off-by: zbleness <77726616+zbleness@users.noreply.github.com >
2022-10-24 16:33:14 +02:00
Sebastien Boeuf
1f0e5eb66a
vmm: virtio-devices: Restore every VirtioDevice upon creation
...
Following the new design proposal to improve the restore codepath when
migrating a VM, all virtio devices are supplied with an optional state
they can use to restore from. The restore() implementation every device
was providing has been removed in order to prevent from going through
the restoration twice.
Here is the list of devices now following the new restore design:
- Block (virtio-block)
- Net (virtio-net)
- Rng (virtio-rng)
- Fs (vhost-user-fs)
- Blk (vhost-user-block)
- Net (vhost-user-net)
- Pmem (virtio-pmem)
- Vsock (virtio-vsock)
- Mem (virtio-mem)
- Balloon (virtio-balloon)
- Watchdog (virtio-watchdog)
- Vdpa (vDPA)
- Console (virtio-console)
- Iommu (virtio-iommu)
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-24 14:17:08 +02:00
Sebastien Boeuf
157db33d65
vmm: Refactor hypervisor::Vm creation on restore
...
This prevents from leaking implementation details to lib.rs, and rather
keep them in vm.rs.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-24 14:17:08 +02:00
dependabot[bot]
40df6c3787
build: Bump serde from 1.0.145 to 1.0.147
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:41:05 +00:00
dependabot[bot]
b425c5f57c
build: Bump serde from 1.0.145 to 1.0.147 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-21 23:40:25 +00:00
Fabiano Fidêncio
b4e3942708
api: Fix vm.add-device argument type
...
The add_device() function, from the device manager code, takes a
DeviceConfig as a parameter, instead of a VmAddDevice.
The change was originally done as part of 34412c9b41 and it didn't
break Kata Containers because the VmAddDevice and DeviceConfig structs
share most of their fields, besides the optional for serialization
`pci_segment`, which is not used by the client yet.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-21 11:09:55 -07:00
Bo Chen
802f489e4d
fuzz: Add fuzzer for virtio-iommu
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-21 14:21:42 +01:00
Bo Chen
fdecd94b20
virtio-devices: iommu: Provide 'wait_for_epoll_threads()'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-21 14:21:42 +01:00
Bo Chen
2af2cc539f
misc: Unify error message punctuation
...
Considering error messages will be mostly nested, ensuring no
punctuation at the end will make the error log more readable.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-21 12:19:07 +02:00
dependabot[bot]
7d71319210
build: Bump anyhow from 1.0.65 to 1.0.66 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.65 to 1.0.66.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.66 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-21 00:39:56 +00:00
dependabot[bot]
e710e21744
build: Bump anyhow from 1.0.65 to 1.0.66
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.65 to 1.0.66.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.66 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-21 00:04:03 +00:00
Bo Chen
9c658e21a5
virtio-devices: iommu: Remove trivial handling of 'EVENT_Q_EVENT'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 10:32:23 -07:00
Bo Chen
38620eaea8
virtio-devices: net: Avoid using vector and direct indexing
...
With known number of queues and queue events, we can make each of them
more explicit and avoid using vector/direct indexing, which is cleaner
and slightly more efficient.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:36 -07:00
Bo Chen
a388d76228
virtio-devices: console: Avoid using vector and direct indexing
...
The the number of queues and associated events is known and fixed. We
can define and use each of them explicitly and avoid using vector (and
hence direct indexing), which is cleaner and slightly more efficient.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:36 -07:00
Bo Chen
710a860e9b
virtio-devices: iommu: Avoid using vector and direct indexing
...
The the number of queues and associated events is known and fixed. We
can define and use each of them explicitly and avoid using vector (and
hence direct indexing), which is cleaner and slightly more efficient.
Also, this refactoring makes it clearer that we are not handling "event
queue" events (as "_event_queue" is not being used intentionally).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:36 -07:00
Bo Chen
83f22ac779
virtio-devices: iommu: Specify minimum number of queues to avoid OOB
...
In this way, the virtio-iommu code can properly report an error when
a wrong number of queues is provided, instead of triggering an
out-of-bound error.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:00 -07:00
dependabot[bot]
71b4aad3f1
build: Bump serde_json from 1.0.86 to 1.0.87 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.86...v1.0.87 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-20 00:19:44 +00:00
dependabot[bot]
d7afa3c47e
build: Bump serde_json from 1.0.86 to 1.0.87
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.86...v1.0.87 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-19 23:44:35 +00:00
Rob Bradford
073374e2b0
README.md: Fix path to executable
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-19 15:11:18 +01:00
dependabot[bot]
d4f40487e3
build: Bump clap from 4.0.15 to 4.0.17 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.17.
- [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/v4.0.15...v4.0.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-19 00:23:48 +00:00
dependabot[bot]
f63cf2ebc0
build: Bump clap from 4.0.15 to 4.0.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.17.
- [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/v4.0.15...v4.0.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-18 23:47:28 +00:00
dependabot[bot]
46031cb211
build: Bump libfuzzer-sys from 0.4.4 to 0.4.5 in /fuzz
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/rust-fuzz/libfuzzer/releases )
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.4...0.4.5 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-18 23:46:04 +00:00
Sebastien Boeuf
c52ccf3992
vmm: migration: Create destination VM right before to restore it
...
This is preliminary work to ensure a migrated VM is created right before
it is restored. This will be useful when moving to a design where the VM
is both created and restored simultaneously from the Snapshot.
In details, that means the MemoryManager is the object that must be
created upon receiving the config from the source VM, so that memory
content can be later received and filled into the GuestMemory.
Only after these steps happened, the snapshot is received from the
source VM, and the actual Vm object can be created from both the
snapshot and the MemoryManager previously created.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-18 17:14:29 +02:00
Bo Chen
7b31871a36
fuzz: mem: Avoid using hugepages
...
The kernel will trigger a SIGBUS upon hugetlb page faults when there is
no huge pages available. We neither have a way to ensure enough huge
pages available on the host system, nor have a way to gracefully report
the lack of huge pages in advance from Cloud Hypervisor. For these
reasons, we have to avoid using huge pages from the virtio-mem fuzzer to
avoid SIGBUS errors.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-18 09:09:35 +01:00
dependabot[bot]
1b58c63734
build: Bump proc-macro2 from 1.0.46 to 1.0.47
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.46...1.0.47 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-18 00:18:37 +00:00
dependabot[bot]
d1435a44af
build: Bump proc-macro2 from 1.0.46 to 1.0.47 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.46...1.0.47 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-17 23:42:59 +00:00
Rob Bradford
a75d71f2c8
vmm: Reduce logging severity for unknown MMIO/PIO device accesses
...
These look alarming if you are booting with the a distro kernel which is
now a recommended approach.
See: #4786
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-17 10:08:36 -07:00
Bo Chen
96209e7a16
vmm: Remove the explicit call to 'Snapshottable:restore()'
...
The restore path of MemoryManager is handled specially without
implementing a `Snapshottable:restore()`. Removing the explicit call to
it along the migration code path to avoid confusions.
See: #4783
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-17 10:07:44 -07:00
Jinank Jain
7a68689794
hypervisor: Fix a typo in error message
...
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-10-16 09:33:08 +00:00
Bo Chen
6e6b519a74
Revert "tests: Temporarily disable test_live_{migration,upgrade}_watchdog{_local}"
...
This reverts commit 87fb9cedc9 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 13:42:03 +01:00
Bo Chen
958ef69295
tests: Rely on wtmp (the login records) to count reboot times
...
The systemd journal has a known issue of generating large size logs[1],
which makes it unreliable as a source for retrieving system
information, such as for counting reboot times. This is particularly
problematic on disk-constrained systems, like the VMs we launched for
our integration tests, where the disk size is normally 2GB. By default,
the systemd journal has a size limit of 10% of the size of the
underlying file system (e.g. around 200MB for the VMs of our integration
tests), which would remove archived journal files on demand.
A better alternative to count reboot times is based on information from
`wtmp` (e.g. the login records) which is much more concise and can be
accessed via the `last` command.
[1] https://github.com/systemd/systemd/issues/5285
Fixes : #4749
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 13:42:03 +01:00
Rob Bradford
ffc222b26e
docs: Modernise README
...
Refresh our README in a consistent style and update it to reflect:
* A recommendation to use binaries
* Clarify our relationship with other Rust based VMMs/Rust-VMM project
* Ensure instructions result in a usable image (cloud-init)
* Simplify script instructions
* Move compilation details elsewhere
* Add Fedora 36 image details
* Point to CLOUDHV as well as Rust Hypervisor Firmware
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-14 12:04:06 +01:00
Bo Chen
5b706422e8
virtio-devices: iommu: Propagate errors of processing request queue
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 11:28:31 +01:00
Bo Chen
84105992b7
virtio-devices: iommu: Switch to use 'thiserror'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 11:28:31 +01:00
Bo Chen
0235ed3388
virtio-devices: mem: Report error instead of panic
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 11:28:31 +01:00
dependabot[bot]
58066e2da4
build: Bump clap from 4.0.14 to 4.0.15
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.14 to 4.0.15.
- [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/v4.0.14...v4.0.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-14 00:12:55 +00:00
dependabot[bot]
62d6553714
build: Bump clap from 4.0.14 to 4.0.15 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.14 to 4.0.15.
- [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/v4.0.14...v4.0.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-13 23:40:57 +00:00
lv.mengzhao
2a45e44bda
qcow: Fix the calculation of the number of clusters for L1 table
...
In function create_for_size(), when calculating the number
of clusters for the L1 table, it incorrectly divides the total number of
entries in the L1 table by the cluster size. In fact, it should be
divided by the number of entries/addresses that can fit into a cluster.
Signed-off-by: lv.mengzhao <lv.mengzhao@zte.com.cn >
2022-10-13 13:43:08 +01:00
Sebastien Boeuf
099cdd2af8
virtio-devices, vmm: vdpa: Implement live migration support
...
Vdpa now implements the Migratable trait, which allows the device to be
added to the DeviceTree and therefore allows live migrating any vDPA
device that supports being suspended.
Given a vDPA device can't be resumed from a suspended state without
having to reset everything, we don't support pause/resume for a vDPA
device, as well as snapshot/restore (which requires resume to be
supported).
In order for the migration to work locally, reusing the same device on
the same host machine, the vhost-vdpa handler is dropped after the
snapshot has been performed, which allows the destination VM to open the
device without any conflict about the device being busy.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
340fd6571a
virtio-devices: vdpa: Make vhost-vdpa handler optional
...
In order to anticipate for migration support, we need to be able to
create a Vdpa object without VhostKernVdpa object associated with it.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
02f951a9c3
virtio-devices: vdpa: Simplify vring enabling
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
22be5f9d0f
vmm: Extend list of authorized ioctls for vDPA
...
Adding VHOST_VDPA_GET_CONFIG_SIZE and VHOST_VDPA_SUSPEND to the list of
authorized ioctls for the vmm thread.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
a9ccb20e5a
vm-migration: Add StartMigration type to MigratableError
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
2b150ac2ea
pci, virtio-devices: Restore proper BAR type
...
When restoring a VM, the BAR type can be found directly from the
snapshot resources. It is more reliable than the previous method which
was using self.use_64bit_bar from VirtioPciDevice because at the time
the BARs are allocated, the VirtioDevice hasn't been restored yet,
meaning the way to determine the value of use_64bit_bar is wrong for a
device like vDPA. At this time, the device type is not known and relying
on the stored resources is the only reliable way.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
204bf2e3f5
deps: Rely on latest rust-vmm/vhost version
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
dependabot[bot]
2a40fe5541
build: Bump clap from 4.0.13 to 4.0.14
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.13 to 4.0.14.
- [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/v4.0.13...v4.0.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-13 00:12:47 +00:00
dependabot[bot]
7ae4e2b8fe
build: Bump clap from 4.0.13 to 4.0.14 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.13 to 4.0.14.
- [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/v4.0.13...v4.0.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 23:39:52 +00:00
Rob Bradford
f17f4079b4
test_data: Use bash TCP support instead of netcat for boot check
...
This means that the guest image does not need to have netcat installed
making it easier to use unmodified images.
See https://www.gnu.org/software/bash/manual/html_node/Redirections.html
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-12 23:04:42 +01:00
Bo Chen
342851c88c
fuzz: Add fuzzer for virtio-mem
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-12 16:09:27 +01:00
Bo Chen
37c3b0429a
vmm: Make MemoryManager::create_ram_region() public
...
So that it can be reused externally, such as for fuzzing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-12 16:09:27 +01:00
dependabot[bot]
af14044fb8
build: Bump zerocopy-derive from 0.3.1 to 0.3.2
...
Bumps [zerocopy-derive](https://github.com/google/zerocopy ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Commits](https://github.com/google/zerocopy/commits )
---
updated-dependencies:
- dependency-name: zerocopy-derive
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 09:57:50 +00:00
dependabot[bot]
fa39d1e9b9
build: Bump clap from 4.0.12 to 4.0.13
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.12 to 4.0.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.12...v4.0.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 09:22:18 +00:00
dependabot[bot]
00714dc54a
build: Bump openssl-src from 111.22.0+1.1.1q to 111.23.0+1.1.1r
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.22.0+1.1.1q to 111.23.0+1.1.1r.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 09:18:08 +01:00
Rob Bradford
87fb9cedc9
tests: Temporarily disable test_live_{migration,upgrade}_watchdog{_local}
...
This test has been identified as flaky and is creating CI churn.
See: #4749
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-12 09:17:39 +01:00
dependabot[bot]
ce2928d842
build: Bump clap from 4.0.12 to 4.0.13 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.12 to 4.0.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.12...v4.0.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 23:45:11 +00:00
Anatol Belski
a18b08c682
seccomp: mshv: Allow create partition ioctl
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2022-10-11 09:05:24 +01:00
dependabot[bot]
43935c3b95
build: Bump uuid from 1.1.2 to 1.2.1
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.2 to 1.2.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.2...1.2.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 03:12:14 +00:00
dependabot[bot]
c3c550c454
build: Bump unicode-ident from 1.0.4 to 1.0.5
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 02:38:53 +00:00
dependabot[bot]
7da632def6
build: Bump unicode-ident from 1.0.4 to 1.0.5 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:44:58 +00:00
dependabot[bot]
f38ef20e3b
build: Bump libc from 0.2.134 to 0.2.135
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.134 to 0.2.135.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.134...0.2.135 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:13:44 +00:00
dependabot[bot]
a033b1ef67
build: Bump uuid from 1.1.2 to 1.2.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.2 to 1.2.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.2...1.2.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:11:14 +00:00
dependabot[bot]
ffa7d27b5e
build: Bump libc from 0.2.134 to 0.2.135 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.134 to 0.2.135.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.134...0.2.135 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 00:22:29 +00:00
dependabot[bot]
da725daca0
build: Bump clap from 4.0.10 to 4.0.12
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.10 to 4.0.12.
- [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/v4.0.10...v4.0.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 00:22:25 +00:00
dependabot[bot]
0fe0eb4c97
build: Bump serde_json from 1.0.85 to 1.0.86
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.86 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-10 23:47:01 +00:00
dependabot[bot]
8877211d9e
build: Bump syn from 1.0.101 to 1.0.102
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.101...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-08 00:29:08 +00:00
dependabot[bot]
f907ff5d82
build: Bump syn from 1.0.101 to 1.0.102 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.101...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-07 23:47:54 +00:00
Rob Bradford
89a2562c5a
pci: Optimise MSI-X table programming
...
With an updated Linux kernel the kernel reprograms the same table entry
in the MSI-X table multiple times. Fortunately it does so with entry
masked (the default.)
The costly part of MSI-X table reprogramming is going out to the host
kernel to update the GSI routing entries. This change makes three
optimisations.
1. If the table entry is unchanged: skip handking updates
2. Only update the GSI routing table if the table entry is unmasked
(this skips extra calls to the ioctl() for reprogramming the
entries.)
3. Only generate a message on entry unmasking if the global MSI-X enable
bit is set.
Fixes : #4273
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-07 09:57:27 -07:00
Bo Chen
29cf637f3f
vmm: Move 'default_serial/console()' to vm_config.rs
...
In this way, we have all functions related to generate default values of
vm-config structs in the same location.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-07 09:13:15 -07:00
Bo Chen
fd9fa2a681
virtio-mem: mem: Simplify 'process_queue'
...
No functional change.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-07 07:57:08 -07:00
Bo Chen
756aebafda
virtio-devices: mem: Handle and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-07 07:57:08 -07:00
dependabot[bot]
d4d63502be
build: Bump itoa from 1.0.3 to 1.0.4
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-07 00:41:45 +00:00
dependabot[bot]
961793ba8c
build: Bump io-uring from 0.5.6 to 0.5.7 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-07 00:23:20 +00:00
dependabot[bot]
cbeed02a7c
build: Bump itoa from 1.0.3 to 1.0.4 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-06 23:51:07 +00:00
dependabot[bot]
10eb687687
build: Bump io-uring from 0.5.6 to 0.5.7
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-06 23:49:36 +00:00
Rob Bradford
83cc554f90
vmm: Remove deprecated VmConfig::{kernel, initramfs, cmdline} members
...
These have been replaced by members of PayloadConfig and should be
removed in v28.0 (mentioned in v26.0 release notes.)
Fixes : #4737
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
Rob Bradford
7d8d27c1b4
vmm: Rename queue size / number of queues constants
...
These constants still referenced the long removed (separate vhost-user
structs.)
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
Rob Bradford
d692dfb8e3
vmm: Move impl Default for ... to vm_config.rs
...
This is consistent when considering that some structs have a
`#[derive(Default)`] so it makes sense for the default implementations
to be in the same location.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
Rob Bradford
7ad58457b0
vmm: Split structs from logic that make up VmConfig
...
Place the data structures that are required for constructing a VmConfig
into it's own module from the logic that exists to suppot them.
This is useful as a consumer of the API can now clearly see what data
structures make up the API for creating VMs.
This has no functional change and I made no attempt to clean up the
ordering (it's as in the original file) nor any other clean up.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
dependabot[bot]
62d2189ade
build: Bump clap from 4.0.9 to 4.0.10 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.9 to 4.0.10.
- [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/v4.0.9...v4.0.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-06 00:26:05 +00:00
dependabot[bot]
7e7855bc8f
build: Bump clap from 4.0.9 to 4.0.10
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.9 to 4.0.10.
- [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/v4.0.9...v4.0.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 23:51:49 +00:00
dependabot[bot]
11cc35e6b5
build: Bump arbitrary from 1.1.6 to 1.1.7 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.6 to 1.1.7.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.6...v1.1.7 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 23:49:28 +00:00
Sebastien Boeuf
89677c3181
build: Bump clap from 3.2.22 to 4.0.9
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.22 to 4.0.9.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](clap-rs/clap@v3.2.22...v4.0.9)
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-major
...
Moving to the major version 4 introduced some breaking changes which had
to be handled manually.
Fixes #4709
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-05 12:59:14 +01:00
dependabot[bot]
307cfeba27
build: Bump smallvec from 1.9.0 to 1.10.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 01:02:17 +00:00
dependabot[bot]
43bb09df50
build: Bump vm-fdt from 8a19dcc to d942590
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `8a19dcc` to `d942590`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](8a19dcc94a...d942590738 )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 00:27:38 +00:00
dependabot[bot]
81d570e271
build: Bump mshv-bindings from 6b0cf3b to ac9c92f
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `6b0cf3b` to `ac9c92f`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](6b0cf3b47f...ac9c92f9b3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-04 23:51:43 +00:00
Rob Bradford
31ca22d4b6
virtio-devices: rng: Fix error message
...
The RNG device never reads from the guest memory it reads from a file
and writes to the guest memory.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-04 16:38:41 +01:00
Rob Bradford
cf995451a2
virtio-devices: watchdog: Generate error on invalid queue descriptor
...
Don't silently ignore the descriptors provided by the guest. This is
consistent with other devices.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-04 16:38:29 +01:00
Bo Chen
4fea40f008
fuzz: Balloon: Reduce the guest memory size and queue size
...
With the guest memory size of 1MB, a valid descriptor size can be close
to the guest memory size (e.g. 1MB) and can contain close to 256k
valid pfn entries (each entry is 4 bytes). Multiplying the queue
size (e.g. 256), there can be close to 64 millions pfn entries to
process in a single request. This is why the oss-fuzz reported a
timeout (with a limit of 60s).
By reducing the guest memory size and the queue size, the worst-case now
is 8 million pfn entries for fuzzing, which can be finished in around 20
seconds according to my local experiment.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-04 09:40:12 +01:00
Rob Bradford
2daab89987
vmm: Remove legacy firmware loading
...
This functionality was deprecated and is for removal in the upcoming
release.
Fixes : #4511
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-03 17:09:02 +01:00
Rob Bradford
1bc63e7848
vmm: Remove legacy I/O ports for ACPI
...
These addresses have been superseded and replaced with other I/O ports.
Fixes : #4483
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-03 17:08:57 +01:00
Bo Chen
2115a41568
openapi: Add 'firmware' to 'PayloadConfig'
...
This option is needed for the openapi consumer (e.g. Kata Containers) to
load firmware (e.g. td-shim) for booting.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-01 08:45:21 +01:00
dependabot[bot]
4b4354a52c
build: Bump rustix from 0.35.10 to 0.35.11
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.10 to 0.35.11.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.10...v0.35.11 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-30 01:36:09 +00:00
dependabot[bot]
67751d07d6
build: Bump libc from 0.2.133 to 0.2.134
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.133 to 0.2.134.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.133...0.2.134 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-30 01:01:13 +00:00
dependabot[bot]
509fd8b03e
build: Bump libc from 0.2.133 to 0.2.134 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.133 to 0.2.134.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.133...0.2.134 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-30 00:26:21 +00:00
dependabot[bot]
1294f052b2
build: Bump mshv-bindings from 2d0aaa1 to 6b0cf3b
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `2d0aaa1` to `6b0cf3b`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](2d0aaa16b0...6b0cf3b47f )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 23:49:21 +00:00
dependabot[bot]
01b38b9c59
build: Bump proc-macro2 from 1.0.45 to 1.0.46 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.45 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.45...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 23:46:46 +00:00
dependabot[bot]
db51e9e209
build: Bump proc-macro2 from 1.0.44 to 1.0.46
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 18:15:44 +00:00
Bo Chen
57dfcc06d3
fuzz: Cargo.lock: Bump virtio-queue to 0.6.1
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-29 19:11:38 +01:00
Rob Bradford
2ba6a9bfcf
build: Release v27.0
...
This also incorporates the bump to virtio-queue 0.6.1
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-29 17:56:21 +01:00
Rob Bradford
362f95c825
README.md: Add mailing list details
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-29 14:24:48 +01:00
dependabot[bot]
a02387862d
build: Bump rustix from 0.35.10 to 0.35.11 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.10 to 0.35.11.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.10...v0.35.11 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 00:20:21 +00:00
dependabot[bot]
ee5c2d2765
build: Bump proc-macro2 from 1.0.44 to 1.0.45 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.45 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 23:49:13 +00:00
James O. D. Hunt
cd0208fe0a
api-client: Allow response to be captured
...
Previously, the API response was always written to stdout, but that may
not be appropriate for all clients.
The client can now control this behaviour as the client API returns the
response in the `Result`.
Fixes : #4703 .
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com >
2022-09-28 15:23:03 +01:00
James O. D. Hunt
eea9bcea38
api-client: Refactor to removed hard-coded prefix
...
The existing API client only allows access to "VM" operations, so added
a new `simple_api_full_command_with_fds()` that allows access to "VMM"
operations too.
Also added a `simple_api_full_command()` to avoid having to specify the
file descriptors, in a similar manner to `simple_api_command()`.
Fixes : #4701 .
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com >
2022-09-28 12:30:02 +01:00
Smit Gardhariya
45fa8be97a
scripts: Remove common feature flag for mshv tests
...
Commit b2d1dd65f3 ("build: Remove "fwdebug" and "common" feature
flags") removed support for common features flag. But some of the
scripts are still using that parameter specifically test related to mshv
hypervisor. Thus fix those scripts by removing common feature flag.
Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com >
2022-09-28 10:53:22 +00:00
Bo Chen
f0c55f5245
virtio-devices: rng: Error out of queue execution on invalid requests
...
With the virtio-rng device the descriptors that are provided by the
guest must be writable and of non-zero length. Also propagate an error
if writing to the guest memory fails.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-28 10:07:44 +01:00
dependabot[bot]
4779265453
build: Bump thiserror from 1.0.36 to 1.0.37 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.36...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 10:07:09 +01:00
dependabot[bot]
0b9b46bbc8
build: Bump thiserror from 1.0.36 to 1.0.37
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.36...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 10:06:58 +01:00
Rob Bradford
06eb82d239
build: Consolidate "gdb" build feature into "guest_debug"
...
This simplifies the CI process but also logical with the existing
functionality under "guest_debug" (dumping guest memory).
Fixes : #4679
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-27 14:30:57 +01:00
Rob Bradford
b8503b5f45
hypervisor: Support compiling "tdx" and "mshv" feature together
...
TDX functionality is not currently available on MSHV but we should not
preclude building a binary that can run on both.
Fixes : #4677
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-27 14:30:49 +01:00
Sebastien Boeuf
3bf3cca70a
vhost_user_net: Allow user to set MTU
...
Adding the support for the user to set the MTU for the vhost-user-net
backend, which allows the integration test to be extended with the test
of the MTU parameter.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-27 10:37:35 +01:00
Sebastien Boeuf
903c08f8a1
net: Don't override default TAP interface MTU
...
Adjust MTU logic such that:
1. Apply an MTU to the TAP interface if the user supplies it
2. Always query the TAP interface for the MTU and expose that.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-27 10:37:35 +01:00
dependabot[bot]
44d66ec531
build: Bump proc-macro2 from 1.0.43 to 1.0.44
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 02:54:16 +00:00
dependabot[bot]
ac77d0923f
build: Bump thiserror from 1.0.35 to 1.0.36
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.35...1.0.36 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 02:19:05 +00:00
dependabot[bot]
ba3debaa27
build: Bump openssl-sys from 0.9.75 to 0.9.76
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.75 to 0.9.76.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.75...openssl-sys-v0.9.76 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 01:29:28 +00:00
dependabot[bot]
1ff26fbb8a
build: Bump thiserror from 1.0.35 to 1.0.36 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.35...1.0.36 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 00:54:29 +00:00
dependabot[bot]
4aa5d5a2c1
build: Bump syn from 1.0.100 to 1.0.101
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.100...1.0.101 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 00:37:22 +00:00
dependabot[bot]
023c77bdf3
build: Bump proc-macro2 from 1.0.43 to 1.0.44 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 00:19:14 +00:00
dependabot[bot]
e2a7972c59
build: Bump syn from 1.0.100 to 1.0.101 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.100...1.0.101 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-26 23:45:54 +00:00
dependabot[bot]
a4791263c9
build: Bump mshv-bindings from bf85430 to 2d0aaa1
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `bf85430` to `2d0aaa1`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](bf85430875...2d0aaa16b0 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-26 23:42:43 +00:00
Rob Bradford
b2d1dd65f3
build: Remove "fwdebug" and "common" feature flags
...
This simplifes the buld and checks with very little overhead and the
fwdebug device is I/O port device on 0x402 that can be used by edk2 as a
very simple character device.
See: #4679
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-26 10:16:33 -07:00
Rob Bradford
36e26f004c
.github: Consolidate quality checks into single worklow
...
Combine aarch64 and x86-64 checks into one workflow
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-26 16:52:42 +01:00
Rob Bradford
66c092e69b
build: Bump linux-loader from 0.5.0 to 0.6.0
...
Bumps [linux-loader](https://github.com/rust-vmm/linux-loader ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/rust-vmm/linux-loader/releases )
- [Changelog](https://github.com/rust-vmm/linux-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/linux-loader/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: linux-loader
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-24 09:54:18 +00:00
dependabot[bot]
76903e5fd0
build: Bump jobserver from 0.1.24 to 0.1.25 in /fuzz
...
Bumps [jobserver](https://github.com/alexcrichton/jobserver-rs ) from 0.1.24 to 0.1.25.
- [Release notes](https://github.com/alexcrichton/jobserver-rs/releases )
- [Commits](https://github.com/alexcrichton/jobserver-rs/compare/0.1.24...0.1.25 )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-23 23:49:08 +00:00
Rob Bradford
cf31a303cf
README: Add roadmap section pointing to our new GitHub project
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-23 14:30:15 -07:00
Bo Chen
ef603fde4c
fuzz: Reduce the guest memory size for balloon fuzzer
...
As the virt queues are initialized with random bytes from the fuzzing
engine, a descriptor buffer for the available ring can have a very large
length (e.g. up to 4GB). This means there can be up to 1 billion
entries (e.g. page frame number) for virtio-balloon to process a signal
available descriptor (given each entry is 4 bytes). This is the reason
why oss-fuzz reported a hanging issue for this fuzzer, where the
generated descriptor buffer length is 4,278,321,152.
We can avoid this kind of long execution by reducing the size of guest
memory. For example, with 1MB of guest memory, the number of descriptor
entries for processing is limited ~256K.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-23 08:28:07 +01:00
dependabot[bot]
7a0bfd2e71
build: Bump serde from 1.0.144 to 1.0.145
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-23 00:14:50 +00:00
dependabot[bot]
98aab37b00
build: Bump serde from 1.0.144 to 1.0.145 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 23:38:42 +00:00
Rob Bradford
194b59f44b
fuzz: Don't overload meaning of reset()
...
This function is for really for the transport layer to trigger a device
reset. Instead name it appropriately for the fuzzing specific use case.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 11:01:41 -07:00
Rob Bradford
c98bd2fd4a
.github: Add clippy check of tracing feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
e53419ecfc
docs: Add documentation of tracing infrastructure
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
5e811a6823
scripts: Add tracing visualisation script
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
1202b9a07a
vmm: Add some tracing of boot sequence
...
Add tracing of the VM boot sequence from the point at which the request
to create a VM is received to the hand-off to the vCPU threads running.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
b35e6f3018
tracing: Tracing infrastructure
...
Add a new feature "tracing" that enables tracing functionality via the
"tracer" crate (sadly features and crates cannot share the same name.)
Setup: tracer::start()
The main functionality is a tracer::trace_scope()! macro that will add
trace points for the duration of the scope. Tracing events are per
thread.
Finish: tracer::end() this will write the trace file (pretty printed
JSON) to a file in the current directory.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
dependabot[bot]
56f163170c
build: Bump rustix from 0.35.9 to 0.35.10 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.9 to 0.35.10.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.9...v0.35.10 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 00:23:12 +00:00
dependabot[bot]
98c461e932
build: Bump rustix from 0.35.9 to 0.35.10
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.9 to 0.35.10.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.9...v0.35.10 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-21 23:47:11 +00:00
Sebastien Boeuf
76dbf85b79
net: Give the user the ability to set MTU
...
Add a new "mtu" parameter to the NetConfig structure and therefore to
the --net option. This allows Cloud Hypervisor's users to define the
Maximum Transmission Unit (MTU) they want to use for the network
interface that they create.
In details, there are two main aspects. On the one hand, the TAP
interface is created with the proper MTU if it is provided. And on the
other hand the guest is made aware of the MTU through the VIRTIO
configuration. That means the MTU is properly set on both the TAP on the
host and the network interface in the guest.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-21 16:20:57 +02:00
dependabot[bot]
d95220108a
build: Bump once_cell from 1.14.0 to 1.15.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-21 00:35:35 +00:00
dependabot[bot]
5a9fe9855a
build: Bump lock_api from 0.4.8 to 0.4.9
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.8 to 0.4.9.
- [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-0.4.8...lock_api-0.4.9 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 23:48:00 +00:00
dependabot[bot]
2d0ba3637a
build: Bump once_cell from 1.14.0 to 1.15.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 23:42:38 +00:00
Rob Bradford
fdb4b32876
build: Disable SGX build
...
This was unfortunately missing from
430bfd38be which disabled the other builds
that rely on the bare metal systems.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 21:59:03 +01:00
Sebastien Boeuf
f38056fc9e
virtio-devices, vmm: Simplify virtio-mem resize operation
...
There's no need to delegate the resize operation to the virtio-mem
thread. This can come directly from the vmm thread which will use the
Mem object to update the VIRTIO configuration and trigger the interrupt
for the guest to be notified.
In order to achieve what's described above, the VirtioMemZone structure
now has a handle onto the Mem object directly. This avoids the need for
intermediate Resize and ResizeSender structures.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-20 13:43:40 +02:00
Rob Bradford
430bfd38be
build: Disable VFIO, metrics and rate limit testing
...
Bare metal x86-64 systems are offline
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 11:55:43 +01:00
Rob Bradford
2b53de58b3
build: Remove the exposed "cmos" feature
...
This only affects the build system; the feature was already always
compiled in with ca68b9e7a9
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 11:18:46 +01:00
Rob Bradford
d4d0780b89
tests: Fix aarch64 beta clippy issues
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 10:59:48 +01:00
Rob Bradford
a375e230b8
misc: Manual beta clippy fixes (boolean to int conversion using if)
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 10:59:48 +01:00
Rob Bradford
f32487f8e8
misc: Automatic beta clippy fixes
...
e.g. cargo clippy --all --tests --all-targets --fix --features=..
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 10:59:48 +01:00
Bo Chen
ab0b3f1b7b
fuzz: Add fuzzer for virtio-balloon
...
The fuzzer exercises the inflate, deflate and reporting events of
virtio-balloon via creating three queues and kicking three events.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-20 11:05:53 +02:00
Bo Chen
e1b483fc88
fuzz: Add fuzzer for virtio-rng
...
To make the fuzzer faster and more effective, the guest memory is
setup with a much smaller size (comparing with other virtio device
fuzzers) and a hole between the memory for holding virtio queue and
the rest of guest data. It brings two benefits: 1) avoid writing large
chunk of data from 'urandom' into the available descriptor chain (which
makes the fuzzer faster); 2) reduce substantial amount of overwrites to
the virtio queue data by the data from 'urandom (which makes the fuzzer
more deterministic and hence effective).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-20 11:05:53 +02:00
Bo Chen
f815fcbb5d
fuzz: Add fuzzer for virtio-watchdog
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-20 11:05:53 +02:00
dependabot[bot]
6a67675442
build: Bump syn from 1.0.99 to 1.0.100
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.99...1.0.100 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 09:34:37 +01:00
dependabot[bot]
50c3aa775b
build: Bump libc from 0.2.132 to 0.2.133
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.132 to 0.2.133.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.132...0.2.133 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 01:24:56 +00:00
dependabot[bot]
14865a58a9
build: Bump env_logger from 0.9.0 to 0.9.1
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 00:40:44 +00:00
dependabot[bot]
7d5f53439c
build: Bump syn from 1.0.99 to 1.0.100 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.99...1.0.100 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 00:19:54 +00:00
dependabot[bot]
5123d0b1e1
build: Bump mshv-ioctls from 0106c24 to bf85430
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `0106c24` to `bf85430`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](0106c24a26...bf85430875 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-19 23:43:42 +00:00
dependabot[bot]
beee45a1ce
build: Bump libc from 0.2.132 to 0.2.133 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.132 to 0.2.133.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.132...0.2.133 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-19 23:43:08 +00:00
Bo Chen
5f4a6b42c0
qcow: Fix wrong alignment calculation
...
With the existing code, `round_up(7, 2)` would generate `6` which is
obviously wrong. Also, following what's done for 'round_down()', the
fixed code does not handle 'alignment == 0' explicitly.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-17 10:23:49 +01:00
Bo Chen
134e555c42
vhdx: Fix wrong alignment calculation
...
With the existing macro, `align!(7, 4)` would generate `16` which is
obviously wrong. Also, given it is a macro, the compiler catch the error
if the provided 'alignment' is '0'.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-17 10:23:49 +01:00
dependabot[bot]
18f1be0fac
build: Bump clap from 3.2.21 to 3.2.22
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.21 to 3.2.22.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.22/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.21...v3.2.22 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-17 00:31:42 +00:00
dependabot[bot]
001f10d614
build: Bump clap from 3.2.21 to 3.2.22 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.21 to 3.2.22.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.22/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.21...v3.2.22 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 23:54:11 +00:00
Sebastien Boeuf
1a2cd44e44
virtio-devices: balloon: Simplify the resize operation
...
There's no need to delegate the resize operation to the virtio-balloon
thread. This can come directly from the vmm thread which will use the
Balloon object to update the VIRTIO configuration and trigger the
interrupt for the guest to be notified.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-16 17:21:04 +02:00
Sebastien Boeuf
1849ffff31
vmm: Remove "amx" feature gate
...
Given the AMX x86 feature has been made available since kernel v5.17,
and given we don't have any test validating this feature, there's no
need to keep it behing a Rust feature gate.
Fixes #3996
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-16 15:03:31 +01:00
Rob Bradford
0e52be0909
vmm: Ensure default deserialisation for "amx" feature bit
...
This allows a migration from a binary not compiled with struct member to
be completed.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-16 15:03:31 +01:00
Rob Bradford
19b006eb84
devices: legacy: pl011: Move boot timestamping to warn!()
...
This makes it consistent with x86_64 and allows the performance metrics
tooling to continue to work on aarch64.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-16 14:36:12 +01:00
Sebastien Boeuf
a5f655a032
virtio-devices: watchdog: Update process queue design
...
Update the implementation of the process_queue() function to match all
other virtio devices implementations. This solves some issue related to
potential out-of-bound accesses to the former used_desc_heads list.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-16 10:04:24 +01:00
Bo Chen
a4f781e142
vitio-devices: watchdog: Avoid panic and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-16 09:42:41 +02:00
Bo Chen
1c1bff93a1
vitio-devices: rng: Avoid panic and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-16 09:42:41 +02:00
dependabot[bot]
ec384af29e
build: Bump unicode-xid from 0.2.3 to 0.2.4
...
Bumps [unicode-xid](https://github.com/unicode-rs/unicode-xid ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/unicode-rs/unicode-xid/releases )
- [Commits](https://github.com/unicode-rs/unicode-xid/commits/v0.2.4 )
---
updated-dependencies:
- dependency-name: unicode-xid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 02:23:01 +00:00
dependabot[bot]
f7a013da92
build: Bump textwrap from 0.15.0 to 0.15.1
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.15.0...0.15.1 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 01:49:13 +00:00
dependabot[bot]
5dfd64e9e2
build: Bump semver from 1.0.13 to 1.0.14
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 00:42:08 +00:00
dependabot[bot]
77bc86c8d3
build: Bump unicode-ident from 1.0.3 to 1.0.4 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 00:18:33 +00:00
dependabot[bot]
3e16c2e257
build: Bump textwrap from 0.15.0 to 0.15.1 in /fuzz
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.15.0...0.15.1 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 23:47:56 +00:00
Wei Liu
9fe1643089
build: enable size optimization for release profile
...
This reduces the binary size from 7.3M to 6.5M.
Also the build time for a clean build shrinks from 1m28s to 1m14s on my
development machine (an eight-core VM on Azure). This goes against the
conventional wisdom but it is what it is.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-09-15 14:37:31 +01:00
Wei Liu
cb00dbe6ec
build: update to the latest kvm-ioctls
...
The latest kvm-ioctls contains a breaking change to its API. Now Arm's
get/set_one_reg use u128 instead of u64.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-09-15 13:35:12 +01:00
Anatol Belski
253d16b4c9
README: Fix contents entry indent
...
The `#use-prebuilt-binaries` entry shifted to the left due to
wrong markup.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2022-09-15 12:31:05 +01:00
dependabot[bot]
2656b9b925
build: Bump unicode-ident from 1.0.3 to 1.0.4
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 10:12:14 +00:00
Rob Bradford
5aab82ccd2
Jenkinsfile: Move slack alert to new channel
...
This avoids spamming #general
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-15 10:19:56 +01:00
Anatol Belski
43c4270289
rpm: doc: Remove bundled SPEC and update README
...
Packages targeting various distributions are now available thanks to the
Open Bulid Service. The SPECS have been moved to a separate repo under
https://github.com/cloud-hypervisor/obs-packaging
which documents how to include pre-compiled binaires in a supported
distribution. Besides the Cloud Hypervisor itself, accompanying pieces
like UEFI bins are available, too.
Any contributions to the packaging can be also accepted in
the aforementioned repo. Further integration with the OBS like PR
validation is to be targeted there, too, as far as it can get. As the
packaging topic has moved in a separate repo, the bundled SPEC became
obsolete is suggested for removal.
Fixes : #4257
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-15 10:19:39 +01:00
dependabot[bot]
651506bfe5
build: Bump semver from 1.0.13 to 1.0.14 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 09:04:25 +00:00
dependabot[bot]
d6013904a8
build: Bump seccompiler from 0.2.0 to 0.3.0
...
Bumps [seccompiler](https://github.com/rust-vmm/seccompiler ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/rust-vmm/seccompiler/releases )
- [Changelog](https://github.com/rust-vmm/seccompiler/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/seccompiler/compare/v0.2.0...seccompiler-v0.3.0 )
---
updated-dependencies:
- dependency-name: seccompiler
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 08:29:49 +00:00
Bo Chen
91b8b00f95
fuzz: Add fuzzer for virtio-pmem
...
The fuzzer is focusing on the virtio-pmem code that processes guest
inputs (e.g. virt queues). Given 'flush' is the only virtio-pmem
request, the fuzzer is essentially testing the code for parsing and
error handling.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-15 09:08:11 +01:00
Bo Chen
67a89f4538
fuzz: Setup virt queue with proper addresses
...
To make the fuzzers more focused and more efficient, we now provide
default addresses for the descriptor table, available ring, and used
ring, which ensures the virt-queue has a valid memory layout (e.g. no
overlapping between descriptor tables, available ring, and used ring).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-15 09:08:11 +01:00
Anatol Belski
1d3bb63ec8
doc: Add VSOCK doc page
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-15 09:07:21 +01:00
Bo Chen
c8fe101b6f
Jenkinsfile: Add CI worker for rate limiter tests
...
Given rate limiter tests are performance related, they need to be tested
on a bare-metal machine. It is now using the same node as the metrics CI.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
ef1983ee60
scripts: Add script to run rate limiter integration tests
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
d5219525d8
tests: Add rate limiter test for virtio block
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
af0a01c2fb
test_infra: Add helper function to parse fio output for IOPS
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
652aa39934
test_infra: Support 'rw' and 'randrw' as FIO operations
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
a15b641c61
tests: Add rate limiter test for virtio net
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
d8a6725995
performance-metrics: Move some helper functions to test_infra
...
The helper functions for measuring and parsing the performance of
virtio-net and virtio-block devices are moved to the `test_infra` crate
so that they be reused for integration tests of rate limiter.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
dependabot[bot]
ecaff8ff1b
build: Bulk dependencies update
...
Multiple rust-vmm crates must be updated at once given the vm-memory one
has been updated and they all rely on vm-memory.
- vm-memory from 0.8.0 to 0.9.0
- vhost from 0.4.0 to 0.5.0
- virtio-queue from 0.5.0 to 0.6.0
- vhost-user-backend from 0.6.0 to 0.7.0
- linux-loader from 0.4.0 to 0.5.0
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-14 15:01:04 +01:00
dependabot[bot]
06d7796190
build: bump anyhow from 1.0.64 to 1.0.65
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.64...1.0.65 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 02:24:55 +00:00
dependabot[bot]
4e589d2e13
build: bump clap from 3.2.20 to 3.2.21
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.20 to 3.2.21.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.21/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.20...v3.2.21 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 01:49:43 +00:00
dependabot[bot]
bf638a45de
build: bump vfio-ioctls from c52e88a to bf7c9b9
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `c52e88a` to `bf7c9b9`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](c52e88ac55...bf7c9b997b )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 01:15:36 +00:00
dependabot[bot]
1d29c31e6b
build: bump thiserror from 1.0.34 to 1.0.35
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.34...1.0.35 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 00:23:57 +00:00
dependabot[bot]
b84f41eac4
build: bump anyhow from 1.0.64 to 1.0.65 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.64...1.0.65 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 00:19:05 +00:00
dependabot[bot]
e5287d27b2
build: bump thiserror from 1.0.34 to 1.0.35 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.34...1.0.35 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-13 23:47:37 +00:00
Bo Chen
522e32219c
virtio-devices: pmem: Avoid panic and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-13 09:56:06 -07:00
Bo Chen
4cc3bdba9f
virtio-devices: pmem: Report errors from 'process_queue' properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-13 09:56:06 -07:00
Bo Chen
9d3ecefc00
virtio-devices: pmem: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-13 09:56:06 -07:00
dependabot[bot]
561af4fd1a
build: bump clap from 3.2.20 to 3.2.21 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.20 to 3.2.21.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.21/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.20...v3.2.21 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-13 00:15:07 +00:00
dependabot[bot]
e0634c48d0
build: bump io-uring from 0.5.5 to 0.5.6 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-12 23:41:43 +00:00
dependabot[bot]
e23319426d
build: bump io-uring from 0.5.5 to 0.5.6
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-12 17:33:31 +00:00
dependabot[bot]
df6f1ea40c
build: bump serde_with from 2.0.0 to 2.0.1
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-10 00:54:08 +00:00
dependabot[bot]
b25f640ef5
build: bump serde_with_macros from 2.0.0 to 2.0.1
...
Bumps [serde_with_macros](https://github.com/jonasbb/serde_with ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: serde_with_macros
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-10 00:17:33 +00:00
dependabot[bot]
f37d07c724
build: bump serde_with from 2.0.0 to 2.0.1 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-09 23:41:49 +00:00
dependabot[bot]
92713f7c5e
build: bump arbitrary from 1.1.4 to 1.1.6 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.4 to 1.1.6.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.4...v1.1.6 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-08 23:46:12 +00:00
Bo Chen
60f3bd43f5
tests: live-migration: Split numa tests into its own function
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
e145b823a5
tests: live-migration: Split balloon tests into its own function
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
ff3e9eb668
tests: live-migration: Split watchdog tests into its own function
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
e3d7824f09
tests: Provide a function to log guests outputs w/ migration errors
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
d5481cddcf
tests: Provide a function to start live migration
...
This function starts the 'receive-migration' for the destination VM,
'send-migration' for the source VM, waits for the live-migration
completion, and prints debug information upon errors.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
dependabot[bot]
4e91199ff8
build: bump mshv-ioctls from 8094002 to 0106c24
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `8094002` to `0106c24`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](80940020f1...0106c24a26 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-07 23:38:42 +00:00
Bo Chen
1817224fe9
tests: Refactor 'test_watchdog' for better readability
...
This patch moves the actual test logic and assertions from various
functions to the actual tests, which makes these tests more readable and
easier to debug.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-07 09:51:34 +01:00
Sebastien Boeuf
180251f057
Jenkinsfile: Re-enable x86-64 bare metal testing
...
The baremetal CI for x86-64 was disabled while the machines were out for
maintenance. Now that the machines are back up, let's re-enable the full
CI.
This reverts commit 476e30f5cb .
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-07 09:32:03 +01:00
dependabot[bot]
fae801cd70
build: bump once_cell from 1.13.1 to 1.14.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-06 11:29:57 +02:00
dependabot[bot]
2a222b2692
build: bump thiserror from 1.0.33 to 1.0.34
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-06 00:31:02 +00:00
dependabot[bot]
1435a58c1e
build: bump thiserror from 1.0.33 to 1.0.34 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 23:52:54 +00:00
dependabot[bot]
d6f8411635
build: bump anyhow from 1.0.63 to 1.0.64
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.63 to 1.0.64.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.63...1.0.64 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 17:24:08 +00:00
dependabot[bot]
52d1b5f753
build: bump aho-corasick from 0.7.18 to 0.7.19
...
Bumps [aho-corasick](https://github.com/BurntSushi/aho-corasick ) from 0.7.18 to 0.7.19.
- [Release notes](https://github.com/BurntSushi/aho-corasick/releases )
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.7.18...0.7.19 )
---
updated-dependencies:
- dependency-name: aho-corasick
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 15:46:59 +00:00
Sebastien Boeuf
3b5c2b3718
tests: Disable test_windows_guest_disk_hotplug for aarch64
...
Until the issue #4583 is resolved, we must disable this test given it's
failing quite often on the aarch64 worker.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-05 17:08:34 +02:00
Rob Bradford
62681a776e
README: Add host kernel version details
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-05 12:15:10 +01:00
Sebastien Boeuf
3793ffe888
vmm: config: Move TDX to rely on PayloadConfig
...
Removing the option --tdx to specify that we want to run a TD VM. Rely
on --platform option by adding the "tdx" boolean parameter. This is the
new way for enabling TDX with Cloud Hypervisor.
Along with this change, the way to retrieve the firmware path has been
updated to rely on the recently introduced PayloadConfig structure.
Fixes #4556
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-05 12:14:59 +01:00
dependabot[bot]
b05bd28321
build: bump mshv-ioctls from b7cd8a0 to 8094002
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `b7cd8a0` to `8094002`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](b7cd8a097c...80940020f1 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 09:42:37 +00:00
dependabot[bot]
514ec79368
build: bump vm-fdt from ca35d96 to 8a19dcc
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `ca35d96` to `8a19dcc`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](ca35d96191...8a19dcc94a )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-04 10:27:59 +01:00
dependabot[bot]
39c1102c60
build: bump once_cell from 1.13.1 to 1.14.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-03 09:19:16 +01:00
Rob Bradford
4465bbaf38
devices: acpi: Add generic event controller
...
Rather than overloading the GED device with the detection of what the
underlying event means move that to a new generic event controller. The
advantage of this is that that the generic event controller can have a
_CRS that covers the memory for the OperationRegion (the ged driver
rejects _CRS entries that contain anything beyond the single interrupt)
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-02 15:15:15 +01:00
Sebastien Boeuf
b3bef3adda
vmm: acpi: Don't declare MMIO config space through PCI buses
...
The PCI buses should not declare the address space related to the MMIO
config space given it's already declared in the MCFG table and through
the motherboard device PNP0C02 in the DSDT table.
The PCI MMIO config region for the segment was being wrongly exposed as
part of the _CRS for the ACPI bus device (using Memory32Fixed). Exposing
it via this object was ineffectual as the equivalent entry in the
PNP0C02 (_SB_.MBRD) marked those ranges as not usable via the kernel.
Either way, with both devices used by the kernel, the kernel will not
try and use those memory ranges for the device BARs. However under
td-shim on TDX the PNP0C02 device is not on the permitted list of
devices so the the memory ranges were not marked as unusable resulting
in the kernel attempting to allocate BARs that collided with the PCI
MMIO configuration space.
This is based on the kernel documentation PCI/acpi-info.rst which relies
on ACPI and PCI Firmware specifications. And here are the interesting
quotes from this document:
"""
Prior to the addition of Extended Address Space descriptors, the failure
of Consumer/Producer meant there was no way to describe bridge registers
in the PNP0A03/PNP0A08 device itself. The workaround was to describe the
bridge registers (including ECAM space) in PNP0C02 catch-all devices.
With the exception of ECAM, the bridge register space is device-specific
anyway, so the generic PNP0A03/PNP0A08 driver (pci_root.c) has no need
to know about it.
PNP0C02 “motherboard” devices are basically a catch-all. There’s no
programming model for them other than “don’t use these resources for
anything else.” So a PNP0C02 _CRS should claim any address space that is
(1) not claimed by _CRS under any other device object in the ACPI
namespace and (2) should not be assigned by the OS to something else.
The address range reported in the MCFG table or by _CBA method (see
Section 4.1.3) must be reserved by declaring a motherboard resource. For
most systems, the motherboard resource would appear at the root of the
ACPI namespace (under _SB) in a node with a _HID of EISAID (PNP0C02),
and the resources in this case should not be claimed in the root PCI
bus’s _CRS. The resources can optionally be returned in Int15 E820 or
EFIGetMemoryMap as reserved memory but must always be reported through
ACPI as a motherboard resource.
"""
This change has been manually tested by running a VM with multiple
segments (4 segments), and by hotplugging an additional disk to the
segment number 2 (third segment).
From one shell:
"""
cloud-hypervisor \
--cpus boot=1 \
--memory size=1G \
--kernel vmlinux \
--cmdline "root=/dev/vda1 rw console=hvc0" \
--disk path=jammy-server-cloudimg.raw \
--api-socket /tmp/ch.sock \
--platform num_pci_segments=4
"""
From another shell (after the VM is booted):
"""
ch-remote \
--api-socket=/tmp/ch.sock \
add-disk \
path=test-disk.raw,id=disk2,pci_segment=2
"""
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-02 14:14:23 +02:00
dependabot[bot]
8e630710f9
build: bump libfuzzer-sys from 0.4.3 to 0.4.4 in /fuzz
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/rust-fuzz/libfuzzer/releases )
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.3...0.4.4 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 03:42:07 +00:00
dependabot[bot]
688602f3fc
build: bump clap from 3.2.19 to 3.2.20 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.19 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.19...v3.2.20 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 03:08:07 +00:00
dependabot[bot]
7e4341d9e3
build: bump clap from 3.2.19 to 3.2.20
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.19 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.19...v3.2.20 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 02:07:12 +00:00
dependabot[bot]
817fa0dc81
build: bump io-uring from 0.5.4 to 0.5.5 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 01:07:41 +00:00
dependabot[bot]
0322a43312
build: bump mshv-ioctls from fb07da8 to b7cd8a0
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `fb07da8` to `b7cd8a0`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](fb07da88c3...b7cd8a097c )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 00:48:33 +00:00
dependabot[bot]
75e4ee5362
build: bump io-uring from 0.5.4 to 0.5.5
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 00:06:46 +00:00
Bo Chen
3c6014554b
tests: ovs_dpdk: Cleanup ovs-dpdk after terminating VMs
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-01 08:39:39 +02:00
Bo Chen
6cf4ea74fc
tests: live-migration: Cleanup ovs-dpdk setup correctly on failures
...
As 'handle_child_output()' may terminate the test on panic, we need to
cleanup ovs-dpdk setup in advance.
see: #4555
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-01 08:39:39 +02:00
Bo Chen
742d6858f7
fuzz: block: Setup the virt queue based on the fuzzed input bytes
...
Instead of always fuzzing virt-queues with default values (mostly 0s),
the fuzzer now initializes the virt-queue based on the fuzzed input
bytes, such as the tail position of the available ring, queue size
selected by driver, descriptor table address, available ring address,
used ring address, etc. In this way, the fuzzer can explore the
virtio-block code path with various virt-queue setup.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-01 08:39:28 +02:00
dependabot[bot]
dc2365bfd0
build: bump io-uring from 0.5.3 to 0.5.4
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 03:40:25 +00:00
dependabot[bot]
41e22a7d03
build: bump thiserror from 1.0.32 to 1.0.33
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 03:00:36 +00:00
dependabot[bot]
8d68e78957
build: bump io-uring from 0.5.3 to 0.5.4 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 02:01:00 +00:00
dependabot[bot]
33d9ed9a66
build: bump anyhow from 1.0.62 to 1.0.63
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.62...1.0.63 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 01:00:52 +00:00
dependabot[bot]
fb5c792da6
build: bump anyhow from 1.0.62 to 1.0.63 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.62...1.0.63 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 01:00:34 +00:00
dependabot[bot]
7b9e826c2c
build: bump paste from 1.0.8 to 1.0.9
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.8...1.0.9 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 00:01:04 +00:00
dependabot[bot]
1d164abba4
build: bump thiserror from 1.0.32 to 1.0.33 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 00:00:24 +00:00
Nuno Das Neves
784a3aaf3c
devices: gic: use VgicConfig everywhere
...
Use VgicConfig to initialize Vgic.
Use Gic::create_default_config everywhere so we don't always recompute
redist/msi registers.
Add a helper create_test_vgic_config for tests in hypervisor crate.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2022-08-31 08:33:05 +01:00
Nuno Das Neves
a832033531
devices: gic: Introduce VgicConfig and Gic::create_default_config()
...
VgicConfig structure will be used for initializing the Vgic.
Gic::create_default_config will be used everywhere we currently compute
redist/msi registers.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2022-08-31 08:33:05 +01:00
Jianyong Wu
3a19573c69
vmm: unify payload load chain on AArch64 with x86_64
...
AArch64 can share the same way of loading payload with x86_64. It makes
the payload loading more consistent between different arches.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-08-31 08:32:08 +01:00
Michael Zhao
b65639fad3
vmm:AArch64: move uefi_flash to memory manager
...
uefi_flash is used when load firmware, that is load payload depends on
device manager. move uefi_flash to memory manager can eliminate the
dependency.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-31 08:32:08 +01:00
Jianyong Wu
9b1452f258
vmm:AArch64: load standalone firmware
...
A new firmware item has been added into payload config, we need
extend ability to load standalone firmware on AArch64.
"load_kernel" method will be the entry of image loading work including
kernel and firmware.
This change is back compatible. So, we can either load firmware through
"-kernel" like before or "-firmware".
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-08-31 08:32:08 +01:00
Jianyong Wu
2054c8699a
vmm:AArch64: add load_firmware method
...
Later, we will load standalone firmware. So, refactor load_kernel
by abstracting load_firmware method.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-08-31 08:32:08 +01:00
dependabot[bot]
c38d167523
build: bump clap from 3.2.18 to 3.2.19 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.18 to 3.2.19.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.19/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.19 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 23:56:06 +00:00
dependabot[bot]
b04baf6017
build: bump clap from 3.2.18 to 3.2.19
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.18 to 3.2.19.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.19/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.19 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 23:55:59 +00:00
Bo Chen
6cb214f15c
fuzz: block: Rely on custom EpollHelper::run and VirtioCommon:reset
...
This commit also extends the copyright header.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-30 14:01:33 -07:00
Bo Chen
a9924df2b8
virtio-devices: Custom EpollHelper::run/VirtioCommon:reset for fuzz
...
It provides fuzzer a reliable way to wait for a sequence of events
to complete for virtio-devices while not using a fixed timeout to
maintain the full speed of fuzzing.
Take virtio-block as an example, the 'queue event' with a valid
available queue setup can trigger a 'completion event'. This is a
meaningful virtio-block code path of processing guest inputs which is
our target for fuzzing virtio devices.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-30 14:01:33 -07:00
Rob Bradford
616ec530a8
.github: workflows: Fail on intermediate steps for commit checks
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-30 21:40:31 +01:00
Rob Bradford
850c0c8319
.github: workflows: Fix per commit buildability check
...
Fetch the whole git repository (not just the specific commit) and use
the github context instead of hardcoded branch.
Unfortunately now that we process the list of revisions correctly it
shows that the checks don't work on aarch64 due to cross limitations so
this has been removed.
Fixes : #4523
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-30 21:40:31 +01:00
Sebastien Boeuf
8c02648ac9
vmm: device_manager: Update virtio-console for proper PTY support
...
Given the virtio-console is now able to buffer its output when no PTY is
connected on the other end, the device manager code is updated to enable
this. Moving the endpoint type from FilePair to PtyPair enables the
proper codepath in the virtio-console implementation, as well as
updating the PTY resize code, and forcing the PTY to always be
non-blocking.
The non-blocking behavior is required to avoid blocking the guest that
would be waiting on the virtio-console driver. When receiving an
EWOULDBLOCK error, the output will simply be redirected to the temporary
buffer so that it can be later flushed.
The PTY resize logic has been slightly modified to ensure the PTY file
descriptors are closed. It avoids the child process to keep a hold onto
the PTY device, which would have caused the PTY to believe something is
connected on the other end, which would have prevented the detection of
any new connection on the PTY.
Fixes #4521
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
a391bce781
virtio-devices: console: Detect PTY connection/disconnection
...
Through multiple changes, this patch aims at providing a reliable
solution for detecting the state of the PTY's connection. Being able to
find out when the other end of the PTY is connected is essential to
prevent the loss of data being output through the PTY. When the PTY
isn't connected, the output is buffered through the SerialBuffer, the
same solution that was created for the serial port initially.
Fixes #4521
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
9d2e835d14
virtio-devices: Extend EpollHelper and EpollHelperHandler
...
Extending and improving both the structure and the trait allows for more
flexibility regarding what can be achieved with the epoll loop. It
allows for a timeout to be configured instead of the default blocking
behavior. There is a new method in the trait to notify the caller that
the timeout has been reached. And there's a new knob to be notified with
the full list of events before the internal code will actually loop over
every event.
All of these new features are not affecting the previous behavior, and
using EpollHelper::run() should be unchanged.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
a940f525a8
vmm: Move SerialBuffer to its own crate
...
We want to be able to reuse the SerialBuffer from the virtio-devices
crate, particularly from the virtio-console implementation. That's why
we move the SerialBuffer definition to its own crate so that it can be
accessed from both vmm and virtio-devices crates, without creating any
cyclic dependency.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
63462fd8ab
vmm: serial_manager: Iterate again on EINTR
...
If the epoll_wait() call returns EINTR, this only means a signal has
been delivered before any of the file descriptors registered triggered
an event or before the end of the timeout (if timeout isn't -1). For
that reason, we should simply try to listen on the epoll loop again.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Anatol Belski
2306291720
tests: Enable more Windows guest tests for aarch64
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2022-08-30 09:02:54 +01:00
dependabot[bot]
e833679428
build: bump clap from 3.2.17 to 3.2.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.17 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.17...v3.2.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 02:51:27 +00:00
dependabot[bot]
956907df97
build: bump mshv-bindings from 8a25e36 to fb07da8
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `8a25e36` to `fb07da8`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](8a25e361ce...fb07da88c3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 01:56:05 +00:00
dependabot[bot]
79be8b6216
build: bump lock_api from 0.4.7 to 0.4.8
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.7 to 0.4.8.
- [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-0.4.7...lock_api-0.4.8 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 01:11:22 +00:00
dependabot[bot]
0d5b68d79c
build: bump clap from 3.2.17 to 3.2.18 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.17 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.17...v3.2.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 00:27:09 +00:00
dependabot[bot]
31df1bcac0
build: bump arbitrary from 1.1.3 to 1.1.4 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.3...v1.1.4 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-29 23:50:51 +00:00
Sebastien Boeuf
0bcb6ff061
vmm: Limit the size of the SerialBuffer
...
We must limit how much the buffer can grow, otherwise this could lead
the process to consume all the memory on the machine. This could happen
if the output from the guest was very important and nothing would
connect to the PTY for a long time.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-24 12:14:59 +02:00
Michael Zhao
d66d64c325
vmm: Restrict the maximum number of HW breakpoints
...
Set the maximum number of HW breakpoints according to the value returned
from `Hypervisor::get_guest_debug_hw_bps()`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-23 16:57:12 +02:00
Michael Zhao
223b1f6c51
hypervisor: Introduce get_guest_debug_hw_bps()
...
Added `Hypervisor::get_guest_debug_hw_bps()` for fetching the number of
supported hardware breakpoints.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-23 16:57:12 +02:00
dependabot[bot]
3126b351c1
build: bump serde_json from 1.0.83 to 1.0.85
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.83 to 1.0.85.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.83...v1.0.85 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 05:41:18 +00:00
dependabot[bot]
bfe5aca254
build: bump serde from 1.0.143 to 1.0.144 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-22 22:03:39 -07:00
dependabot[bot]
fba95cbc4c
build: bump serde from 1.0.143 to 1.0.144
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 00:22:35 +00:00
dependabot[bot]
86dc1b50e3
build: bump serde_json from 1.0.83 to 1.0.85 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.83 to 1.0.85.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.83...v1.0.85 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-22 23:42:53 +00:00
Wei Liu
3e6b0a5eab
vmm: unify TranslateVirtualAddress error for both x86_64 and aarch64
...
Using anyhow::Error should cover both architectures.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-22 09:37:21 -07:00
Michael Zhao
88bbf7989a
tests: Enable live upgrade tests on AArch64
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-22 10:51:18 +08:00
Michael Zhao
c798b958f3
vmm: Extend seccomp rules for GDB
...
Add 'KVM_SET_GUEST_DEBUG' ioctl to seccomp filter rules.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
575458ded4
hypervisor: Enable gdb HW breakpoint on AArch64
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
0522e40933
vmm: Implement translate_gva on AArch64
...
On AArch64, `translate_gva` API is not provided by KVM. We implemented
it in VMM by walking through translation tables.
Address translation is big topic, here we only focus the scenario that
happens in VMM while debugging kernel. This `translate_gva`
implementation is restricted to:
- Exception Level 1
- Translate high address range only (kernel space)
This implementation supports following Arm-v8a features related to
address translation:
- FEAT_LPA
- FEAT_LVA
- FEAT_LPA2
The implementation supports page sizes of 4KiB, 16KiB and 64KiB.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
5febdec81a
vmm: Enable gdbstub on AArch64
...
The `gva_translate` function is still missing, it will be added with a
separate commit.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
baa58ad8bf
Cargo.lock: Update kvm-ioctls
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Nuno Das Neves
fdc8546eef
vmm: aarch64: Use GIC_V3_* consts instead of magic numbers in create_madt()
...
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2022-08-21 17:06:48 +08:00
Sebastien Boeuf
cdcd4d259e
vmm: serial: Wait for PTY to be available before writing to it
...
The goal of this patch is to provide a reliable way to detect when the
other end of the PTY is connected, and therefore be able to identify
when we can write to the PTY device. This is needed because writing to
the PTY device when the other end isn't connected causes the loss of
the written bytes.
The way to detect the connection on the other end of the PTY is by
knowing the other end is disconnected at first with the presence of the
EPOLLHUP event. Later on, when the connection happens, EPOLLHUP is not
triggered anymore, and that's when we can assume it's okay to write to
the PTY main device.
It's important to note we had to ensure the file descriptor for the
other end was closed, otherwise we would have never seen the EPOLLHUP
event. And we did so by removing the "sub" field from the PtyPair
structure as it was keeping the associated File opened.
Fixes #3170
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-19 14:39:06 +01:00
Bo Chen
1ee41a98de
virtio-devices: net: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-19 08:54:25 +02:00
Bo Chen
b4fe41ad0c
virtio-devices: block: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-19 08:54:25 +02:00
dependabot[bot]
0b15e378c7
build: bump gdbstub_arch from 0.2.3 to 0.2.4
...
Bumps [gdbstub_arch](https://github.com/daniel5151/gdbstub ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/daniel5151/gdbstub/releases )
- [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daniel5151/gdbstub/commits )
---
updated-dependencies:
- dependency-name: gdbstub_arch
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-19 02:11:15 +00:00
dependabot[bot]
7f51357812
build: bump gdbstub from 0.6.2 to 0.6.3
...
Bumps [gdbstub](https://github.com/daniel5151/gdbstub ) from 0.6.2 to 0.6.3.
- [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.6.2...0.6.3 )
---
updated-dependencies:
- dependency-name: gdbstub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-19 00:36:29 +00:00
dependabot[bot]
6fefca39e6
build: bump mshv-ioctls from a4c9916 to 8a25e36
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `a4c9916` to `8a25e36`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](a4c9916124...8a25e361ce )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-18 23:49:56 +00:00
dependabot[bot]
0b7d2caf76
build: bump libc from 0.2.131 to 0.2.132 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.131 to 0.2.132.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.131...0.2.132 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-18 23:41:40 +00:00
Rob Bradford
396f9ce2c6
vmm: Deprecate non-PVH firmware loading
...
Curently all the firmware blobs we support can use PVH loading.
See: #4511
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-18 17:29:44 +01:00
Markus Napierkowski
b49f8b9248
virtio-devices: rng: correctly indicate number of bytes written
...
Reads from the random file may only be partial, e.g., if the random file is an ordinary text
file. When that happens, the device needs to signal to the driver that only parts of the buffer have
been overwritten.
Signed-off-by: Markus Napierkowski <markus.napierkowski@cyberus-technology.de >
2022-08-18 14:44:58 +01:00
Rob Bradford
31dfe3d02a
tests: Enable live upgrade tests
...
Following our recent v26.0 release we can re-enable our live upgrade
tests to try and make it possible for us to move to making LTS releases.
Currently limited to x86-64 as the live upgrade tests fail on aarch64.
Fixes : #3949
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-18 14:41:22 +01:00
Rob Bradford
476e30f5cb
Jenkinsfile: Temporarily remove x86-64 bare metal testing
...
These machines will be temporarily unavailable.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 11:18:47 -07:00
dependabot[bot]
ccc88ccfd2
build: bump libc from 0.2.131 to 0.2.132
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.131 to 0.2.132.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.131...0.2.132 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 16:30:47 +00:00
Rob Bradford
ed9e54d6c7
build: Release v26.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 16:49:03 +01:00
Rob Bradford
282a1001ef
vmm: x86_64: Rename load_firmware() to reflect its purpose
...
This function only supports loading legacy, non-PVH firmware binaries.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
0d682e185f
vmm: x86_64: Add support for firmware loading
...
Since our firmware files are still designed to be used via PVH use the
load_kernel() function to load the firmware falling back to legacy
firmware loading if necessary.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
8ec5a248cd
main, vmm: Add option to pass firmware parameter in payload
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
763ea7da42
vmm: x86_64: Split payload loading into it's own function
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
2856074d12
vmm: x86_64: Make kernel loading use PayloadConfig
...
Minor refactoring to start supporting loading a firmware payload
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
485900eeb4
vmm: x86_64: Use more general name for payload handling
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
6988da79d2
vmm: x86_64: Split legacy firmware loading into own function
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
dependabot[bot]
80f7d62e1c
build: bump anyhow from 1.0.61 to 1.0.62
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.61...1.0.62 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 00:39:07 +00:00
dependabot[bot]
4c5c7fb77c
build: bump once_cell from 1.13.0 to 1.13.1 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 00:17:32 +00:00
dependabot[bot]
1b8b2fc1af
build: bump once_cell from 1.13.0 to 1.13.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-16 23:44:22 +00:00
dependabot[bot]
7a911db4fa
build: bump anyhow from 1.0.61 to 1.0.62 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.61...1.0.62 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-16 23:44:00 +00:00
Bo Chen
8f3462b3e3
tests: live_migration: Run most tests in parallel
...
Only the ovs-dpdk live-migration tests need to run sequentially as they
use the same ovs-dpdk setup.
This is to reduce our CI time, particularly for the live-migration
and aarch64 jobs.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 22:42:33 +01:00
Bo Chen
1f70d16c12
tests: Avoid name clashing for 'parallel/sequential' tests
...
Add prefix 'common_' to make them more specific.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 22:42:33 +01:00
Steven Dake
25f815e7d1
docs: README.md: Use correct package name for qemu-img
...
The documentation states to install qemu-img. This is located in the
package qemu-utils. The documentation imples the binary is wihtin the
qemu-img package, which doesn't exist.
Signed-off-by: Steven Dake <sdake@lambdal.com >
2022-08-16 10:48:34 -07:00
Bo Chen
76bde33fc4
tests: live-migration: Cleanup ovs-dpdk after terminating VMs
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
9591e225e6
virtio-devices: vhost_user: Fix a typo for error reporting
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
df5b803a63
virtio-devices: Shutdown VMM upon worker thread errors
...
Fixes : #4462
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
8c38992143
virtio-devices: balloon: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
068ea9a4db
virtio-devices: mem: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
b1752994d5
virtio-devices: Report errors from EpollHelperHandler::handle_event
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
a7f3620564
virtio-devices: net: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
54c484397e
virtio-devices: mem: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
f9b36a3412
virtio-devices: block: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
1793c1cb39
virtio-devices: balloon: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
b67755be17
virtio-devices: Derive thiserror::Error and drop unsed errors
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
4a2539cb92
virtio-devices: vhost-user: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
f39b08f21f
net_util: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
6a1e637a46
block_util: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Rob Bradford
041acf2a65
CONTRIBUTING.md: Add sample pre-commit hook
...
If contributors add this pre-commit hook we should have fewer issues
with build churn on our CI as the most basic checks will pass.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-16 09:42:39 +01:00
dependabot[bot]
2ee7c663c2
build: bump os_str_bytes from 6.2.0 to 6.3.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.2.0...6.3.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 23:42:31 +00:00
dependabot[bot]
b865b059aa
build: bump libc from 0.2.129 to 0.2.131
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.129 to 0.2.131.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.129...0.2.131 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 11:46:09 +00:00
dependabot[bot]
1012530bdd
build: bump os_str_bytes from 6.2.0 to 6.3.0
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.2.0...6.3.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 10:55:50 +00:00
dependabot[bot]
5b60e5372b
build: bump clap from 3.2.16 to 3.2.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.17/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.16...v3.2.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 11:04:39 +01:00
dependabot[bot]
dc540a7549
build: bump clap from 3.2.16 to 3.2.17 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.17/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.16...v3.2.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-13 00:12:23 +00:00
dependabot[bot]
6c492d8512
build: bump libc from 0.2.129 to 0.2.131 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.129 to 0.2.131.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.129...0.2.131 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-12 23:41:15 +00:00
Anatol Belski
944d09208e
ci: Initial Windows image integration
...
This enables the Windows test module. One basic test is enabled,
while all others are disabled yet for aarch64. Jenkins file is
extended with the corresponding step for aarch64.
installAzureCli() is parametrized.
It seems that transferring a 30GB image would take >= 15 minutes. An
optimization here is having a gzip'ed image to 10GB which would unpack
in 3 minutes. Expect to be quicker than transferring an uncompressed
image while on another network.
Signed-off-by: Anatol Belski <ab@php.net >
2022-08-12 15:04:06 +01:00
dependabot[bot]
c591a96ecb
build: bump anyhow from 1.0.60 to 1.0.61
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.60 to 1.0.61.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.60...1.0.61 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-12 00:48:16 +00:00
dependabot[bot]
eb0ce4b4d6
build: bump anyhow from 1.0.60 to 1.0.61 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.60 to 1.0.61.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.60...1.0.61 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-11 23:41:48 +00:00
Rob Bradford
c59b5e18a8
.github: Move per-commit check (using --tests) to quality checks
...
This removes the requirement for the tests (dev-dependencies) to build
with all supported toolchains including the MSRV.
See: #4318
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-11 13:18:33 +01:00
Sebastien Boeuf
98f949d35d
vmm: Add new I/O ports for ACPI shutdown and PM timer devices
...
Adding new I/O ports for both the ACPI shutdown and the ACPI PM timer
devices so they can be triggered from both addresses. The reason for
this change is that TDX expects only certain I/O ports to be enabled
based on what QEMU exposes. We follow this to avoid new ports from being
opened exclusively for Cloud Hypervisor.
We have to keep the former I/O ports available given all firmwares
haven't been updated yet. Once we reach a point where we know both Rust
Hypervisor Firmware, OVMF, TDVF and TDSHIM have been updated with the
new port values, we'll be able to remove the former ports.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-11 11:46:09 +01:00
Bo Chen
0b182be65e
fuzz: block: Remove meaningless setup to the virt-queue
...
The current fuzzer defines a 'format' for the random input 'bytes' from
libfuzzer, but this 'format' failed to improve the fuzzing
efficiency. Instead, the 'format' parsing process obfuscates the fuzzer and
makes the fuzzing engine much harder to focus on the actual fuzzing
target (e.g. virtio-block queue event handling). It is actually worse than
simply using the random inputs as the virt queue content for fuzzing.
We can later introduce a different 'format' to the input 'bytes' for
better fuzzing, say focusing more on virito-block fuzzing through
ensuring the virt queue content always has a valid 'available'
descriptor chain to process.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-11 09:35:46 +02:00
Bo Chen
fbec4a070d
fuzz: block: Ensure the virtio-block thread is killed and joined
...
This also ensures that the 'queue_evt' is fully processed, as we enforce
the main thread is waiting for the virtio-block thread to process the
'kill_evt' which is after the 'queue_evt' processing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-11 09:35:46 +02:00
Bo Chen
5ba3b80e83
fuzz: block: Ensure a queue event is properly processed
...
Currently the main thread returns immediately after sending a 'queue'
event which is rarely received and processed by the virtio-block
thread (unless system is in high workload). In this way, the fuzzer is
mostly doing nothing and is unable to reproduce its behavior
deterministically (from the same inputs). This patch relies on a
'level-triggered' epoll to ensure a 'queue' event is properly processed
before return from the main thread.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-11 09:35:46 +02:00
dependabot[bot]
1fda830961
build: bump libc from 0.2.127 to 0.2.129 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.127 to 0.2.129.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.127...0.2.129 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 23:45:25 +00:00
Rob Bradford
8c22c03e1e
vmm: openapi: Switch to describing new payload API
...
The old API remains usable, and will remain usable for two releases but
we should only advertise the new API.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
51fdc48817
vmm: openapi: Fix OpenAPI YAML file formatting
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
999bc2baca
tests: Update integration test to use new payload API
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
072af95609
docs: api.md: Fix table markdown syntax
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
6fda567ab8
docs: Update API documentation for payload API
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
cef51a9de0
vmm: Encompass guest payload configuration in PayloadConfig
...
Introduce a new top level member of VmConfig called PayloadConfig that
(currently) encompasses the kernel, commandline and initramfs for the
guest to use.
In future this can be extended for firmware use. The existing
"--kernel", "--cmdline" and "initramfs" CLI parameters now fill the
PayloadConfig.
Any config supplied which uses the now deprecated config members have
those members mapped to the new version with a warning.
See: #4445
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 15:12:34 +01:00
Sebastien Boeuf
5810e3bee8
test_infra: Enhance error reporting related to pipe resizing
...
Whenever starting a test with the capture_output option, both stdout and
stderr pipes are resized to a greater capacity. But the problem is that
when the system call fcntl() fails, we need to know about the error
returned by the system so that we can apply the necessary changes.
This patch simply enhances the error checking and reporting related to
the invocation of fcntl() when trying to resize a pipe.
Refers to #4475
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-10 14:39:42 +01:00
Sebastien Boeuf
6d452fad52
tests: Improve test_virtio_block_topology reliability
...
The test test_virtio_block_topology has been recently failing due to an
error happening in losetup while trying to set the block size. Since
there's no option in losetup for retrying, we took the approach of
programming the expected behavior of creating a loop device relying
directly on the system ioctl LOOP_CONFIGURE. We apply a retry loop based
on the result returned by this ioctl, so that we don't fail on the first
try. We also added a sleep before retrying, hoping this would help the
next iteration to succeed.
Fixes #3494
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-10 14:43:26 +02:00
dependabot[bot]
561e6a5b6e
build: bump vfio-ioctls from 1ff2324 to c52e88a
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `1ff2324` to `c52e88a`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](1ff2324e5c...c52e88ac55 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 10:02:17 +00:00
dependabot[bot]
3d9c9d720f
build: bump libc from 0.2.127 to 0.2.129
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.127 to 0.2.129.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.127...0.2.129 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 09:11:29 +00:00
dependabot[bot]
dde2eb531b
build: bump serde from 1.0.142 to 1.0.143
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.142 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 09:10:13 +02:00
dependabot[bot]
2cc21d00e2
build: bump serde from 1.0.142 to 1.0.143 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.142 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 23:40:23 +00:00
Bo Chen
4e31206403
test_infra: Avoid file descriptor leak with epoll
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-09 14:21:05 -07:00
Wei Liu
00c1b4a95b
hypervisor: fix a clippy warning
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Wei Liu
f42c6d567d
devices: fix a clippy warning
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Wei Liu
ac0aa8aa5e
vfio_user: fix two clippy warnings
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Wei Liu
8a7f3425d8
qcow: fix two clippy warnings
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Bo Chen
c5fdc47918
virtio-devices: block: Avoid panic with invalid guest address
...
Remove the use of 'unwrap()' that assumes the guest address for request
status is always valid, which avoid virtio-block thread panic on
malformed descriptors from the guest.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-09 08:06:53 -07:00
Rob Bradford
6bc46ba9c1
vmm: config: Reject VFIO devices with the same path
...
By checking in the validation logic we get checking for both devices
specified in the initial config but also hotplug too.
Fixes : #4453
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-09 14:32:35 +02:00
Bo Chen
3c26e9b741
virtio-devices: Drop unused 'queue_evts' from VirtioCommon
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-09 09:59:30 +02:00
dependabot[bot]
226a21811e
build: bump anyhow from 1.0.59 to 1.0.60
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.59 to 1.0.60.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.59...1.0.60 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:47:29 +00:00
dependabot[bot]
79cf3952f3
build: bump anyhow from 1.0.59 to 1.0.60 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.59 to 1.0.60.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.59...1.0.60 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-08 23:45:47 +00:00
Sebastien Boeuf
e45e3df64d
pci: vfio: Filter out some PCI extended capabilities
...
There are PCI extended capabilities that can't be passed through the VM
as they would be unusable from a guest perspective. That's why we
introduce a way to patch what is returned to the guest when the PCI
configuration space is accessed. The list of patches is created from the
parsing of the extended capabilities in that case, and particularly
based on the presence of the SRIOV and Resizable BAR capabilities.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Signed-off-by: Steven Dake <sdake@lambdal.com >
2022-08-08 18:29:16 +02:00
Rob Bradford
9f89e0a4e0
option_parser: For tuple list type strip brackets only once
...
The new option parsing for "[..,]" syntax is much stricter and requires
that everything is balanced in terms of brackets. Change the stripping
of the brackets to only strip the first and last one rather than
multiple:
e.g. "[[a,b], [c,d]]" becomes "[a,b],[c,d]" rather than "a,b], [c"
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
19957d4fa4
option_parser: Improve error message to indicate conversion error
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
ea58d2f68a
vmm: config: Enhance test_cpu_parsing to add "affinity" parameter
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
71a7d5d85e
option_parser: Support quoting to avoid splitting
...
This is esential where the parameter value could contain commas like a
kernel command line.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
531621474f
option_parser: Rename split_commas_outside_brackets to split_commas
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
46b790b582
option_parser: Simplify code for splitting on commas
...
The parsing is now O(1) as we only consider each character in the input
once and further it removes the need for allocating memory for
reassembling the option parameter.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
9990439829
option_parser: Enhance test_option_parser
...
In particular include tests for bracket ([]) syntax grouping.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
d295de4cd5
option_parser: Move test_option_parser to option_parser crate
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Steven Dake
868d1f6902
pci: vfio: Preserve prefetchable BAR flag
...
If the BAR for the VFIO device is marked as prefetchable on the
underlying device ensure that the BAR exposed through PciConfiguration
is also marked as prefetchable.
Fixes problem where NVIDIA devices are not usable with PCI VFIO
passthrough. See related NVIDIA kernel driver bug:
https://github.com/NVIDIA/open-gpu-kernel-modules/issues/344 .
Fixes : #4451
Signed-off-by: Steven Dake <sdake@lambdal.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 14:12:09 +01:00
Wei Liu
62f1b6bc61
arch: change typ to r#type in SMBIOS code
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
2afd2f9f52
arch: drop unnecessary pub keywords from code
...
Those structures are not used outside of smbios.rs.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
a85d27bd52
tests: add OEM strings integration test
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
53aecf9341
vmm: add oem_strings to openapi
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
57e9b80123
vmm: provide oem_strings option
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
964985bb5c
arch: provide OEM strings entry support in SMBIOS
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
cb18edb535
arch: return the correct size for SMBIOS occupied space
...
The original value didn't include the size of the entry point structure.
The caused the last entry to be corrupted by other code.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 16:34:20 +01:00
Wei Liu
05e0daa411
arch: fix end of table entry in smbios
...
Previously the code used the SmbiosSysInfo structure for that purpose.
Handle 0x0003, DMI type 127, 27 bytes
<TRUNCATED>
Wrong DMI structures length: 130 bytes announced, structures occupy 131 bytes.
Fix this by using the correct structure and padding.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 16:34:20 +01:00
Wei Liu
a62b611659
arch: improve some structures in smbios code
...
There is no need to manually implement Clone for some structures.
It is better to explicitly spell out repr(C) to avoid the compiler
reordering the fields.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 16:34:20 +01:00
Sebastien Boeuf
dc75519372
tests: Improve reliability of test_bionic_ovmf
...
It's been observed on the Bionic image that udev and snapd services can
cause some delay in the VM's shutdown. Disabling them before shutting
down the VM improves the reliability of the test.
Also increasing slightly the sleep time to ensure we give the VM enough
time to shutdown before checking the list of events provided by the
event monitor.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-05 13:30:22 +01:00
dependabot[bot]
d9ee5c2640
build: bump mshv-bindings from c587dc2 to a4c9916
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `c587dc2` to `a4c9916`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](c587dc21e3...a4c9916124 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-05 08:48:56 +02:00
Wei Liu
ec4a55b860
virtio-devices: drop mshv feature
...
There is no code that needs it.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 08:48:12 +02:00
Rob Bradford
3df8c6fd3b
deps: Bulk upgrade dependencies
...
Some dependencies are not tracking the latest version in the .toml file
so update all dependencies to the latest version.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-04 18:53:33 +01:00
Sebastien Boeuf
474125db12
performance-metrics: Improve reliability of virtio_net_latency_us
...
The test virtio_net_latency_us recently failed because of the ethr tool
couldn't complete the latency measurement with the following error
message:
Error dialing the latency connection: dial tcp4
:0-\u003e172.19.0.2:8888: connect: connection refused
The "connection refused" error comes from the Golang Dial function which
couldn't complete as expected because there was no server listening on
the specified port at the specified destination.
In other words, the ethr server wasn't ready when the ethr client tried
to connect to it.
The easy way to avoid this problem is simply by increasing the sleep
time between the command spawning the ethr server in the guest and the
command running the ethr client from the host.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-04 17:52:29 +02:00
dependabot[bot]
a3bb459bff
build: bump thiserror from 1.0.31 to 1.0.32
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.31...1.0.32 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 15:27:08 +00:00
dependabot[bot]
3d947fafe5
build: bump syn from 1.0.98 to 1.0.99
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.98...1.0.99 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 14:41:52 +00:00
dependabot[bot]
7d9a704474
build: bump proc-macro2 from 1.0.42 to 1.0.43
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.42...1.0.43 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 13:57:32 +00:00
dependabot[bot]
47f9ee418d
build: bump semver from 1.0.12 to 1.0.13
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.12...1.0.13 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 13:13:44 +00:00
dependabot[bot]
38c25ea5df
build: bump itoa from 1.0.2 to 1.0.3
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 12:30:19 +00:00
dependabot[bot]
21da11cee7
build: bump serde_json from 1.0.82 to 1.0.83
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.82...v1.0.83 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 11:44:58 +00:00
dependabot[bot]
bb444f3e7c
build: bump libc from 0.2.126 to 0.2.127
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.126 to 0.2.127.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.126...0.2.127 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 10:39:47 +00:00
Sebastien Boeuf
3b0f6247b7
ci: Add test_vfio to the baremetal CI
...
Since it's not possible to run the integration test test_vfio on Azure
at the moment (because of some nested virtualization issues), we can
temporarily run it on the baremetal CI where we already run some VFIO
tests.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-04 11:37:18 +01:00
Sebastien Boeuf
9b4940f154
ci: Make L1 guest use RAW image in test_vfio
...
Rather than using the QCOW2 image, rely on the RAW one, the same way the
host relies on this RAW image to boot the first VM.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-04 11:37:18 +01:00
dependabot[bot]
4bf01fa366
build: bump paste from 1.0.7 to 1.0.8
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.7...1.0.8 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 09:55:48 +00:00
dependabot[bot]
4052a89268
build: bump serde from 1.0.141 to 1.0.142
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.141 to 1.0.142.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 09:06:58 +00:00
dependabot[bot]
73efcc1f73
build: bump unicode-ident from 1.0.2 to 1.0.3
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 07:41:36 +00:00
lizhaoxin1
b3b252a5d1
tests: Add integration test for --platform uuid
...
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
2022-08-04 09:20:06 +02:00
lizhaoxin1
65f42c1f62
vmm: openapi: Add uuid to PlatformConfig
...
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
2022-08-04 09:20:06 +02:00
lizhaoxin1
bc3a276b43
arch, vmm: Expose platform uuid via SMBIOS
...
Parse and set uuid.
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-04 09:20:06 +02:00
lizhaoxin1
3abc1e1e51
vmm: config: Add "uuid" option to "--platform"
...
The uuid indicates the unique ID of a virtual machine.
cloud-hypervisor takes the uuid passed by libvirt
and uses it to initialize cloud-init.
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
2022-08-04 09:20:06 +02:00
dependabot[bot]
147e89f413
build: bump quote from 1.0.20 to 1.0.21
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 06:36:04 +00:00
dependabot[bot]
1327350b4e
build: bump proc-macro2 from 1.0.42 to 1.0.43 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.42...1.0.43 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 05:15:18 +00:00
dependabot[bot]
9d31856c08
build: bump syn from 1.0.98 to 1.0.99 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.98...1.0.99 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 04:45:17 +00:00
dependabot[bot]
9f457887df
build: bump serde_json from 1.0.82 to 1.0.83 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.82...v1.0.83 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 04:17:32 +00:00
dependabot[bot]
4269fb1366
build: bump unicode-ident from 1.0.2 to 1.0.3 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 03:49:23 +00:00
dependabot[bot]
d889bf625d
build: bump itoa from 1.0.2 to 1.0.3 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 03:23:31 +00:00
dependabot[bot]
00b4357da3
build: bump ryu from 1.0.10 to 1.0.11 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 02:58:18 +00:00
dependabot[bot]
579d0d56e3
build: bump remain from 0.2.3 to 0.2.4 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.3...0.2.4 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 02:33:01 +00:00
dependabot[bot]
64ac6ae1a3
build: bump semver from 1.0.12 to 1.0.13 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.12...1.0.13 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 02:04:55 +00:00
dependabot[bot]
8ca7318046
build: bump remain from 0.2.3 to 0.2.4
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.3...0.2.4 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 01:49:17 +00:00
dependabot[bot]
ec16e14b2f
build: bump libc from 0.2.126 to 0.2.127 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.126 to 0.2.127.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.126...0.2.127 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 01:37:14 +00:00
dependabot[bot]
af08f6bca5
build: bump quote from 1.0.20 to 1.0.21 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 01:10:26 +00:00
dependabot[bot]
1867ee3ddd
build: bump ryu from 1.0.10 to 1.0.11
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 00:45:07 +00:00
dependabot[bot]
4e0b41ce77
build: bump serde from 1.0.141 to 1.0.142 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.141 to 1.0.142.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 00:24:12 +00:00
dependabot[bot]
b731c8863f
build: bump mshv-bindings from e38ea5d to c587dc2
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `e38ea5d` to `c587dc2`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](e38ea5d64b...c587dc21e3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-03 23:56:29 +00:00
dependabot[bot]
8d86cffc87
build: bump thiserror from 1.0.31 to 1.0.32 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.31...1.0.32 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-03 23:39:18 +00:00
Wei Liu
1a09381d1e
docs: mention thread pool option for virtiofsd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-03 20:36:22 +00:00
Sebastien Boeuf
103494f441
tests: Improve live migration tests reliability
...
Move the live migration tests to a 'jammy' worker rather than
'jammy-small'. This type of worker has more CPUs (64 vs 16) and more RAM
(256G vs 64G), which should improve the time it takes to run each test.
With this improvement, the test shouldn't fail anymore due to timeout
being reached.
A second improvement is to reduce the amount of vCPUs created for each
VM. The point is simply to check we can migrate a VM with multiple
vCPUs, therefore using 2 instead of 6 should be enough when possible.
When testing NUMA, we can't lower the amount of vCPUs since there's a
quite complex topology that is expected there.
Also, the total amount of vCPUs is reduced from 12 to 4 (again when not
testing with NUMA).
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-03 10:42:45 -07:00
Bo Chen
1125fd2667
vmm: api: Use 'BTreeMap' for 'HttpRoutes'
...
In this way, we get the values sorted by its key by default, which is
useful for the 'http_api' fuzzer.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-03 10:18:24 +01:00
Bo Chen
e5155bab62
fuzz: Add fuzzer for HTTP API
...
Fuzz the HTTP API handling code with a minimum HTTP API
receiver (e.g. mocking the behavior of our "vmm" thread).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-03 10:18:24 +01:00
Bo Chen
eb056d374a
vmm: Make 'EpollContext::add_event()' public
...
So that it can be reused by other crate, e.g. from fuzz targets.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-03 10:18:24 +01:00
dependabot[bot]
487458c9f8
build: bump anyhow from 1.0.58 to 1.0.59
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-03 00:05:18 +00:00
Sebastien Boeuf
4d74525bdc
vmm: Remove unused "poll_queue" from DiskConfig
...
The parameter "poll_queue" was useful at the time Cloud Hypervisor was
responsible for spawning vhost-user backends, as it was carrying the
information the vhost-user-block backend should have this option enabled
or not.
It's been quite some time that we walked away from this design, as we
now expect a management layer to be responsible for running vhost-user
backends.
That's the reason why we can remove "poll_queue" from the DiskConfig
structure.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-02 15:10:11 +02:00
Sebastien Boeuf
9524a8ffe8
tests: Re-enable virtio_block_topology on aarch64
...
Improve error catching on the steps creating the block device so that we
can understand if qemu-img or losetup is the faulty command leading to
an empty device path.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-02 14:46:54 +02:00
Sebastien Boeuf
fa0565234c
tests: Make test_api_shutdown and test_api_delete more reliable
...
Both of these tests have been sporadically failing through multiple CI
runs. The reason is related to cloud-init which fails to run the
"init-local" script during the second boot of the VM. This causes the
network interface to not be available, and therefore the test can't SSH
into the VM as expected. The root cause is the filesystem and cache
corruption that happens on the cloud-init disk.
The way to prevent from this issue is to sync the guest filesystem
before we shut it down, and as a security harness, we also wait for a
few seconds for the shutdown command to complete inside the guest before
we trigger the API shutdown or delete.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-02 13:13:06 +02:00
dependabot[bot]
755eb80c49
build: bump arc-swap from 1.5.0 to 1.5.1
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/vorner/arc-swap/releases )
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 10:39:22 +01:00
dependabot[bot]
ac3ab19443
build: bump fdt from 0.1.3 to 0.1.4
...
Bumps [fdt](https://github.com/repnop/fdt ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/repnop/fdt/releases )
- [Commits](https://github.com/repnop/fdt/commits )
---
updated-dependencies:
- dependency-name: fdt
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 02:38:42 +00:00
dependabot[bot]
8585d1a355
build: bump fdt from 0.1.3 to 0.1.4 in /fuzz
...
Bumps [fdt](https://github.com/repnop/fdt ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/repnop/fdt/releases )
- [Commits](https://github.com/repnop/fdt/commits )
---
updated-dependencies:
- dependency-name: fdt
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 01:22:38 +00:00
dependabot[bot]
5f539e429a
build: bump serde from 1.0.140 to 1.0.141
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 01:06:45 +00:00
dependabot[bot]
6835de0f8c
build: bump anyhow from 1.0.58 to 1.0.59 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 00:48:06 +00:00
dependabot[bot]
bf662522dd
build: bump serde from 1.0.140 to 1.0.141 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 00:21:44 +00:00
dependabot[bot]
575221cba9
build: bump clap from 3.2.15 to 3.2.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.15 to 3.2.16.
- [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/v3.2.15...v3.2.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-01 23:54:15 +00:00
dependabot[bot]
9b7af90b4c
build: bump arc-swap from 1.5.0 to 1.5.1 in /fuzz
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/vorner/arc-swap/releases )
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-01 23:39:14 +00:00
Rob Bradford
b4ed9f867e
README: Update version of Rust Hypervisor Firmware release
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-01 17:12:59 +01:00
Wei Liu
af958c9448
docs: update fs.md virtiofs command
...
The `-d` option is deprecated.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-01 08:39:08 +01:00
Sebastien Boeuf
a4859ffe85
virtio-devices: Optimize add_used() usage
...
Now that we rely on pop_descriptor_chain() rather than iter() to iterate
over a queue, there's no more borrow on the queue itself, meaning we can
invoke add_used() directly for the iteration loop. This simplifies the
processing of the queues for each virtio device, and bring some possible
performance improvement given we don't have to iterate twice over the
list of descriptors to invoke add_used().
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-29 17:41:32 +01:00
Sebastien Boeuf
87f57f7c1e
virtio-devices: Improve queue handling with pop_descriptor_chain()
...
Using pop_descriptor_chain() is much more appropriate than iter() since
it recreates the iterator every time, avoiding the queue to be borrowed
and allowing the virtio-net implementation to match all the other ones.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-29 17:41:32 +01:00
Sebastien Boeuf
a423bf13ad
virtio: Port codebase to the latest virtio-queue version
...
The new virtio-queue version introduced some breaking changes which need
to be addressed so that Cloud Hypervisor can still work with this
version.
The most important change is about removing a handle to the guest memory
from the Queue, meaning the caller has to provide the guest memory
handle for multiple methods from the QueueT trait.
One interesting aspect is that QueueT has been widely extended to
provide every getter and setter we need to access and update the Queue
structure without having direct access to its internal fields.
This patch ports all the virtio and vhost-user devices to this new crate
definition. It also updates both vhost-user-block and vhost-user-net
backends based on the updated vhost-user-backend crate. It also updates
the fuzz directory.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-29 17:41:32 +01:00
Michael Zhao
7199119bb2
hypervisor: Remove Vcpu::read_mpidr() on AArch64
...
Replaced `read_mpidr()` with `get_sys_reg()`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
5b54dc60aa
hypervisor: Add Vcpu::get_sys_reg() on AArch64
...
Added function `Vcpu::get_sys_reg()` to get single system register.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
ecb66b5e94
arch: Declare system registers on AArch64
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
cd7f36a713
hypervisor: Remove get/set_reg() on AArch64
...
`Vcpu::get/set_reg()` were only invoked in Vcpu itself.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
f7b6d99c2d
hypervisor: Remove get/set_sys_regs() on AArch64
...
`hypervisor::Vcpu::get/set_sys_regs()` are only used in Vcpu internally.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Wei Liu
e1a70f676a
hypervisor: use serde_with with LapicState
...
Drop the hand-rolled serializer and deserializer.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-28 14:57:29 +01:00
Wei Liu
bec47ebcc9
hypervisor: simplify LapicState
...
Both KVM and MSHV share the same layout. We can drop one level of
indirection.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-28 08:52:28 +01:00
dependabot[bot]
ddc9004471
build: bump redox_syscall from 0.2.15 to 0.2.16
...
Bumps redox_syscall from 0.2.15 to 0.2.16.
---
updated-dependencies:
- dependency-name: redox_syscall
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-28 00:39:28 +00:00
dependabot[bot]
0c9b4fefc0
build: bump mshv-ioctls from 7ac1b80 to e38ea5d
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `7ac1b80` to `e38ea5d`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](7ac1b80bff...e38ea5d64b )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-27 23:53:04 +00:00
Rob Bradford
df10dab952
build: Skip running Jenkins if fuzzer only changes
...
There is no point in wasting resources building use Jenkins if the
change only modifies the fuzzers.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Rob Bradford
57ee561c39
fuzz: Place targets in alphabetical order
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Rob Bradford
a330c531b0
fuzz: Add new fuzzer for emulated cmos device
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Rob Bradford
e4211272ad
fuzz: Add new fuzzer for emulated serial device
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Sebastien Boeuf
f4e2198767
docs: Extend the list of TDX guest limitations
...
Adding a new limitation related to the TDX guest kernel as it doesn't
allow for most ACPI devices, meaning the PCI hotplug through ACPI isn't
supported unless we use 'tdx_disable_filter' boot parameter.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-26 17:47:03 +02:00
Rob Bradford
f8f0b40e94
build: Move Jenkins workers over to jammy
...
Fixes : #3862
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-26 14:53:49 +01:00
Maximilian Nitsch
87c0791d53
api-client: Handle body_offset is None
...
Handle the case `body_offset` is `None` instead of calling `unwrap()`
which leads to a panic.
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com >
2022-07-26 15:39:31 +02:00
dependabot[bot]
c46a9592c0
build: bump clap from 3.2.14 to 3.2.15
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.15/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.14...v3.2.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-26 07:52:06 +00:00
Sebastien Boeuf
561791ed22
tests: Reliably trigger a guest OOM
...
Rely on /proc/sysrq-trigger to forcibly trigger an OOM in the guest.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-26 09:22:38 +02:00
Rob Bradford
857edc71a9
vmm: cpu: Remove now unused CpuManager::vcpus_paused()
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-26 09:22:25 +02:00
Rob Bradford
0e29379bcf
vmm: Make gdb break/resuming more resilient
...
When starting the VM such that it is already on a breakpoint (via
stop_on_boot) when attached to gdb then start the vCPUs in a paused
state rather than starting the vCPUs later (upon resume).
Further, make the resumption/break of the VM more resilient by only
attempting to resume the vCPUs if were are already in a break point and
only attempting to pause/break if we were already running.
Fixes : #4354
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-26 09:22:25 +02:00
dependabot[bot]
23352c4945
build: bump proc-macro2 from 1.0.41 to 1.0.42
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.41...1.0.42 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-26 09:05:18 +02:00
dependabot[bot]
160528b6f5
build: bump proc-macro2 from 1.0.40 to 1.0.42 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.40 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.40...1.0.42 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-26 00:26:14 +00:00
dependabot[bot]
00200296ec
build: bump proc-macro2 from 1.0.40 to 1.0.41
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.40...1.0.41 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-25 23:57:01 +00:00
dependabot[bot]
c612886150
build: bump clap from 3.2.14 to 3.2.15 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.15/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.14...v3.2.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-25 23:41:19 +00:00
Rob Bradford
a749182777
vmm: acpi: Use ACPI platform device addresses from DeviceManager
...
Remove the hardcoded addresses.
Also remove PM_TMR_BLK as spec compliant implementation will use
X_PM_TMR_BLK over this field.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-25 16:16:06 +01:00
Rob Bradford
2e8eb96ef6
vmm: device_manager: Store ACPI platform addresses for later use
...
These are ready for inclusion in the FACP table.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-25 16:16:06 +01:00
Maximilian Nitsch
686e6d5082
api-client: Break the receive loop if the VMM shuts down the socket
...
Breaks the receive loop of the API client when the VMM shuts down the
socket connection. A shutdown is indicated by the return value 0 of the
`recv()` system call.[^1][^2] This case was not handled before, so the
API client tried infinitely to receive more bytes and did not return.
[^1]: https://linux.die.net/man/2/recv
[^2]: https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com >
2022-07-25 13:19:37 +01:00
Rob Bradford
b1a87cb698
hypervisor: mshv: Remove more #[allow(dead_code)] and unused code
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-25 10:09:46 +01:00
dependabot[bot]
869e96ed10
build: bump redox_syscall from 0.2.13 to 0.2.15
...
Bumps redox_syscall from 0.2.13 to 0.2.15.
---
updated-dependencies:
- dependency-name: redox_syscall
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-22 23:59:26 +00:00
Wei Liu
bcaa299c55
devices: arch is only needed by aarch64
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 22:29:49 +01:00
Wei Liu
454964cc90
vm-allocator: arch is only needed by aarch64
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 22:29:49 +01:00
Wei Liu
2afd0e626a
tree-wide: drop unneeded dependencies
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 22:29:49 +01:00
Wei Liu
e885c35a54
vhost_user_net: remove {self} import
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 14:37:03 +01:00
Wei Liu
ff7773044c
tree-wide: drop some unneeded allow clauses
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 14:37:03 +01:00
Wei Liu
5aaa647639
.github: build MSHV and KVM at the same time
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
7b99bd9496
hypervisor: suppress clippy::large_enum_variant
...
MSHV's vcpu state is small, but it will grow in the future.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
bb19c3d2b7
hypervisor: pick the available hypervisor automatically
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
aa66526ea0
hypervisor: add a function to check availability
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
c3ce5aa5b1
hypervisor: adjust new function return type
...
Make them return wrapped trait object directly.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
ad33f7c5e6
vmm: return seccomp rules according to hypervisors
...
That requires stashing the hypervisor type into various places.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
9fc3379e8d
hypervisor: add a function to return hypervisor type
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
d56263706d
main: unify error message for hypervisor availability
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
4a00371fe8
hypervisor: drop unused modules
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
ae7f74d0a8
hypervisor: drop kvm guard from some Vcpu trait functions
...
And provide default implementations.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
cb6a14dec9
hypervisor: drop check_extension from Vm trait
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
dependabot[bot]
e931c40e96
build: bump clap from 3.2.13 to 3.2.14 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.13 to 3.2.14.
- [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/v3.2.13...v3.2.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 23:40:33 +00:00
Wei Liu
a96a5d7816
hypervisor, vmm: use new vfio-ioctls
...
Use the new vfio-ioctls APIs. Drop Cloud Hypervisor's Device trait
since it is no longer needed.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
5e2c70b87f
hypervisor: aarch64: drop set/has_vcpu_attr
...
This avoids the need for exposing DeviceAttr.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
eca6609dbb
hypervisor: mshv: create_device returns DeviceFd directly
...
This aligns with KVM's code. No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
c5e966c972
hypervisor: aarch64: use KVM DeviceFd in GIC code
...
The code is obviously KVM only. We don't need to use dyn Device there.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
0856ebbd42
hypervisor: aarch64: drop set_its_device
...
The field can be set directly.
This eliminates one place where dyn Device is used outside of KVM
aarch64 code.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
422bf89d4d
hypervisor: drop create_device from Vm trait
...
This then avoids the need for creating a generic DeviceFd type in the
hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
500d91311f
hypervisor: aarch64: kvm: use concrete KvmVm type where possible
...
The code was moved from the vmm crate to the hypervisor crate. After the
move it is trivially obvious that it only works with KVM. Use concrete
types where possible.
This allows us to drop create_device from the Vm trait.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
b5270e0b45
hypervisor: allow downcasting to hypervisor VM types
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
f84ddedb1a
hypervisor, vmm: introduce trait functions for aarch64 PMU
...
The original code uses kvm_device_attr directly outside of the
hyeprvisor crate. That leaks hypervisor details.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
dependabot[bot]
b5d10eb28b
build: bump clap from 3.2.13 to 3.2.14
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.13 to 3.2.14.
- [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/v3.2.13...v3.2.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 16:07:56 +00:00
dependabot[bot]
de14db7320
build: bump hashbrown from 0.12.2 to 0.12.3
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.2 to 0.12.3.
- [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.12.2...v0.12.3 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 17:20:40 +02:00
dependabot[bot]
269b78ca0f
build: bump serde from 1.0.139 to 1.0.140
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.139 to 1.0.140.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 13:17:32 +00:00
Sebastien Boeuf
5f98710471
virtio-devices: vhost-user: Stop the vrings on a virtio reset
...
Whenever a virtio reset happens, the vhost-user backend should be
notified that the vring should be stopped. This is performed by calling
GET_VRING_BASE on the appropriate queue indexes.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
613c60fc6f
virtio-devices: vhost-user: Enable correct queue indexes
...
Rather than relying on the amount of queues to enable or disable the
queue that have been activated, we rely on the actual queue indexes
provided through the tuple including the queue index, the Queue and the
EventFd. By storing the list of indexes, we simplify the code and also
make it more accurate in case some queues aren't activated.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
3f62a172b2
virtio-devices: Pass a list of tuples for virtqueues
...
Instead of passing separately a list of Queues and the equivalent list
of EventFds, we consolidate these two through a tuple along with the
queue index.
The queue index can be very useful if looking for the actual index
related to the queue, no matter if other queues have been enabled or
not.
It's also convenient to have the EventFd associated with the Queue so
that we don't have to carry two lists with the same amount of items.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
423c54eafe
virtio-devices: Pull correct EventFd from queue_evts list
...
When preparing the activator, we must provide the correct queue index to
clone the right EventFd associated with the queue.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
e1a63822fa
virtio-devices: fs: Reduce minimal amount of enabled queues to 1
...
It's not mandatory for the virtio-fs driver to enable all virtqueues
provided by the backend since all it needs is one request queue to work
correctly. Therefore we lower the minimal amount of enabled queues to 1.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
dependabot[bot]
3083da154e
build: bump vfio-ioctls from 38272d3 to 0e0e115
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `38272d3` to `0e0e115`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](38272d3f06...0e0e115551 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 12:09:41 +00:00
dependabot[bot]
5c20869dd5
build: bump clap from 3.2.12 to 3.2.13
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.12 to 3.2.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.12...v3.2.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 12:00:29 +01:00
Sebastien Boeuf
ec27e0ee82
tests: Fix test_virtio_balloon_deflate_on_oom()
...
It might sometimes take a few seconds for the guest to trigger the OOM
and report it back to the host. That's why this patch adds some sleep
time between the command in the guest supposedly triggering the OOM and
the check of the balloon size from the host.
Fixes #4336
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 12:00:14 +01:00
dependabot[bot]
0bb509e5d2
build: bump serde from 1.0.139 to 1.0.140 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.139 to 1.0.140.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 23:51:30 +00:00
dependabot[bot]
a161e56bef
build: bump unicode-ident from 1.0.1 to 1.0.2
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.1...1.0.2 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 12:36:40 +00:00
dependabot[bot]
777ba6d577
build: bump hashbrown from 0.12.2 to 0.12.3 in /fuzz
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.2 to 0.12.3.
- [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.12.2...v0.12.3 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 11:55:15 +00:00
dependabot[bot]
b0258c7b13
build: bump unicode-ident from 1.0.1 to 1.0.2 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.1...1.0.2 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 11:22:50 +00:00
dependabot[bot]
55c9562c4d
build: bump os_str_bytes from 6.1.0 to 6.2.0
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.1.0...6.2.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 11:21:04 +00:00
dependabot[bot]
7419a021cd
build: bump clap from 3.2.12 to 3.2.13 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.12 to 3.2.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.12...v3.2.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 10:55:52 +00:00
dependabot[bot]
cc9908efe2
build: bump os_str_bytes from 6.1.0 to 6.2.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.1.0...6.2.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 10:26:31 +00:00
dependabot[bot]
474e55724f
build: bump vmm-sys-util from 0.9.0 to 0.10.0 in /fuzz
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: vmm-sys-util
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-20 09:40:28 +00:00
dependabot[bot]
b440cb7d23
build: bump vmm-sys-util from 0.9.0 to 0.10.0
...
This patch requires the vhost-user-backend crate to be bumped from 0.5.0
to 0.5.1.
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: vmm-sys-util
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-20 09:40:28 +00:00
Wei Liu
f21fc1dcb6
hypervisor: x86: provide a generic MsrEntry structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-20 10:13:41 +01:00
Wei Liu
4d2cc3778f
hypervisor: move away from MsrEntries type
...
It is a flexible array. Switch to vector and slice instead.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-20 10:13:41 +01:00
Wei Liu
563919fc4a
hypervisor: x86: drop get_msr_list from hypervisor trait
...
It is not needed by code outside of the hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
05e5106b9b
hypervisor x86: provide a generic LapicState structure
...
This requires making get/set_lapic_reg part of the type.
For the moment we cannot provide a default variant for the new type,
because picking one will be wrong for the other hypervisor, so I just
drop the test cases that requires LapicState::default().
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
d461daa7fa
hypervisor: x86: drop get/set VcpuEvents from vcpu trait
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
58dbf07453
hypervisor: x86: drop get/set Xcrs from Vcpu trait
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
c8d9a43072
hypervisor: x86: drop get/set Xsave from Vcpu trait
...
They are only needed internally within the hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
6a8c0fc887
hypervisor: provide a generic FpuState structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 22:15:30 +01:00
Wei Liu
08135fa085
hypervisor: provide a generic CpudIdEntry structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 22:15:30 +01:00
Wei Liu
45fbf840db
hypervisor, vmm: move away from CpuId type
...
CpuId is an alias type for the flexible array structure type over
CpuIdEntry. The type itself and the type of the element in the array
portion are tied to the underlying hypervisor.
Switch to using CpuIdEntry slice or vector directly. The construction of
CpuId type is left to hypervisors.
This allows us to decouple CpuIdEntry from hypervisors more easily.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 22:15:30 +01:00
Rob Bradford
9fdfdf25fb
tests: Disable test_windows_guest_snapshot_restore for now
...
See: #4327
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-18 17:42:14 +01:00
Rob Bradford
f8f2f09a19
tests: Skip test_vfio for now
...
See: #4324
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-18 14:35:41 +01:00
Wei Liu
edf6dda705
hypervisor: mshv: drop get_suspend_regs
...
It is not used (yet).
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 11:02:51 +01:00
Wei Liu
f1ab86fecb
hypervisor: x86: provide a generic SpecialRegisters structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
d2b194c4f1
hypervisor: x86: provide a generic DescriptorTable structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
75797827d5
hypervisor: x86: provide a generic SegmentRegister structure
...
And drop SegmentRegisterOps since it is no longer required.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
8b7781e267
hypervisor: x86: provide a generic StandardRegisters structure
...
We only need to do this for x86 since MSHV does not have aarch64 support
yet. This reduces unnecessary code churn.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
d20f647b32
hypervisor: provide a generic IrqRoutingEntry structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
dependabot[bot]
2de7121680
build: bump clap from 3.2.11 to 3.2.12
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.11 to 3.2.12.
- [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/v3.2.11...v3.2.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-15 00:43:41 +00:00
dependabot[bot]
709958be34
build: bump clap from 3.2.11 to 3.2.12 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.11 to 3.2.12.
- [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/v3.2.11...v3.2.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-14 23:36:53 +00:00
Wei Liu
4201bf4011
hypervisor: provide a generic ClockData structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
beb4f86b82
hypervisor, vmm: drop VmState and code
...
VmState was introduced to hold hypervisor specific VM state. KVM does
not need it and MSHV does not really use it yet.
Just drop the code. It can be easily revived once there is a need.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
72d552e5e1
hypervisor: provide a generic CpuState structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
dd592e86fd
hypervisor: do not export VcpuEvents
...
It is not used anywhere outside of the hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
f9f0a60dcf
hypervisor: provide a generic IoEventAddress structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
9810ed4496
hypervisor: provide a generic MpState structure
...
It is however only used for KVM right now because MSHV does not need it
yet.
Nonetheless a stub MSHV constructor should be there and get/set
functions should be implemented for MSHV.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
02866fccb0
hypervisor: drop unused IrqRouting struct from MSHV
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Alyssa Ross
a455917db5
vmm: fix missed API or debug events
...
Previously, we were assuming that every time an eventfd notified us,
there was only a single event waiting for us. This meant that if,
while one API request was being processed, two more arrived, the
second one would not be processed (until the next one arrived, when it
would be processed instead of that event, and so on). To fix this,
make sure we're processing the number of API and debug requests we've
been told have arrived, rather than just one. This is easy to
demonstrate by sending lots of API events and adding some sleeps to
make sure multiple events can arrive while each is being processed.
For other uses of eventfd, like the exit event, this doesn't matter —
even if we've received multiple exit events in quick succession, we
only need to exit once. So I've only made this change where receiving
an event is non-idempotent, i.e. where it matters that we process the
event the right number of times.
Technically, reset requests are also non-idempotent — there's an
observable difference between a VM resetting once, and a VM resetting
once and then immediately resetting again. But I've left that alone
for now because two resets in immediate succession doesn't sound like
something anyone would ever want to me.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2022-07-14 17:44:11 +01:00
Wei Liu
4a1eab11b4
hypervisor: do not export VcpuExit
...
It is not used anywhere outside of the hypervisor crate.
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 16:37:47 +01:00
Michael Zhao
f0ad7fc74f
hypervisor: Remove arch_target = "arm"' in cfg`
...
Some `arch_target = "arm"' usages on VCPU related code are not correct.
And we don't support 32-bit ARM architecture.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-14 22:55:19 +08:00
Michael Zhao
2d8635f04a
hypervisor: Refactor system_registers on AArch64
...
Function `system_registers` took mutable vector reference and modified
the vector content. Now change the definition to `get/set` style.
And rename to `get/set_sys_regs` to align with other functions.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-14 22:55:19 +08:00
Michael Zhao
c445513976
hypervisor: Refactor core_registers on AArch64
...
On AArch64, the function `core_registers` and `set_core_registers` are
the same thing of `get/set_regs` on x86_64. Now the names are aligned.
This will benefit supporting `gdb`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-14 22:55:19 +08:00
dependabot[bot]
fc2cc53d51
build: bump clap from 3.2.8 to 3.2.11
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.8 to 3.2.11.
- [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/v3.2.8...v3.2.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-14 14:49:35 +00:00
Wei Liu
0e8769d76a
device_manager: assert passthrough_device has the correct type
...
There is a lot of unsafe code in such a small function. Add an assert
to help detect issues earlier.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Wei Liu
47b5581c50
hypervisor: drop a level of indirection for MSHV's DeviceFd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Wei Liu
3710932248
hypervisor: drop a level of indirection for KVM's DeviceFd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Wei Liu
ddad5f3510
hypervisor: allow downcasting to KVM / MSHV device fd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Archana Shinde
28683b8471
docs: Add step to resolve DNS for installing packages
...
For installing packages for the custom Ubuntu image, we
need to setup DNS inside the chroot.
Signed-off-by: Archana Shinde <archana.m.shinde@intel.com >
2022-07-14 07:58:13 +01:00
Wei Liu
e1cf889dbd
hypervisor: use UserMemoryRegion in the Vm trait
...
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 07:55:48 +01:00
Wei Liu
5894b5370c
hypervisor: transform between UserMemoryRegion and hypervisor structs
...
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 07:55:48 +01:00
Wei Liu
fabc940b65
hypervisor: add UserMemoryRegion and flags
...
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 07:55:48 +01:00
dependabot[bot]
6b9c5d21c4
build: bump clap from 3.2.10 to 3.2.11 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.10 to 3.2.11.
- [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/v3.2.10...v3.2.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-13 23:35:18 +00:00
dependabot[bot]
c140fd6220
build: bump hashbrown from 0.12.1 to 0.12.2 in /fuzz
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.1 to 0.12.2.
- [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.12.1...v0.12.2 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-13 00:03:10 +00:00
dependabot[bot]
7063c41811
build: bump clap from 3.2.8 to 3.2.10 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.8 to 3.2.10.
- [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/v3.2.8...v3.2.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 23:37:00 +00:00
dependabot[bot]
92f9866e2f
build: bump openssl-sys from 0.9.74 to 0.9.75
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.74 to 0.9.75.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.74...openssl-sys-v0.9.75 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 02:41:13 +00:00
dependabot[bot]
23935ad96b
build: bump io-uring from 0.5.2 to 0.5.3
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 01:55:59 +00:00
dependabot[bot]
335fd465fe
build: bump hashbrown from 0.12.1 to 0.12.2
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.1 to 0.12.2.
- [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.12.1...v0.12.2 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 00:50:10 +00:00
dependabot[bot]
b8e5c2ecca
build: bump serde from 1.0.138 to 1.0.139 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.138 to 1.0.139.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 00:20:20 +00:00
dependabot[bot]
a99c33ccfa
build: bump serde from 1.0.138 to 1.0.139
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.138 to 1.0.139.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-11 23:54:20 +00:00
dependabot[bot]
b70f2c5385
build: bump io-uring from 0.5.2 to 0.5.3 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-11 23:39:59 +00:00
Wei Liu
84bbaf06d1
hypervisor: turn boot_msr_entries into a trait method
...
This allows dispatching to either KVM or MSHV automatically.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-08 16:49:58 +01:00
Rob Bradford
121729a3b0
vmm: Split signal handling for VM and VMM signals
...
The VM specific signal (currently only SIGWINCH) should only be handled
when the VM is running.
The generic VMM signals (SIGINT and SIGTERM) need handling at all times.
Split the signal handling into two separate threads which have differing
lifetimes.
Tested by:
1.) Boot full VM and check resize handling (SIGWINCH) works & sending
SIGTERM leads to cleanup (tested that API socket is removed.)
2.) Start without a VM and send SIGTERM/SIGINT and observe cleanup (API
socket removed)
3.) Boot full VM, delete VM and observe 2.) holds.
4.) Boot full VM, delete VM, recreate VM and observe 1.) holds.
Fixes : #4269
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-08 15:15:46 +01:00
Rob Bradford
e300c3dcf7
vhdx: Avoid unwrap() of invalid header
...
In the original code:
If the first header was invalid and the second header had the same
sequence number (zero) then the invalid first header would be returned.
The new code is more Rust idiomatic and avoids this situation.
See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48858
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-08 10:19:11 +01:00
Rob Bradford
b132cd2145
build: Release v25.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-07 15:18:55 +01:00
Sebastien Boeuf
a650b8645f
deps: bump virtio-queue from 0.3.0 to 0.4.0
...
And along with virtio-queue, we must also bump vhost-user-backend from
0.3.0 to 0.5.0 (since it relies on virtio-queue 0.4.0).
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-06 16:57:09 +02:00
Sebastien Boeuf
f94a5fb4e3
virtio-devices: Pass negotiated queue size to vhost-user backend
...
The vhost-user backend was always provided the maximum queue size but
this is incorrect. Instead it must be informed of the actual queue size
that has been negotiated with the virtio driver running in the guest.
This ensures proper functioning of vhost-user-block with the Rust
Hypervisor Firmware, which uses a hardcoded queue size of 16.
Partially fixes #4285
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-06 14:45:46 +01:00
Sebastien Boeuf
00800b8499
virtio-devices: Remove deprecated call to VHOST_USER_RESET_OWNER
...
The latest vhost-user specification describes VHOST_USER_RESET_OWNER
command as deprecated with the following explanation:
This is no longer used. Used to be sent to request disabling all
rings, but some back-ends interpreted it to also discard connection
state (this interpretation would lead to bugs). It is recommended that
back-ends either ignore this message, or use it to disable all rings.
Also, it's been observed that when using either Rust Hypervisor Firmware
or EDK2 OVMF firmware with SPDK (using the block device as the boot
disk), the virtio reset that happens when the firmware no longer needs
to access the block device caused a failure by triggering the command
VHOST_USER_RESET_OWNER.
For all these reasons, this patch simplifies the virtio reset
implementation by simply disabling the virtqueues and no longer calling
into VHOST_USER_RESET_OWNER.
Partially fixes #4285
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-06 14:45:46 +01:00
dependabot[bot]
0b311f6c4c
build: bump once_cell from 1.12.1 to 1.13.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.1...v1.13.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 02:35:11 +00:00
dependabot[bot]
8063c00e67
build: bump openssl-src from 111.21.0+1.1.1p to 111.22.0+1.1.1q
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.21.0+1.1.1p to 111.22.0+1.1.1q.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 01:47:30 +00:00
dependabot[bot]
4f611c8654
build: bump serde from 1.0.137 to 1.0.138
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.137 to 1.0.138.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 00:56:48 +00:00
dependabot[bot]
d291b87288
build: bump regex from 1.5.6 to 1.6.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.6 to 1.6.0.
- [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.5.6...1.6.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 00:02:30 +00:00
dependabot[bot]
51787d30da
build: bump once_cell from 1.12.1 to 1.13.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.1...v1.13.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-05 23:47:51 +00:00
Sebastien Boeuf
63579341e1
net_util: Don't expect the interface to be IFF_RUNNING
...
Enabling the TAP interface is only about the IFF_UP flag, meaning we
shouldn't be testing the presence of IFF_RUNNING, and therefore we
shouldn't set it when not present.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-05 16:35:58 +01:00
dependabot[bot]
9c0872def7
build: bump once_cell from 1.12.0 to 1.12.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-05 11:39:42 +00:00
Rob Bradford
5dfc49c9fa
build: Update development container to Rust 1.62
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-05 11:50:46 +01:00
dependabot[bot]
65f8c3682f
build: bump serde from 1.0.137 to 1.0.138 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.137 to 1.0.138.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-05 00:04:25 +00:00
dependabot[bot]
c87466eea2
build: bump once_cell from 1.12.0 to 1.12.1 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-04 23:36:34 +00:00
Rob Bradford
6c365617ee
Revert "scripts, README.md: Bump reference kernel to 5.18.8"
...
This reverts commit 1999ab5707 .
See: #4273
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 10:55:28 +01:00
Rob Bradford
30da293d8f
tests: Report stderr on ch-remote command failure
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 09:18:18 +02:00
Rob Bradford
67bfd4e234
tests: tests_api_create_boot: Use ch-remote for creating and booting vm
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 09:18:18 +02:00
Rob Bradford
46bbe0e612
ch-remote: Simplify ch-remote create from config file
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 09:18:18 +02:00
dependabot[bot]
216f330f4e
build: bump semver from 1.0.11 to 1.0.12
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-02 00:51:37 +00:00
dependabot[bot]
bd075872d4
build: bump mshv-bindings from d94c305 to 7ac1b80
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `d94c305` to `7ac1b80`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](d94c30583f...7ac1b80bff )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-01 23:57:38 +00:00
dependabot[bot]
7fd5f41623
build: bump semver from 1.0.11 to 1.0.12 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-01 23:44:45 +00:00
Rob Bradford
93237f0106
vmm: Set MADT "Online Capable" flag
...
The Linux kernel now checks for this before marking CPUs as
hotpluggable:
commit aa06e20f1be628186f0c2dcec09ea0009eb69778
Author: Mario Limonciello <mario.limonciello@amd.com >
Date: Wed Sep 8 16:41:46 2021 -0500
x86/ACPI: Don't add CPUs that are not online capable
A number of systems are showing "hotplug capable" CPUs when they
are not really hotpluggable. This is because the MADT has extra
CPU entries to support different CPUs that may be inserted into
the socket with different numbers of cores.
Starting with ACPI 6.3 the spec has an Online Capable bit in the
MADT used to determine whether or not a CPU is hotplug capable
when the enabled bit is not set.
Link: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html?#local-apic-flags
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-01 18:45:05 +01:00
Rob Bradford
0c82e7593d
tests: Remove test on available entropy bits
...
As far as I can tell this always reports 256 for us now:
https://lore.kernel.org/lkml/YmlMGx6+uigkGiZ0@zx2c4.com/
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-01 18:45:05 +01:00
Rob Bradford
1999ab5707
scripts, README.md: Bump reference kernel to 5.18.8
...
This marginally reduced the number of patches in the fork.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-01 18:45:05 +01:00
dependabot[bot]
5c22f02f32
build: bump clap from 3.2.7 to 3.2.8
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.7 to 3.2.8.
- [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/v3.2.7...v3.2.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 22:07:39 +00:00
dependabot[bot]
c7afb44c5a
build: bump smallvec from 1.8.1 to 1.9.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.1...v1.9.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 22:00:55 +01:00
Rob Bradford
b0afeeeb65
ch-remote: Add "create" command to ch-remote
...
Tested by:
1. Path: ch-remote --api-socket .. create test-config.json
2. stdin with "-" path: ch-remote --api-socket .. create - < test-config.json
2. stding with implicit "-": ch-remote --api-socket .. create < test-config.json
Fixes : #4250
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 21:29:54 +01:00
dependabot[bot]
cb53a8b40c
build: bump semver from 1.0.10 to 1.0.11
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 20:51:02 +01:00
Rob Bradford
adf5881757
build: #[allow(clippy::significant_drop_in_scrutinee) in some crates
...
This check is new in the beta version of clippy and exists to avoid
potential deadlocks by highlighting when the test in an if or for loop
is something that holds a lock. In many cases we would need to make
significant refactorings to be able to pass this check so disable in the
affected crates.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
44eca31642
build: Fix beta clippy issue (needless_return)
...
warning: accessing first element with `data.get(0)`
--> virtio-devices/src/transport/pci_device.rs:1055:34
|
1055 | if let Some(v) = data.get(0) {
| ^^^^^^^^^^^ help: try: `data.first()`
|
= note: `#[warn(clippy::get_first)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
b57d7b258d
build: Fix beta clippy issue (needless_return)
...
warning: unneeded `return` statement
--> pci/src/vfio_user.rs:627:13
|
627 | / return Err(std::io::Error::new(
628 | | std::io::ErrorKind::Other,
629 | | format!("Region not found for 0x{:x}", gpa),
630 | | ));
| |_______________^
|
= note: `#[warn(clippy::needless_return)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
627 ~ Err(std::io::Error::new(
628 + std::io::ErrorKind::Other,
629 + format!("Region not found for 0x{:x}", gpa),
630 + ))
|
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
d7decfd525
build: Fix beta clippy issue (unnecessary_to_owned)
...
warning: unnecessary use of `to_vec`
--> acpi_tables/src/aml.rs:71:37
|
71 | bytes.extend_from_slice(&part.to_vec());
| ^^^^^^^^^^^^^^ help: use: `part.as_ref()`
|
= note: `#[warn(clippy::unnecessary_to_owned)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
2716bc3311
build: Fix beta clippy issue (derive_partial_eq_without_eq)
...
warning: you are deriving `PartialEq` and can implement `Eq`
--> vmm/src/serial_manager.rs:59:30
|
59 | #[derive(Debug, Clone, Copy, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
dependabot[bot]
9cf0dee264
build: bump mshv-ioctls from 27477b7 to d94c305
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `27477b7` to `d94c305`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](27477b713d...d94c30583f )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 18:22:23 +01:00
dependabot[bot]
d8b3d07825
build: bump clap from 3.2.7 to 3.2.8 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.7 to 3.2.8.
- [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/v3.2.7...v3.2.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:57:04 +01:00
dependabot[bot]
3d66e86604
build: bump serde_json from 1.0.81 to 1.0.82
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.81...v1.0.82 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:56:47 +01:00
dependabot[bot]
a2164873ac
build: bump semver from 1.0.10 to 1.0.11 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:37:28 +01:00
dependabot[bot]
7f8cf4f8e7
build: bump serde_json from 1.0.81 to 1.0.82 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.81...v1.0.82 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:05:29 +01:00
dependabot[bot]
aedbd7ae27
build: bump clap_lex from 0.2.3 to 0.2.4 in /fuzz
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.3 to 0.2.4.
- [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_lex-v0.2.3...clap_lex-v0.2.4 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 16:20:56 +01:00
dependabot[bot]
bb4461e951
build: bump clap_lex from 0.2.3 to 0.2.4
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.3 to 0.2.4.
- [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_lex-v0.2.3...clap_lex-v0.2.4 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-29 01:23:11 +00:00
dependabot[bot]
54fe5fb9f5
build: bump clap from 3.2.6 to 3.2.7
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.6 to 3.2.7.
- [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/v3.2.6...v3.2.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-29 00:26:54 +00:00
dependabot[bot]
5a9e7ee7fe
build: bump clap from 3.2.6 to 3.2.7 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.6 to 3.2.7.
- [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/v3.2.6...v3.2.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-28 23:39:43 +00:00
Rob Bradford
2e664dca64
vmm: Always reset the console mode on VMM exit
...
Tested:
1. SIGTERM based
2. VM shutdown/poweroff
3. Injected VM boot failure after calling Vm::setup_tty()
Fixes : #4248
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-28 16:45:27 +01:00
dependabot[bot]
a26f86f8ad
build: bump smallvec from 1.8.0 to 1.8.1
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-27 23:56:42 +00:00
dependabot[bot]
fde13889f4
build: bump arbitrary from 1.1.2 to 1.1.3 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-27 23:43:02 +00:00
Rob Bradford
65ec6631fb
vmm: cpu: Store the vCPU snapshots in ascending order
...
The snapshots are stored in a BTree which is ordered however as the ids
are strings lexical ordering places "11" ahead of "2". So encode the
vCPU id with zero padding so it is lexically sorted.
This fixes issues with CPU restore on aarch64.
See: #4239
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-27 16:20:57 +01:00
Dylan Bargatze
6ac8dc8745
Change ❎ to ❌ .
...
Signed-off-by: Dylan Bargatze <dbargatz@users.noreply.github.com >
2022-06-27 11:24:57 +01:00
Wei Liu
2f514523dd
hypervisor: emulator: use matches!
...
No functional change. Just make the code a bit nicer to read.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-23 17:30:21 +02:00
dependabot[bot]
92f559f6f2
build: bump vfio-ioctls from f75a77c to 38272d3
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `f75a77c` to `38272d3`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](f75a77c1ab...38272d3f06 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-23 06:19:10 +00:00
dependabot[bot]
3972e38371
build: bump mshv-bindings from bec9eba to 27477b7
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `bec9eba` to `27477b7`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](bec9ebaac3...27477b713d )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-23 05:32:24 +00:00
dependabot[bot]
a1a016526f
build: bump clap from 3.2.5 to 3.2.6
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.5 to 3.2.6.
- [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/v3.2.5...v3.2.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 04:35:13 +00:00
dependabot[bot]
a5692a95c1
build: bump quote from 1.0.19 to 1.0.20
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.19...1.0.20 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 03:28:22 +00:00
dependabot[bot]
0fd25b3246
build: bump clap_lex from 0.2.2 to 0.2.3 in /fuzz
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.2 to 0.2.3.
- [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_lex-v0.2.2...clap_lex-v0.2.3 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 02:55:23 +00:00
dependabot[bot]
e6127df703
build: bump clap_lex from 0.2.2 to 0.2.3
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.2 to 0.2.3.
- [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_lex-v0.2.2...clap_lex-v0.2.3 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 02:23:56 +00:00
dependabot[bot]
559657eecc
build: bump indexmap from 1.9.0 to 1.9.1 in /fuzz
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.9.0...1.9.1 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 01:52:44 +00:00
dependabot[bot]
66f1ec0063
build: bump indexmap from 1.9.0 to 1.9.1
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.9.0...1.9.1 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 01:19:00 +00:00
dependabot[bot]
13d081ac47
build: bump quote from 1.0.19 to 1.0.20 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.19...1.0.20 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 00:49:19 +00:00
dependabot[bot]
b12f4ccade
build: bump openssl-src from 111.20.0+1.1.1o to 111.21.0+1.1.1p
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.20.0+1.1.1o to 111.21.0+1.1.1p.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 00:27:48 +00:00
dependabot[bot]
1f8bca4840
build: bump clap from 3.2.5 to 3.2.6 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.5 to 3.2.6.
- [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/v3.2.5...v3.2.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 00:13:52 +00:00
dependabot[bot]
833eb2ebe6
build: bump proc-macro2 from 1.0.39 to 1.0.40
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 11:50:46 +00:00
dependabot[bot]
7c7f0f1f5f
build: bump proc-macro2 from 1.0.39 to 1.0.40 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 11:42:40 +01:00
dependabot[bot]
d445ec7633
build: bump syn from 1.0.96 to 1.0.98
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.96 to 1.0.98.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.96...1.0.98 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 11:42:30 +01:00
dependabot[bot]
039e758f15
build: bump syn from 1.0.96 to 1.0.98 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.96 to 1.0.98.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.96...1.0.98 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 01:05:33 +00:00
dependabot[bot]
eb55d0809e
build: bump anyhow from 1.0.57 to 1.0.58
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.57...1.0.58 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 00:46:25 +00:00
dependabot[bot]
ecde44617b
build: bump quote from 1.0.18 to 1.0.19 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 00:31:52 +00:00
dependabot[bot]
58e567b309
build: bump quote from 1.0.18 to 1.0.19
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-20 23:58:53 +00:00
dependabot[bot]
fa0140a183
build: bump anyhow from 1.0.57 to 1.0.58 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.57...1.0.58 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-20 23:40:45 +00:00
Wei Liu
c6c5e4ee87
vhost_user_block: drop Sync bound for DiskFile
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
a64bdcf3f5
hypervisor: drop Send+Sync bounds for PlatformEmulator
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
439823e7ea
virtio-devices: drop Send+Sync bounds for DmaRemapping
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
9019086625
block_util: drop Sync bound for DiskFile and AsyncIo
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
bccd7c7e48
vmm: drop Sync+Send bounds for EndpointHandler
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
f1dc7f442a
net_util: switch from lazy_static to once_cell
...
Once_cell does not require using macro and is slated to become part of
Rust std at some point.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 16:03:07 +01:00
Wei Liu
32b855df3a
tests: switch from lazy_static to once_cell
...
Once_cell does not require using macro and is slated to become part of
Rust std at some point.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 16:03:07 +01:00
Wei Liu
8fa1098629
vmm: switch from lazy_static to once_cell
...
Once_cell does not require using macro and is slated to become part of
Rust std at some point.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 16:03:07 +01:00
dependabot[bot]
41cec53bb8
build: bump indexmap from 1.8.2 to 1.9.0
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.2...1.9.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-18 00:40:57 +00:00
dependabot[bot]
fd9f14893b
build: bump indexmap from 1.8.2 to 1.9.0 in /fuzz
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.2...1.9.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-17 23:52:48 +00:00
Rob Bradford
7c8719b4ea
tests: Unify API based boot across architectures
...
Use direct kernel boot for all the tests that create the VM via API.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-17 16:52:56 +01:00
Sebastien Boeuf
335a4e1cc0
vmm: api: Expose kvm_hyperv parameter in OpenAPI description
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-17 15:11:53 +01:00
dependabot[bot]
6dbbd0363f
build: bump mshv-bindings from cda9d65 to bec9eba
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `cda9d65` to `bec9eba`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](cda9d658f4...bec9ebaac3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-17 13:11:28 +00:00
dependabot[bot]
40e1ad3f62
build: bump arbitrary from 1.1.1 to 1.1.2 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-16 23:43:08 +00:00
Rob Bradford
094625242d
tests: Add tests for vm.delete and vm.shutdown
...
Fixes : #1295
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-16 11:29:33 +01:00
Rob Bradford
b3569f084d
ch-remote: Add missing boot and delete commands
...
These are simple commands so require no further enabling than adding to
the list of commands.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-16 11:29:33 +01:00
dependabot[bot]
3800212def
build: bump clap from 3.2.4 to 3.2.5
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.4 to 3.2.5.
- [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/v3.2.4...v3.2.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-16 10:09:02 +00:00
dependabot[bot]
e9f5052fcd
build: bump mshv-ioctls from 82be857 to cda9d65
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `82be857` to `cda9d65`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](82be8577d1...cda9d658f4 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-16 10:08:50 +01:00
Rob Bradford
a583b055f5
docs: Add LBR profiling instructions to profiling.md
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-16 07:43:36 +01:00
dependabot[bot]
2b33e66bb4
build: bump clap from 3.2.4 to 3.2.5 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.4 to 3.2.5.
- [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/v3.2.4...v3.2.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 23:41:07 +00:00
dependabot[bot]
92ceef52c8
build: bump mshv-ioctls from ae24471 to 82be857
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `ae24471` to `82be857`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](ae244716b3...82be8577d1 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 03:09:04 +00:00
dependabot[bot]
d7baa58e11
build: bump unicode-ident from 1.0.0 to 1.0.1
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 02:04:21 +00:00
dependabot[bot]
2d39b6ed06
build: bump getrandom from 0.2.6 to 0.2.7 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 01:09:41 +00:00
dependabot[bot]
ed31ca9041
build: bump gdbstub_arch from 0.2.2 to 0.2.3
...
Bumps [gdbstub_arch](https://github.com/daniel5151/gdbstub ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/daniel5151/gdbstub/releases )
- [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daniel5151/gdbstub/commits )
---
updated-dependencies:
- dependency-name: gdbstub_arch
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 00:59:21 +00:00
dependabot[bot]
06b880e99f
build: bump clap from 3.2.1 to 3.2.4 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.1 to 3.2.4.
- [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-v3.2.1...v3.2.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 00:39:46 +00:00
dependabot[bot]
742ca68070
build: bump clap from 3.1.18 to 3.2.4
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.18 to 3.2.4.
- [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/v3.1.18...v3.2.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 23:58:30 +00:00
dependabot[bot]
f950cb1fdb
build: bump arbitrary from 1.1.0 to 1.1.1 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/commits/1.1.1 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 23:50:22 +00:00
dependabot[bot]
c6c5dca651
build: bump micro_http from a730d86 to 863b037
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `a730d86` to `863b037`.
- [Release notes](https://github.com/firecracker-microvm/micro-http/releases )
- [Commits](a730d86940...863b0370ba )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 14:59:13 +00:00
dependabot[bot]
d646e10079
build: bump clap_lex from 0.2.0 to 0.2.2
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.0 to 0.2.2.
- [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_lex-v0.2.0...clap_lex-v0.2.2 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 09:44:39 +00:00
dependabot[bot]
efe0429a9a
build: bump getrandom from 0.2.6 to 0.2.7
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 08:57:32 +00:00
dependabot[bot]
1f3321c50e
build: bump gdbstub from 0.6.1 to 0.6.2
...
Bumps [gdbstub](https://github.com/daniel5151/gdbstub ) from 0.6.1 to 0.6.2.
- [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.6.1...0.6.2 )
---
updated-dependencies:
- dependency-name: gdbstub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 08:09:13 +00:00
dependabot[bot]
c0d51eecf1
build: bump unicode-ident from 1.0.0 to 1.0.1 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 00:13:03 +00:00
dependabot[bot]
1b9dc80469
build: bump clap from 3.1.18 to 3.2.1 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.18 to 3.2.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.18...clap_complete-v3.2.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-13 23:46:23 +00:00
dependabot[bot]
43d32a7288
build: bump semver from 1.0.9 to 1.0.10 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 01:49:02 +00:00
dependabot[bot]
27e04e41bf
build: bump semver from 1.0.9 to 1.0.10
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 01:13:07 +00:00
dependabot[bot]
41ac48d332
build: bump uuid from 1.1.1 to 1.1.2
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.1...1.1.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 00:25:45 +00:00
dependabot[bot]
2afaed9111
build: bump uuid from 1.1.1 to 1.1.2 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.1...1.1.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-10 23:39:30 +00:00
Rob Bradford
f1ea69474d
scripts: Mark git repository as safe
...
Git will refuse to generate information for the report if the repository
is owned by a different user (root in the container vs the real owner
outside).
e.g:
Error generating human readable git reference: fatal: unsafe repository ('/cloud-hypervisor' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /cloud-hypervisor
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-10 17:20:13 +01:00
Rob Bradford
cac42301f8
performance-metrics: Produce some error messages if git commands fail
...
It is reasonable for these to fail as it the tool could be run outside
of a git repository but by not giving any error message we cannot see
issues when we expect the report to have the git details.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-10 17:20:13 +01:00
Jinank Jain
ada85f68f6
hypervisor: mshv: Override hypervisor R/W behavior for unknown MSR
...
By default Microsoft Hypervisor send a GP to the guest if it tries
read/write an unimplemented MSR from the hypervisor prospective. Instead
change this behavior to ignore read/write operations for unimplemented
MSRs
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-06-09 20:53:58 +01:00
Rob Bradford
64b4b7205e
Revert "build: Temporarily disable VFIO, SGX and metrics build steps"
...
This reverts commit d96614fe42 .
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-09 10:30:07 +01:00
dependabot[bot]
4a4352f9d9
build: bump mshv-ioctls from 67e13fa to ae24471
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `67e13fa` to `ae24471`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](67e13faa36...ae244716b3 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-09 08:46:46 +00:00
Sebastien Boeuf
81ba70a497
pci, vmm: Defer mapping VFIO MMIO regions on restore
...
When restoring a VM, the restore codepath will take care of mapping the
MMIO regions based on the information from the snapshot, rather than
having the mapping being performed during device creation.
When the device is created, information such as which BARs contain the
MSI-X tables are missing, preventing to perform the mapping of the MMIO
regions.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
7df7061610
pci, vmm: Add migratable support to vfio-user devices
...
Based on recent changes to VfioUserPciDevice, the vfio-user devices can
now be migrated.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
c021dda267
pci, vmm: Add migratable support to VFIO devices
...
Based on recent changes to VfioPciDevice, the VFIO devices can now be
migrated.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
f48b05eee6
pci: vfio_user: Implement Migratable for VfioUserPciDevice
...
Based on the VfioCommon implementation, the VfioUserPciDevice now
implements the Migratable trait.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
3b59e57001
pci: vfio: Implement Migratable for VfioPciDevice
...
Based on the VfioCommon implementation, the VfioPciDevice now implements
the Migratable trait.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
49069d8474
pci: Implement Migratable for VfioCommon
...
Introduces the common code to handle one aspect of the migration
support. Particularly, the ability to store VMM internal states related
to such device. The internal state of the device will happen later in a
dedicated patchset that will implement the VFIO migration API.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
8eaefa6e8e
pci: msix: Derive Versionize for MsixCap
...
So that we can save and restore the whole structure through snapshot and
restore operations.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
a1b996ac37
pci: msi: Make MsiCap field public
...
So that it can be accessed during a VM snapshot to store its state.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Rob Bradford
4ddc6ffd73
.github: Add missing clippy check with "guest_debug" feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-08 11:40:56 +01:00
Rob Bradford
94fb9f817d
vmm: Fix clippy issues under "guest_debug" feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-08 11:40:56 +01:00
Rob Bradford
133a5a858a
vmm: Pull in gdb dependencies only when building with feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-08 11:30:20 +01:00
Jinank Jain
3a18860326
Reapply "Jenkinsfile: Bypass running CI for fuzzer Cargo file changes"
...
This reverts commit 0d0013c46e .
Grovvy shell script execution engine does not like backslash as the
escape character. So we need to put another backslash to escape the
backslash character. This would most likely fix the issue that we saw
with the CI.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-06-07 07:40:33 +01:00
Rob Bradford
0d0013c46e
Revert "Jenkinsfile: Bypass running CI for fuzzer Cargo file changes"
...
This reverts commit 86d243938e .
Build error:
Obtained Jenkinsfile from 86d243938e
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 311: unexpected char: '\' @ line 311, column 88.
_TARGET}... | grep -v -E 'fuzz\/Cargo.(t
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-06 15:38:18 +01:00
Jinank Jain
86d243938e
Jenkinsfile: Bypass running CI for fuzzer Cargo file changes
...
In order to conserve resources it is better to not run CI, whenever there
are changes only in fuzz/Cargo.toml or fuzz/Cargo.lock.
Fixes #4148
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-06-06 15:29:19 +01:00
Michael Zhao
a7a15d56dd
aarch64: Move setup_regs to hypervisor
...
`setup_regs` of AArch64 calls KVM sepecific code. Now move it to
`hypervisor` crate.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 11:07:46 +01:00
Sebastien Boeuf
65dc1c83a9
vmm: cpu: Save and restore CPU states during snapshot/restore
...
Based on recent KVM host patches (merged in Linux 5.16), it's forbidden
to call into KVM_SET_CPUID2 after the first successful KVM_RUN returned.
That means saving CPU states during the pause sequence, and restoring
these states during the resume sequence will not work with the current
design starting with kernel version 5.16.
In order to solve this problem, let's simply move the save/restore logic
to the snapshot/restore sequences rather than the pause/resume ones.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-06 11:07:29 +01:00
Sebastien Boeuf
3edaa8adb6
vmm: Ensure restore matches boot sequence
...
The vCPU is created and set after all the devices on a VM's boot.
There's no reason to follow a different order on the restore codepath as
this could cause some unexpected behaviors.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-06 11:07:17 +01:00
Michael Zhao
9260c3816e
vmm: Update unit test for GIC refactoring
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
5d45d6d0fb
vmm: Move GIC unit test to hypervisor crate
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
957d3a7443
aarch64: Simplify GIC related structs definition
...
Combined the `GicDevice` struct in `arch` crate and the `Gic` struct in
`devices` crate.
After moving the KVM specific code for GIC in `arch`, a very thin wapper
layer `GicDevice` was left in `arch` crate. It is easy to combine it
with the `Gic` in `devices` crate.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
04949755c0
arch: Switch to new GIC interface
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
b8dbb26647
hypervisor: Refactor save_pending_tables of Vgic
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
3fe7d61a02
hypervisor: Remove some redundant parameters
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
c2862b6947
hypervisor: Move GitV3Its code from arch
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
03b01c02cd
hypervisor: Define Vgic trait
...
Defined `Vgic` trait as the hypervisor agnostic interface for a virtual
GIC.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
dependabot[bot]
435d769511
build: bump syn from 1.0.95 to 1.0.96
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.95...1.0.96 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-03 12:15:08 +00:00
dependabot[bot]
9ba6767a90
build: bump pnet from 0.30.0 to 0.31.0
...
Bumps [pnet](https://github.com/libpnet/libpnet ) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.30.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-03 08:59:43 +00:00
dependabot[bot]
3742cc42ae
build: bump syn from 1.0.95 to 1.0.96 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.95...1.0.96 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-03 01:57:33 +00:00
dependabot[bot]
e0dd2e41c2
build: bump openssl-sys from 0.9.73 to 0.9.74
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.73 to 0.9.74.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.73...openssl-sys-v0.9.74 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-02 09:41:05 +00:00
dependabot[bot]
f1495b5767
build: bump uuid from 1.1.0 to 1.1.1
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.0...1.1.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-02 00:48:36 +00:00
dependabot[bot]
6bd4bdfa26
build: bump uuid from 1.1.0 to 1.1.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.0...1.1.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-02 00:02:36 +00:00
Rob Bradford
ade3a9c8f6
virtio-devices, vmm: Optimised async virtio device activation
...
In order to ensure that the virtio device thread is spawned from the vmm
thread we use an asynchronous activation mechanism for the virtio
devices. This change optimises that code so that we do not need to
iterate through all virtio devices on the platform in order to find the
one that requires activation. We solve this by creating a separate short
lived VirtioPciDeviceActivator that holds the required state for the
activation (e.g. the clones of the queues) this can then be stored onto
the device manager ready for asynchronous activation.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-01 09:42:02 +02:00
dependabot[bot]
15e2763753
build: bump indexmap from 1.8.1 to 1.8.2
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/1.8.2/RELEASES.rst )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.1...1.8.2 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-31 23:58:11 +00:00
dependabot[bot]
8b87b752b5
build: bump indexmap from 1.8.1 to 1.8.2 in /fuzz
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/1.8.2/RELEASES.rst )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.1...1.8.2 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-30 23:55:59 +00:00
dependabot[bot]
7864f91a2b
build: bump libz-sys from 1.1.6 to 1.1.8
...
Bumps [libz-sys](https://github.com/rust-lang/libz-sys ) from 1.1.6 to 1.1.8.
- [Release notes](https://github.com/rust-lang/libz-sys/releases )
- [Commits](https://github.com/rust-lang/libz-sys/commits )
---
updated-dependencies:
- dependency-name: libz-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-30 23:50:20 +00:00
Yi Wang
6ab93a08ec
build: Add GitHub action to build test guest_debug feature
...
Add guest_debug feature test for github workflows.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
fd41892065
tests: Add integration test for coredump
...
As coredump function is to make a vmcore for crash tool to analyze,
in order not to introduce a big thing in integration, we just check
if ch-remote command runs no error report here.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
dbeb922882
doc: add vm coredump support
...
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Yi Wang
0bb2060ca7
ch-remote: add support for coredump
...
Adding the wrapping layer to be able to coredump the guest
from the ch-remote tool.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
8b585b96c1
vmm: enable coredump
...
Based on the newly added guest_debug feature, this patch adds http
endpoint support.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Yi Wang
ccb604e1e1
vmm: add cpu segment note for coredump
...
The crash tool use a special note segment which named 'QEMU' to
analyze kaslr info and so on. If we don't add the 'QEMU' note
segment, crash tool can't find linux version to move on.
For now, the most convenient way is to add 'QEMU' note segment to
make crash tool happy.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
0e65ca4a6c
vmm: save guest memory for coredump
...
Guest memory is needed for analysis in crash tool, so save it
for coredump.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Yi Wang
7e280b6f70
vmm: save elf header for coredump
...
The vmcore file of guest is an elf format, so the first step of coredump
is to save the elf header.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
90034fd6ba
vmm: add GuestDebuggable trait
...
It's useful to dump the guest, which named coredump so that crash
tool can be used to analysize it when guest hung up.
Let's add GuestDebuggable trait and Coredumpxxx error to support
coredump firstly.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Rob Bradford
642309f141
deps: Bump version of kvm-ioctls
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 16:36:02 +02:00
Rob Bradford
5da8a1c08e
tests: Use smaller hotplug size for live migration tests
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 11:30:27 +02:00
Rob Bradford
465db7f08c
vmm: config: Remove mergeable option from PmemConfig
...
Fixes : #3968
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:48:49 +02:00
Rob Bradford
55c5961f43
vmm: config: Remove dax & cache_size options from FsConfig
...
Fixes : #3889
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
7c3582b4a8
vmm: config: Fix error message regarding use of cache size without dax
...
The error message incorrectly said that the user was trying to combine
cache_size without dax whereas it is only usuable with dax.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
979797786d
vmm: Remove DAX cache setup for virtio-fs devices
...
Remove the code from the DeviceManager that prepares the DAX cache since
the functionality has now been removed.
Fixes : #3889
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
62120f9afe
tests: Remove testing of virtio-fs DAX cache
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
56c11600db
tests: Rename test_virtio_fs helper
...
This is so we can have a test called test_virtio_fs
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
f2336413be
tests: Simplify virtiofsd spawning
...
The cache methodology is never changed so it can be hardcoded.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Michael Zhao
0fd6521759
aarch64: Avoid depending on layout in GIC code
...
Removing the dependency on `layout` helps moving GIC code into
`hypervisor` crate.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
4a2d3cb4f5
aarch64: Refactor KvmGicV3Its::new()
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
3fe20cc09a
aarch64: Remove GicDevice trait
...
`GicDevice` trait was defined for the common part of GicV3 and ITS.
Now that the standalone GicV3 do not exist, `GicDevice` is not needed.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
fd581b1afb
aarch64: Combine the code of GicV3 and GicV3Its
...
Why combine:
- GicV3 is not required alone
- GicV3 and GicV3Its has separate snapshot/pause code. But the code of
GicV3 was never used.
- Reduce the code complexity of GIC related traits and structs.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
1e732bf532
aarch64: Remove versionize & versionize_derive
...
Remove the not-mandatory dependencies in gic source code.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
dependabot[bot]
ad8295e11d
build: bump os_str_bytes from 6.0.1 to 6.1.0
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.0.1...6.1.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-27 00:36:04 +00:00
dependabot[bot]
fe1f0ef49e
build: bump os_str_bytes from 6.0.1 to 6.1.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.0.1...6.1.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 23:48:45 +00:00
dependabot[bot]
f9fcc3722f
build: bump uuid from 1.0.0 to 1.1.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.0.0...1.1.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 01:13:18 +00:00
dependabot[bot]
c0cbaff519
build: bump uuid from 1.0.0 to 1.1.0
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.0.0...1.1.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 00:27:34 +00:00