Rob Bradford
ea3e2ff625
build: Release v41.0
...
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-08-15 16:50:09 +00:00
ihciah
3320015793
virtio-devices: net: reduce vec allocations for iovec conversion
...
Signed-off-by: ihciah <ihciah@gmail.com >
2024-08-15 11:56:46 +00:00
dependabot[bot]
9113544e21
build: Bump anstyle-wincon from 3.0.3 to 3.0.4
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 3.0.3 to 3.0.4.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.3...anstyle-wincon-v3.0.4 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-15 07:02:09 +00:00
dependabot[bot]
8c526891ac
build: Bump cc from 1.1.10 to 1.1.11 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.1.10 to 1.1.11.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.10...cc-v1.1.11 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-15 00:33:32 +00:00
Wei Liu
78a30012fb
pci: validate index before accessing MSI-X arrays
...
The index is derived from the access offset, so it is controlled by the
guest. Check it before accessing internal data structures.
Since Rust enforces strict bound check even in release builds, the VMM
process will crash if the guest misbehaves. There is no security issue
since the guest can only DoS itself.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-08-14 08:01:25 +00:00
dependabot[bot]
c5c751c478
build: Bump cc from 1.1.7 to 1.1.10 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.1.7 to 1.1.10.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.7...cc-v1.1.10 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-14 00:49:14 +00:00
dependabot[bot]
f92cce888b
build: Bump signal-hook-registry from 1.4.1 to 1.4.2
...
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-08-13 23:49:52 +00:00
Nuno Das Neves
00b4d97826
vmm: Replace hardcoded mshv IOCTL numbers in seccomp
...
Use the IOCTL numbers directly from mshv-ioctls instead of hardcoding
them in the seccomp filters.
Remove seccomp rules for unused ioctls:
MSHV_GET_VERSION_INFO,
MSHV_ASSERT_INTERRUPT.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-08-13 18:52:46 +00:00
Jinank Jain
3fe7d6d904
hypervisor: mshv: Disable previous GHCB page before setting new one
...
CVM guests can configure GHCB page multiple times during it's
lifetime depending on it's requirement. For example a Linux CVM guest
configures a different GHCB page during compressed kernel boot and sets
up a new one after decompressing the kernel. As a cleanup step, VMM
should unset the previous GHCB page before registering a new one for
a particular vcpu thread.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-08-13 16:59:31 +00:00
Alyssa Ross
02f146fef8
hypervisor: kvm: aarch64: fix get_device_attr() UB
...
DeviceFd::get_device_attr should be marked as unsafe, because it
allows writing to an arbitrary address. I have opened a kvm-ioctls
PR[1] to fix this. The hypervisor crate was using the function
unsafely by passing it addresses of immutable variables. I noticed
this because an optimisation change[2] in Rust 1.80.0 caused the
kvm::aarch64::gic::tests::test_get_set_icc_regs test to start failing
when built in release mode.
To fix this, I've broken up the _access functions into _set and _get
variants, with the _get variant using a pointer to a mutable variable.
This has the side effect of making these functions a bit nicer to use,
because the caller now has no need to use references at all, for
either getting or setting.
[1]: https://github.com/rust-vmm/kvm-ioctls/pull/273
[2]: d2d24e395a
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-08-13 16:16:11 +00:00
dependabot[bot]
36cdd67b9c
build: Bump bitflags from 2.5.0 to 2.6.0
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.5.0 to 2.6.0.
- [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.5.0...2.6.0 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-13 00:21:45 +00:00
dependabot[bot]
92b12ce2f4
build: Bump anstream from 0.6.14 to 0.6.15 in /fuzz
...
Bumps [anstream](https://github.com/rust-cli/anstyle ) from 0.6.14 to 0.6.15.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.14...anstream-v0.6.15 )
---
updated-dependencies:
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-12 23:51:09 +00:00
Alyssa Ross
cbb588c380
virtio-devices: allow vsock to call fcntl in debug
...
This fixes the vsock::device::tests::test_virtio_device test with Rust
1.80.0 or later, where this check was introduced.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-08-12 20:13:13 +00:00
Wei Liu
1c7997c5c3
hypervisor: x86: emulate MOVSQ
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-08-10 23:49:09 +00:00
dependabot[bot]
fee769bed4
build: Bump libc from 0.2.153 to 0.2.155
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.153 to 0.2.155.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.153...0.2.155 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-10 00:43:15 +00:00
dependabot[bot]
6b2c2c938a
build: Bump indexmap from 2.2.6 to 2.3.0 in /fuzz
...
Bumps [indexmap](https://github.com/indexmap-rs/indexmap ) from 2.2.6 to 2.3.0.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.6...2.3.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-10 00:20:55 +00:00
Muminul Islam
1e967697c2
vmm: pass AccessPlatform implementation for SEV-SNP guest
...
Passing AccessPlatform trait to virtio-device for requesting
restricting page access during IO for SEV-SNP guest.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-08-09 17:40:13 +00:00
Muminul Islam
959ea7115f
vmm: implement AccessPlatform for SEV-SNP proxy struct
...
Implement AccessPlatform for SEV-SNP guest to access
restricted page using IO. VMM calls MSHV api to get access
of the pages, MSHV requests guest to release the access.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-08-09 17:40:13 +00:00
Muminul Islam
398e9338a7
vmm: add a proxy struct for SEV-SNP guest
...
Add a structure to hold the reference of the Vm trait
from Hypervisor crate to access of restricted page
from SEV-SNP guest.
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-08-09 17:40:13 +00:00
Muminul Islam
5c4b5c0e40
hypervisor: mshv: add definition to get access pages
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2024-08-09 17:40:13 +00:00
dependabot[bot]
f9bd2aaf9f
build: Bump errno from 0.3.8 to 0.3.9
...
Bumps [errno](https://github.com/lambda-fairy/rust-errno ) from 0.3.8 to 0.3.9.
- [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 >
2024-08-09 07:38:12 +00:00
dependabot[bot]
f126288159
build: Bump anstyle-wincon from 3.0.3 to 3.0.4 in /fuzz
...
Bumps [anstyle-wincon](https://github.com/rust-cli/anstyle ) from 3.0.3 to 3.0.4.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.3...anstyle-wincon-v3.0.4 )
---
updated-dependencies:
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-09 00:05:18 +00:00
dependabot[bot]
9f9a4e657f
build: Bump async-channel from 2.2.0 to 2.3.0
...
Bumps [async-channel](https://github.com/smol-rs/async-channel ) from 2.2.0 to 2.3.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.2.0...v2.3.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-08-08 00:44:32 +00:00
dependabot[bot]
3097d78c6e
build: Bump jobserver from 0.1.31 to 0.1.32 in /fuzz
...
Bumps [jobserver](https://github.com/rust-lang/jobserver-rs ) from 0.1.31 to 0.1.32.
- [Commits](https://github.com/rust-lang/jobserver-rs/compare/0.1.31...0.1.32 )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-08 00:34:17 +00:00
dependabot[bot]
7c2a252c02
build: Bump toml_datetime from 0.6.6 to 0.6.8 in /fuzz
...
Bumps [toml_datetime](https://github.com/toml-rs/toml ) from 0.6.6 to 0.6.8.
- [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.6.6...toml_datetime-v0.6.8 )
---
updated-dependencies:
- dependency-name: toml_datetime
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-07 00:06:19 +00:00
dependabot[bot]
a87b25a962
build: Bump bumpalo from 3.15.4 to 3.16.0
...
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-08-06 23:55:41 +00:00
Wei Liu
24ed063dbe
github: add build and clippy tests for pvmemcontrol
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-08-06 18:39:30 +00:00
dependabot[bot]
fbac81843f
build: Bump clap from 4.5.9 to 4.5.13 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.9 to 4.5.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/clap_complete-v4.5.9...v4.5.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-06 08:08:06 +00:00
dependabot[bot]
610a2234dc
build: Bump ppv-lite86 from 0.2.17 to 0.2.20
...
Bumps [ppv-lite86](https://github.com/cryptocorrosion/cryptocorrosion ) from 0.2.17 to 0.2.20.
- [Commits](https://github.com/cryptocorrosion/cryptocorrosion/commits )
---
updated-dependencies:
- dependency-name: ppv-lite86
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-05 23:49:43 +00:00
Yuanchu Xie
5f18ac3bc0
devices: Add pvmemcontrol device
...
Pvmemcontrol provides a way for the guest to control its physical memory
properties, and enables optimizations and security features. For
example, the guest can provide information to the host where parts of a
hugepage may be unbacked, or sensitive data may not be swapped out, etc.
Pvmemcontrol allows guests to manipulate its gPTE entries in the SLAT,
and also some other properties of the memory map the back's host memory.
This is achieved by using the KVM_CAP_SYNC_MMU capability. When this
capability is available, the changes in the backing of the memory region
on the host are automatically reflected into the guest. For example, an
mmap() or madvise() that affects the region will be made visible
immediately.
There are two components of the implementation: the guest Linux driver
and Virtual Machine Monitor (VMM) device. A guest-allocated shared
buffer is negotiated per-cpu through a few PCI MMIO registers, the VMM
device assigns a unique command for each per-cpu buffer. The guest
writes its pvmemcontrol request in the per-cpu buffer, then writes the
corresponding command into the command register, calling into the VMM
device to perform the pvmemcontrol request.
The synchronous per-cpu shared buffer approach avoids the kick and busy
waiting that the guest would have to do with virtio virtqueue transport.
The Cloud Hypervisor component can be enabled with --pvmemcontrol.
Co-developed-by: Stanko Novakovic <stanko@google.com >
Co-developed-by: Pasha Tatashin <tatashin@google.com >
Signed-off-by: Yuanchu Xie <yuanchu@google.com >
2024-08-05 22:41:56 +00:00
Yuanchu Xie
4bf2d4f7dd
pci: Remove BusDevice requirement from PciDevice
...
The BusDevice requirement is not needed, only Send is required.
Signed-off-by: Yuanchu Xie <yuanchu@google.com >
2024-08-05 22:41:56 +00:00
Yuanchu Xie
954f3dd057
vm-device: generalize BusDevice to use a shared reference
...
BusDevice trait functions currently holds a mutable reference to self,
and exclusive access is guaranteed by taking a Mutex when dispatched by
the Bus object. However, this prevents individual devices from serving
accesses that do not require an mutable reference or is better served
with different synchronization primitives. We switch Bus to dispatch via
BusDeviceSync, which holds a shared reference, and delegate locking to
the BusDeviceSync trait implementation for Mutex<BusDevice>.
Other changes are made to make use of the dyn BusDeviceSync
trait object.
Signed-off-by: Yuanchu Xie <yuanchu@google.com >
2024-08-05 22:41:56 +00:00
Praveen K Paladugu
026e2c6aa8
docs: Minor doc update
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-08-05 17:46:30 +00:00
Praveen K Paladugu
be9f57dcf9
vmm: Add landlock elements to openapi spec
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-08-05 17:46:30 +00:00
Praveen K Paladugu
bd180bc3eb
main: rename landlock_config to landlock_rules
...
To keep the naming consistent, rename all uses of landlock_config
to landlock_rules.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-08-05 17:46:30 +00:00
Praveen K Paladugu
b9f086bcb3
tests: drop landlock parameter while starting dest
...
After moving landlock config to VMConfig, there is no need to start
destination VM with landlock cmdline options in
test_live_migration_with_landlock test.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-08-05 17:46:30 +00:00
Praveen K Paladugu
d2f0e8aebb
Revert "vmm: make landlock configs VMM-level config"
...
This reverts commit 94929889ac .
This revert moves landlock config back to VMConfig.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-08-05 17:46:30 +00:00
dependabot[bot]
513973873c
build: Bump igvm from 0.3.1 to 0.3.3
...
Bumps [igvm](https://github.com/microsoft/igvm ) from 0.3.1 to 0.3.3.
- [Release notes](https://github.com/microsoft/igvm/releases )
- [Commits](https://github.com/microsoft/igvm/compare/igvm-v0.3.1...igvm-v0.3.3 )
---
updated-dependencies:
- dependency-name: igvm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 23:56:38 +00:00
dependabot[bot]
4c52fa344e
build: Bump anstyle-query from 1.1.0 to 1.1.1 in /fuzz
...
Bumps [anstyle-query](https://github.com/rust-cli/anstyle ) from 1.1.0 to 1.1.1.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-query-v1.1.0...anstyle-query-v1.1.1 )
---
updated-dependencies:
- dependency-name: anstyle-query
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 23:48:15 +00:00
Songqian Li
e18d32bac2
performance-metrics: add restore latency performance metric
...
This patch calculates the recovery latency from the start of
recovery program to the end of restore.
Signed-off-by: Songqian Li <sionli@tencent.com >
2024-08-02 08:29:03 +00:00
dependabot[bot]
59185050d5
build: Bump colorchoice from 1.0.1 to 1.0.2 in /fuzz
...
Bumps [colorchoice](https://github.com/rust-cli/anstyle ) from 1.0.1 to 1.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/colorchoice-v1.0.1...colorchoice-v1.0.2 )
---
updated-dependencies:
- dependency-name: colorchoice
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 00:44:49 +00:00
dependabot[bot]
dc72ef42dc
build: Bump serde_with from 3.7.0 to 3.9.0
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.7.0 to 3.9.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.7.0...v3.9.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-08-02 00:35:54 +00:00
dependabot[bot]
68bb32a3e7
build: Bump cc from 1.0.104 to 1.1.7 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.104 to 1.1.7.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.104...cc-v1.1.7 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 12:27:25 +00:00
dependabot[bot]
0f89387475
build: Bump zerocopy from 0.7.32 to 0.7.35
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.32 to 0.7.35.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google/zerocopy/commits )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 00:34:37 +00:00
Wei Liu
f5b2eb5c76
virtio-devices: vsock: drop a useless line
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-31 16:36:10 +00:00
Wei Liu
82ac114b8a
virtio-devices: vsock: handle short read in muxer
...
Use read_exact to make sure we really get the minimum number of bytes.
Fixes : #6621
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-31 16:36:10 +00:00
dependabot[bot]
2ffd5df018
build: Bump clap_lex from 0.7.1 to 0.7.2 in /fuzz
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.7.1 to 0.7.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.7.1...clap_lex-v0.7.2 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-31 07:30:47 +00:00
dependabot[bot]
006a12d911
build: Bump colorchoice from 1.0.0 to 1.0.2
...
Bumps [colorchoice](https://github.com/rust-cli/anstyle ) from 1.0.0 to 1.0.2.
- [Commits](https://github.com/rust-cli/anstyle/compare/colorchoice-v1.0.0...colorchoice-v1.0.2 )
---
updated-dependencies:
- dependency-name: colorchoice
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-31 00:22:37 +00:00
dependabot[bot]
bb55976454
build: Bump num_enum from 0.7.2 to 0.7.3
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.7.2 to 0.7.3.
- [Commits](https://github.com/illicitonion/num_enum/compare/0.7.2...0.7.3 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-30 08:24:29 +00:00
dependabot[bot]
a15e041138
build: Bump anstyle from 1.0.7 to 1.0.8 in /fuzz
...
Bumps [anstyle](https://github.com/rust-cli/anstyle ) from 1.0.7 to 1.0.8.
- [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.7...v1.0.8 )
---
updated-dependencies:
- dependency-name: anstyle
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-30 00:44:06 +00:00
dependabot[bot]
0fa96402b8
build: Bump paste from 1.0.14 to 1.0.15
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.14...1.0.15 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-29 16:25:22 +00:00
dependabot[bot]
bc0ef1d8ba
build: Bump is_terminal_polyfill from 1.70.0 to 1.70.1 in /fuzz
...
Bumps [is_terminal_polyfill](https://github.com/polyfill-rs/is_terminal_polyfill ) from 1.70.0 to 1.70.1.
- [Changelog](https://github.com/polyfill-rs/is_terminal_polyfill/blob/main-v1.70/CHANGELOG.md )
- [Commits](https://github.com/polyfill-rs/is_terminal_polyfill/compare/v1.70.0...v1.70.1 )
---
updated-dependencies:
- dependency-name: is_terminal_polyfill
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-27 00:41:27 +00:00
dependabot[bot]
86153225cf
build: Bump darling from 0.20.8 to 0.20.10 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.8 to 0.20.10.
- [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.8...v0.20.10 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-26 08:31:02 +00:00
dependabot[bot]
ddc3f194aa
build: Bump anyhow from 1.0.81 to 1.0.86
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.81 to 1.0.86.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.81...1.0.86 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-26 00:25:08 +00:00
dependabot[bot]
c6cc3d3ba9
build: Bump utf8parse from 0.2.1 to 0.2.2 in /fuzz
...
Bumps [utf8parse](https://github.com/alacritty/vte ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/alacritty/vte/releases )
- [Changelog](https://github.com/alacritty/vte/blob/master/CHANGELOG.md )
- [Commits](https://github.com/alacritty/vte/compare/utf8parse_v0.2.1...utf8parse_v0.2.2 )
---
updated-dependencies:
- dependency-name: utf8parse
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-25 12:19:27 +00:00
dependabot[bot]
0fbb3e2c2c
build: Bump serde_json from 1.0.115 to 1.0.120
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.115 to 1.0.120.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.115...v1.0.120 )
---
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-07-25 00:28:26 +00:00
Jinank Jain
330e1aac36
hypervisor: mshv: Clear SW_EXIT_INFO1 in case of no error
...
There were some scenarios where we are not clearing SW_EXIT_INFO1 to
indicate that there were no error while handling the GHCB exit.
Recently, new Linux guests got stricter with checking the value of
SW_EXIT_INFO1 after coming back from VMGEXIT and started crashing. Fix
this behavior by clearing out SW_EXIT_INFO1 in case of no error.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-07-24 01:31:10 +00:00
dependabot[bot]
5fddf76a3b
build: Bump remain from 0.2.13 to 0.2.14
...
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: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-24 00:28:08 +00:00
dependabot[bot]
b50dfb3538
build: Bump syn from 2.0.70 to 2.0.72 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.70 to 2.0.72.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.70...2.0.72 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-24 00:19:04 +00:00
dependabot[bot]
502995746a
build: Bump anstream from 0.6.13 to 0.6.14
...
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-07-23 21:07:26 +00:00
Wei Liu
8aa2d7ab2a
devices: use byte strings directly
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-23 21:07:17 +00:00
Wei Liu
bd8c28d341
vmm: use inspect_err instead of map_err
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-23 21:07:17 +00:00
Wei Liu
422906a0c7
performance-metrics: use inspect_err instead of map_err
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-23 21:07:17 +00:00
Wei Liu
b7512263be
virtio-devices: iommu: use inspect_err instead of map_err
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-23 21:07:17 +00:00
Wei Liu
7e749c0390
block: use inspect_err instead of map_err
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-23 21:07:17 +00:00
Wei Liu
61a5bae25c
option_parser: use an array directly to simplify code
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-23 21:07:17 +00:00
wuxinyue
a2438700e4
virtio-devices: support event idx for virtio-blk
...
Support event idx feature for virtio-blk device.
This feature could improve disk IO performance by suppressing
notifications from guest to host and interrupts from host to
guest, which has been already supported in virtio-net and
vhost-user devices.
To achieve this, virtqueue's event-idx-related API is
leveraged for avail_event field update and needs_notification
check.
Fixes : #6580
Signed-off-by: wuxinyue <wuxinyue.wxy@antgroup.com >
2024-07-23 14:16:34 +00:00
dependabot[bot]
bb4af57219
build: Bump windows-targets from 0.52.5 to 0.52.6 in /fuzz
...
Bumps [windows-targets](https://github.com/microsoft/windows-rs ) from 0.52.5 to 0.52.6.
- [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-07-23 00:21:58 +00:00
Wei Liu
824e83ab0d
hypervisor: x86: emulate STOS
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-22 15:07:59 +00:00
dependabot[bot]
29675cfe68
build: Bump piper from 0.2.1 to 0.2.3
...
Bumps [piper](https://github.com/smol-rs/piper ) from 0.2.1 to 0.2.3.
- [Release notes](https://github.com/smol-rs/piper/releases )
- [Changelog](https://github.com/smol-rs/piper/blob/main/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/piper/compare/v0.2.1...v0.2.3 )
---
updated-dependencies:
- dependency-name: piper
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-20 00:48:21 +00:00
dependabot[bot]
43632f255b
build: Bump clap from 4.5.7 to 4.5.9 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.7 to 4.5.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/clap_complete-v4.5.7...v4.5.9 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-19 23:51:34 +00:00
dependabot[bot]
a1941ad10b
build: Bump regex from 1.10.4 to 1.10.5
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.4 to 1.10.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/1.10.4...1.10.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-19 16:50:49 +00:00
dependabot[bot]
70db454b90
build: Bump windows_i686_msvc from 0.52.5 to 0.52.6 in /fuzz
...
Bumps [windows_i686_msvc](https://github.com/microsoft/windows-rs ) from 0.52.5 to 0.52.6.
- [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-07-19 02:49:59 +00:00
dependabot[bot]
7b3ffd89a5
build: Bump windows_i686_gnu from 0.52.5 to 0.52.6 in /fuzz
...
Bumps [windows_i686_gnu](https://github.com/microsoft/windows-rs ) from 0.52.5 to 0.52.6.
- [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-07-18 00:03:20 +00:00
Jinank Jain
c1f18fa634
arch: x86_64: Don't expose TSC deadline timer for MSHV guests
...
HV APIC(i.e., synthetic APIC controller exposed by Microsoft Hypervisor)
does not support one-shot operation using a TSC deadline value. Due to
which we see the following backtrace inside the guest when running with
hypervisor-fw/OVMF:
[ 0.560765] unchecked MSR access error: WRMSR to 0x832 (tried to
write 0x00000000000400ec) at rIP: 0xffffffff8f473594
(native_write_msr+0x4/0x30)
[ 0.560765] Call Trace:
[ 0.560765] ? native_apic_msr_write+0x2b/0x30
[ 0.560765] __setup_APIC_LVTT+0xbc/0xe0
[ 0.560765] lapic_timer_set_oneshot+0x27/0x30
[ 0.560765] clockevents_switch_state+0xaf/0xf0
[ 0.560765] tick_setup_periodic+0x47/0x90
[ 0.560765] tick_setup_device.isra.0+0x7c/0x110
[ 0.560765] tick_check_new_device+0xce/0xf0
[ 0.560765] clockevents_register_device+0x82/0x170
[ 0.560765] clockevents_config_and_register+0x2f/0x40
[ 0.560765] setup_APIC_timer+0xe1/0xf0
[ 0.560765] setup_boot_APIC_clock+0x5f/0x66
[ 0.560765] native_smp_prepare_cpus+0x1d6/0x286
[ 0.560765] kernel_init_freeable+0xcf/0x255
[ 0.560765] ? rest_init+0xb0/0xb0
[ 0.560765] kernel_init+0xe/0x110
[ 0.560765] ret_from_fork+0x22/0x40
Also, if this feature is exposed guest would not finish booting and get
stuck right before unpacking the root filesystem.
Fixes: 06e8d1c40 ("hypervisor: mshv: fix topology for Intel HW on MSHV")
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-07-17 17:10:08 +00:00
Bo Chen
efb92d409f
docs: performance_metrics: Add example section with sample numbers
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-07-17 15:25:03 +00:00
Bo Chen
e4aa3617c7
docs: performance_metrics: Wrap line at 80 characters
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-07-17 15:25:03 +00:00
Songqian Li
d7e8cd8258
docs: improve performance metrics documentation
...
Add a performance metrics list and the definition of output format.
Signed-off-by: Songqian Li <sionli@tencent.com >
2024-07-17 15:25:03 +00:00
dependabot[bot]
8803e4a2e7
build: Bump thiserror from 1.0.61 to 1.0.62
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.61...1.0.62 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-17 08:00:35 +00:00
dependabot[bot]
d2a01f7cec
build: Bump uuid from 1.8.0 to 1.10.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.8.0 to 1.10.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.8.0...1.10.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-17 00:12:50 +00:00
dependabot[bot]
dec4a82058
build: Bump log from 0.4.21 to 0.4.22
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.21 to 0.4.22.
- [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.21...0.4.22 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-16 06:20:32 +00:00
dependabot[bot]
5fc143205c
build: Bump windows_aarch64_msvc from 0.52.5 to 0.52.6 in /fuzz
...
Bumps [windows_aarch64_msvc](https://github.com/microsoft/windows-rs ) from 0.52.5 to 0.52.6.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_aarch64_msvc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-16 00:29:11 +00:00
Jinank Jain
b73d94f969
hypervisor: mshv: Refactor x86 emulator into different module
...
This is a preparatory work to make space for ARM64 emulator.
There is no functional change in this commit, just moving code from one
file to another.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-07-15 23:05:11 +00:00
Jinank Jain
ead4f767ff
hypervisor: mshv: Restrict dependency to x86
...
iced_x86 is only available on x86 architecture.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2024-07-15 23:05:11 +00:00
Changyuan Lyu
bc6acb842f
block: fix status value size
...
As per VirtIO spec 1.2 section 5.2.6, the `status` field is a byte, not
u32. cloud-hypervisor writes an `u32` to guest memory, which
accidentally zeros out the following 3 bytes, and may corrupt guest OS
internal state.
Signed-off-by: Changyuan Lyu <changyuanl@google.com >
2024-07-14 19:23:06 +00:00
dependabot[bot]
d89f1f4f21
build: Bump serde_with from 3.8.1 to 3.8.3 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 3.8.1 to 3.8.3.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.8.1...v3.8.3 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-13 00:23:33 +00:00
dependabot[bot]
dc90744ec3
build: Bump darling from 0.20.9 to 0.20.10
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.9 to 0.20.10.
- [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/v0.20.10 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-12 23:46:59 +00:00
Wei Liu
18340d9761
hypervisor: mshv: fine-grained control over translation flags
...
The assertion that only code emulation requires GVA to GPA translation
is wrong.
Allow the caller of `translate` to pass in permission flags directly.
Provide a new method `read_memory_flags` so that we can add the EXECUTE
permission flag where necessary.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-12 16:12:33 +00:00
Wei Liu
cfaa192eb4
hypervisor: emulator: drop the unused gva_to_gpa hook
...
That function is too limiting. It doesn't consider page permissions. It
is not used, so just drop it.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-12 16:12:33 +00:00
dependabot[bot]
c67f799717
build: Bump windows_x86_64_msvc from 0.52.5 to 0.52.6 in /fuzz
...
Bumps [windows_x86_64_msvc](https://github.com/microsoft/windows-rs ) from 0.52.5 to 0.52.6.
- [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-07-12 00:02:26 +00:00
dependabot[bot]
b47efc3bc2
build: Bump enumflags2 from 0.7.9 to 0.7.10
...
Bumps [enumflags2](https://github.com/meithecatte/enumflags2 ) from 0.7.9 to 0.7.10.
- [Release notes](https://github.com/meithecatte/enumflags2/releases )
- [Commits](https://github.com/meithecatte/enumflags2/compare/v0.7.9...v0.7.10 )
---
updated-dependencies:
- dependency-name: enumflags2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-11 23:55:37 +00:00
dependabot[bot]
498f35a1ab
build: Bump zerocopy from 0.7.34 to 0.7.35 in /fuzz
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.34 to 0.7.35.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md )
- [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 >
2024-07-11 00:52:33 +00:00
dependabot[bot]
2d61bc36ed
build: Bump anstyle from 1.0.6 to 1.0.7
...
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-07-10 23:53:26 +00:00
dependabot[bot]
46447962b8
build: Bump windows_i686_gnullvm from 0.52.5 to 0.52.6 in /fuzz
...
Bumps [windows_i686_gnullvm](https://github.com/microsoft/windows-rs ) from 0.52.5 to 0.52.6.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: windows_i686_gnullvm
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-10 00:21:49 +00:00
dependabot[bot]
9a6bc025a7
build: Bump backtrace from 0.3.71 to 0.3.73
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.71 to 0.3.73.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.71...0.3.73 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-10 00:08:56 +00:00
Rob Bradford
de1abe0e30
vmm: Use Response::ok_or_abandon() in migration logic
...
The use of this method removes duplicated code yet provides clarity on
the logic.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-07-09 19:53:26 +00:00
Rob Bradford
e97cee99ef
vm-migration: Introduce Response::ok_or_abandon()
...
This method will return the existing Response if the status is
successful (Status::Ok) otherwise issue a command to abandon the
migration and return the desired error.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com >
2024-07-09 19:53:26 +00:00
Wei Liu
3103526153
build: update pnet crates
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-09 19:52:59 +00:00
dependabot[bot]
08ff89ba6e
build: Bump zvariant from 4.1.1 to 4.1.2
...
Bumps [zvariant](https://github.com/dbus2/zbus ) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zvariant-4.1.1...zvariant-4.1.2 )
---
updated-dependencies:
- dependency-name: zvariant
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-09 00:34:10 +00:00
dependabot[bot]
514f36fb5a
build: Bump syn from 2.0.68 to 2.0.70 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.68 to 2.0.70.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.68...2.0.70 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-09 00:00:14 +00:00
dependabot[bot]
fe3506976e
build: Bump cc from 1.0.101 to 1.0.104 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.101 to 1.0.104.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.101...cc-v1.0.104 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-06 04:54:03 +00:00
Wei Liu
94929889ac
vmm: make landlock configs VMM-level config
...
This requires stashing the config values in `struct Vmm`. The configs
should be validated before before creating the VMM thread. Refactor the
code and update documentation where necessary.
The place where the rules are applied remain the same.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
8452edfcc7
tests: Test live migration with Landlock
...
Add a test case to check Live Migration with Landlock support.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
466cc5e043
tests: Add disk_hotplug test with Landlock
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
034c674c4c
tests: Add a basic Landlock test
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
b785e00317
docs: Add doc for Landlock feature
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
7f6731cd05
vmm: Limit the visibility of Landlock objects
...
Limit the visibility of objects and methods introduced by Landlock
implementation.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
457fd9ef96
vmm: enable landlock during live migration
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
eea45a2c78
vmm: Enable Landlock in restore path
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
11c17ca319
main: Enable landlock on main thread
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
249e362c70
vmm: Enable Landlock on vmm thread
...
Add file/dir paths from landlock-rules arguments to ruleset. Invoke
apply_landlock on VmConfig to apply config specific rules to ruleset.
Once done, any threads spawned by vmm thread will be automatically
sandboxed with the ruleset in vmm thread.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
b3e5738b40
vmm: Introduce ApplyLandlock trait
...
Introduce ApplyLandlock trait and add implementations to VmConfig
elements with PathBufs. This trait adds config specific rules to
landlock ruleset.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
1dd53c3d24
vmm: Enable Landlock on http-server thread
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
130c988380
vmm: Enable Landlock on signal-handler thread
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
8c76a3e4b5
vmm: Enable Landlock on event-monitor thread
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
af5a9677c8
vmm: Introduce Landlock module
...
This module introduces methods to apply Landlock LSM to cloud-hypervisor
threads.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
1d89f98edf
vmm: Introduce landlock-rules cmdline param
...
Users can use this parameter to pass extra paths that 'vmm' and its
child threads can use at runtime. Hotplug is the primary usecase for
this parameter.
In order to hotplug devices that use local files: disks, memory zones,
pmem devices etc, users can use this option to pass the path/s that will
be used during hotplug while starting cloud-hypervisor. Doing this will
allow landlock to add required rules to grant access to these paths when
cloud-hypervisor process starts.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
287dbd4fc9
vmm: Introduce landlock cmdline parameter
...
Users can use this cmdline option to enable/disable Landlock based
sandboxing while running cloud-hypervisor.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Praveen K Paladugu
c50ea2c708
vmm: Add seccomp rules to allow landlock syscalls
...
landlock syscalls are required by event_monitor, signal_handler,
http-server and vmm threads. Rest of the threads are spawned by the vmm
thread and they automatically inherit the ruleset from the vmm thread.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2024-07-06 04:42:58 +00:00
Wei Liu
14b45e4d2e
hypervisor: mshv: handle GPA intercept
...
We will start receiving GPA intercepts. For our use cases they are
handled the same way as UNMAPPED GPA intercepts.
Put in some logging to distinguish the two cases.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-04 18:45:01 +00:00
Wei Liu
519476e842
hypervisor: mshv: relax the requirement for instruction emulation
...
Previously we required the hypervisor to give us a valid instruction
stream. That worked well enough because we never hit any edge conditions
(such as when the instruction stream crosses page boundary).
Now that MSHV can deal with partial or empty instruction stream, we can
remove that requirement.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-04 18:45:01 +00:00
Wei Liu
5fec858130
hypervisor: mshv: implement fetching instructions in emulator
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-04 18:45:01 +00:00
Wei Liu
67f22b6aa4
hypervisor: mshv: fix GVA translation flags
...
Original we checked for R and W, but that code path never got executed.
It is now understood that we can only get here when we execute code. Fix
the permission flags.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-04 18:45:01 +00:00
Wei Liu
1eb4133034
hypervisor: x86: emulator: set IP properly for newly fetched stream
...
The default value of IP is zero. If the decoder's state not set
properly, then the guest state is going to be wrong.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-04 18:45:01 +00:00
dependabot[bot]
9f3bea3e3f
build: Bump anstyle-parse from 0.2.3 to 0.2.4 in /fuzz
...
Bumps [anstyle-parse](https://github.com/rust-cli/anstyle ) from 0.2.3 to 0.2.4.
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-parse-v0.2.3...anstyle-parse-v0.2.4 )
---
updated-dependencies:
- dependency-name: anstyle-parse
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-03 21:54:50 +00:00
Alyssa Ross
e7c7a304e8
virtio-devices: fix UB getting tty size
...
TIOCGWINSZ modifies its argument, so it needs to mutably borrow it.
Unfortunately, ioctl()'s signature is not able to enforce this, and
the write happens in the kernel, so I don't think anything like miri,
valgrind, UBSan, etc. would have been able to catch this.
The UB passing an immutable reference caused resulted, for me, in
get_win_size() returning (0, 0) since LLVM commit
9a09c737a052 ("[BasicAA] Make isNotCapturedBeforeOrAt() check for
calls more precise (#69931 )").
I've had a look through the other ioctl() calls in Cloud Hypervisor,
and I don't think any others have the same problem.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2024-07-03 21:26:04 +00:00
Bo Chen
b5cce0d371
build: Enable vfio and sgx worker
...
This reverts commit 7d84654a79 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-07-03 00:34:28 +00:00
Wei Liu
7c608f6380
hypervisor: x86: emulator: accept empty instruction stream input
...
The emulator should fetch from memory just fine.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-02 14:59:50 +00:00
Wei Liu
3ad8d24943
hypervisor: x86: emulator: fix a variable
...
Comparing RAX with RIP makes no logical sense other than RIP happens to
be the correct value. Use `target_rax` instead.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-02 14:59:50 +00:00
Wei Liu
56c6c02724
hypervisor: x86: emulator: test executing only one instruction
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-02 14:59:50 +00:00
Wei Liu
19b0ea842b
hypervisor: x86: emulator: add the second instruction to test comment
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2024-07-02 14:59:50 +00:00
dependabot[bot]
16bd88b4b5
build: Bump cc from 1.0.99 to 1.0.101 in /fuzz
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.99 to 1.0.101.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.99...cc-v1.0.101 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-28 00:28:40 +00:00
dependabot[bot]
09136c50b5
build: Bump syn from 2.0.66 to 2.0.68 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.66 to 2.0.68.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.66...2.0.68 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-27 17:44:00 +00:00
Nuno Das Neves
380b7d398c
build: Bump openssl-src to 3.3.1
...
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-06-25 18:55:52 +00:00
Nuno Das Neves
764959c9a8
build: Bump libz-sys to 1.1.18
...
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2024-06-25 18:55:52 +00:00
Bo Chen
7d84654a79
build: Temporarily disable vfio and sgx worker
...
The corresponding bare-metal runner needs to be offline for
maintenance.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2024-06-25 17:40:20 +00:00
Julian Stecklina
246cb94dc5
build: Fix license string to comply with SPDX list
...
cargo-cyclonedx rejects the current license key in Cargo.toml, because
it doesn't comply with the SPDX standard:
Package cloud-hypervisor has an invalid license expression (LICENSE-APACHE & LICENSE-BSD-3-Clause), using as named license: Invalid Lax SPDX expression: unknown term
Fix by using the names from the SPDX list:
https://spdx.github.io/license-list-data/
Signed-off-by: Julian Stecklina <julian.stecklina@cyberus-technology.de >
2024-06-25 09:14:19 -07:00
dependabot[bot]
165c2c476f
build: Bump proc-macro2 from 1.0.83 to 1.0.86 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.83 to 1.0.86.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.83...1.0.86 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-22 09:04:44 +00:00
dependabot[bot]
5e8f380698
build: Bump anyhow from 1.0.82 to 1.0.86 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.82 to 1.0.86.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.82...1.0.86 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-21 16:45:25 +00:00
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