Rob Bradford
66460765a3
build: Release v28.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-17 15:40:14 +00:00
Rob Bradford
b748b8987d
Jenkinsfile: Re-enable metrics CI
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-17 15:34:12 +00:00
Wei Liu
c9483fb080
tracer: avoid unnecessary allocations
...
Allocation is only required when creating a new entry in the hashmap.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-17 12:52:27 +00:00
Michael Zhao
f52cd3bb85
Revert "Jenkins: Temporarily turn off AArch64 CI"
...
This reverts commit 345e65c9c2 .
The AArch64 server maintenance is done. Now we can enable the CI again.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-11-17 15:26:27 +08:00
dependabot[bot]
57cd12fabc
build: Bump remain from 0.2.4 to 0.2.5
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.4...0.2.5 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 23:48:46 +00:00
dependabot[bot]
869c649e81
build: Bump os_str_bytes from 6.3.1 to 6.4.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.3.1 to 6.4.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.3.1...6.4.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 23:24:01 +00:00
Rob Bradford
a9e30c88df
README: Update version of Rust Hypervisor Firmware
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-16 08:11:22 -08:00
dependabot[bot]
1666375a31
build: Bump vfio-ioctls from bf7c9b9 to ad86d84
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `bf7c9b9` to `ad86d84`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](bf7c9b997b...ad86d843a2 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 11:26:45 +00:00
dependabot[bot]
9a0be7db3a
build: Bump uuid from 1.2.1 to 1.2.2 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.1...1.2.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-15 23:17:26 +00:00
Praveen K Paladugu
324c5deb37
docs: Add doc for using and testing tpm device
...
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
09e79a5e9b
vmm: Add tpm device to mmio bus
...
Add tpm device to mmio bus if appropriate cmdline arguments were
passed.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
af261f231c
vmm: Add required acpi entries for vtpm device
...
Add an TPM2 entry to DSDT ACPI table. Add a TPM2 table to guest's ACPI.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
7122e2989c
vmm: Add tpm parameter
...
Add an optional --tpm parameter that takes UNIX Domain
Socket from swtpm.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
d0b253d15f
devices: Add tpm device
...
This device emulates a tpm device in cloud-hypervisor. Read and write support
to miminal set of control registers is supported.
Non-control commands will be processed as reads and write to
CRB_DATA_BUFFER. Reads and Writes to this data buffer are forwarded to
swtpm via the configured data_fd.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
59baa29deb
arch: Add TPM Address ranges to layouts
...
Add TPM's CRB Interface specific address ranges to layouts
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
19fdf8bc79
tpm: Add emulator module
...
Emulator module adds methods required to communicate with swtpm
over Ctrl and Data channels.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
58b902d036
tpm: Add socket module
...
Add SocketDev struct. Methods in SocketDev will be used to read & write
to Ctrl channel created by swtpm.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Praveen K Paladugu
e3213c8a79
tpm: Add library module
...
Add structures and related methods to process Ctrl requests and responses
from swtpm to tpm library.
Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com >
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com >
2022-11-15 16:42:21 +00:00
Wei Liu
2e2ce47271
hypervisor: do not get and set MSR_IA32_TSC for MSHV
...
Setting that MSR causes the reference TSC page to be disabled.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-15 10:19:57 +00:00
Rob Bradford
d3a8332282
tests: Remove test_reboot
...
There is no need for this test any longer as we have plenty of other
tests that reboot the VM.
Further this test used unmodified bionic image, which not only will be
EOLed soon but also took a long time to shutdown as it still had snapd
installed.
Fixes : #4849
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-15 09:30:16 +00:00
dependabot[bot]
c64004b9a9
build: Bump mshv-ioctls from ac9c92f to 1a9ca01
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `ac9c92f` to `1a9ca01`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](ac9c92f9b3...1a9ca01801 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 23:45:35 +00:00
Rob Bradford
149e424b6e
virtio-devices: block: Return error to driver on writes if read-only
...
TEST=Boot `--disk readonly=on` along with a guest that tries to write
(unmodified hypervisor-fw) and observe that the virtio device thread no
longer panics.
Fixes : #4888
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-14 15:28:30 +00:00
Wei Liu
b07d471d4f
virtio-devices: show the failed block request to help debugging
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-11-14 14:19:17 +00:00
Michael Zhao
345e65c9c2
Jenkins: Temporarily turn off AArch64 CI
...
Temporarily turn off AArch64 integration test in Jenkins for server
maintenance.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-11-14 08:34:47 +00:00
dependabot[bot]
f93aa42319
build: Bump once_cell from 1.15.0 to 1.16.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-12 08:30:12 +00:00
dependabot[bot]
fa4bf92feb
build: Bump io-uring from 0.5.8 to 0.5.9 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-12 08:30:01 +00:00
Rob Bradford
f30d460fa3
virtio-devices: seccomp: Move mprotect() to virtio common rules
...
It's perfectly reasonable to expect if that some virtio threads trigger
libc behaviour that needs mprotect() that all virtio threads would do
the same.
Fixes : #4874
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-12 08:29:47 +00:00
Rob Bradford
2c94773bdc
docs: seccomp: Enhance strace command to print thread name
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-11 16:47:24 +00:00
dependabot[bot]
9f1d2d34e8
build: Bump darling from 0.14.1 to 0.14.2
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.1...v0.14.2 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-11 08:15:25 +00:00
Rob Bradford
57508a4b1c
virtio-net: net: Wait for threads to exit on Drop
...
It is required to close all file descriptors pointing to an opened TAP
device prior to reopening the TAP device; otherwise it will return
-EBUSY as the device can only be opened once (excluding MQ use cases.)
When rebooting the VM the virtio-net threads would still be running and
so the TAP file descriptor may not have been closed. To ensure that the
TAP FD is closed wait for all the epoll threads to exit after receiving the
KILL_EVENT.
Fixes : #4868
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-10 07:46:16 -08:00
dependabot[bot]
012f2572d5
build: Bump terminal_size from 0.2.1 to 0.2.2
...
Bumps [terminal_size](https://github.com/eminence/terminal-size ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/eminence/terminal-size/releases )
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.1...v0.2.2 )
---
updated-dependencies:
- dependency-name: terminal_size
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-10 09:39:09 +00:00
dependabot[bot]
b9dbe3a2f7
build: Bump rustix from 0.35.12 to 0.35.13 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.12 to 0.35.13.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.12...v0.35.13 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-09 23:43:39 +00:00
Rob Bradford
6230929d51
openapi: Add thp option to MemoryConfig
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
Rob Bradford
04d034a0bc
docs: Update memory.md for THP
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
Rob Bradford
f603afc46e
vmm: Make Transparent Huge Pages controllable (default on)
...
Add MemoryConfig::thp and `--memory thp=on|off` to allow control of
Transparent Huge Pages.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
Rob Bradford
b68add2d0d
vmm: Enable THP when using anonymous memory
...
If the memory is not backed by a file then it is possible to enable
Transparent Huge Pages on the memory and take advantage of the benefits
of huge pages without requiring the specific allocation of an appropriate
number of huge pages.
TEST=Boot and see that in /proc/`pidof cloud-hypervisor`/smaps that the
region is now THPeligible (and that also pages are being used.)
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-09 16:51:21 +00:00
dependabot[bot]
0f44db5da4
build: Bump openssl-src from 111.23.0+1.1.1r to 111.24.0+1.1.1s
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.23.0+1.1.1r to 111.24.0+1.1.1s.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-08 23:44:15 +00:00
dependabot[bot]
a7dccf94cf
build: Bump terminal_size from 0.2.1 to 0.2.2 in /fuzz
...
Bumps [terminal_size](https://github.com/eminence/terminal-size ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/eminence/terminal-size/releases )
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.1...v0.2.2 )
---
updated-dependencies:
- dependency-name: terminal_size
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-08 23:36:26 +00:00
Jianyong Wu
0e6e539d9b
AArch64/fdt: fix PMU irqflag calculation
...
Currently, CPU mask involved into PMU irqflag caculation which is used
for Gicv2. It limits the CPU number up to 31. For Gicv3+, CPU mask is no
longer needed. More info see [1].
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
[1] https://lore.kernel.org/all/165668798833.3744902.12084627427900181326.b4-ty@kernel.org/t/
2022-11-08 11:24:11 +00:00
dependabot[bot]
1cb1cff882
build: Bump env_logger from 0.9.1 to 0.9.3
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.9.1...v0.9.3 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-07 23:55:26 +00:00
dependabot[bot]
fefbc356a2
build: Bump once_cell from 1.15.0 to 1.16.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-07 23:52:05 +00:00
Muminul Islam
8b37448d28
tests: Disable test_snapshot_restore_hotplug_virtiomem for MSHV
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-04 12:24:33 -07:00
Muminul Islam
92d083f593
tests: Add a basic test for snapshot/retsore
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-04 12:24:33 -07:00
Muminul Islam
58d8795b53
tests: Make a wrapper function for snapshot/restore
...
Signed-off-by: Muminul Islam <muislam@microsoft.com >
2022-11-04 12:24:33 -07:00
Bo Chen
b37e2ed378
virtio-devices: mem: Handle integer overflow properly
...
An integer overflow from our virtio-mem device can be triggered
from (misbehaved) guest driver with malicious requests. This patch
handles this integer overflow explicitly and treats it as an invalid
request.
Note: this bug was detected by our virtio-mem fuzzer through 'oss-fuzz'.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-04 09:33:21 +00:00
Bo Chen
ef8fb9bd25
fuzz: Add fuzzer for virtio-console
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-03 09:10:41 -07:00
Bo Chen
cfafc85b9c
virtio-devices: Custom 'EpollHelper::run_with_timeout' for fuzz
...
To support all virtio-devices, this patch replaces the customized
EpollHelper::run` with customized `EpollHelper::run_with_timeout` for
fuzzing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-03 09:10:41 -07:00
Bo Chen
683491a955
virtio-devices: console: Provide 'wait_for_epoll_threads'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-03 09:10:41 -07:00
dependabot[bot]
2bbb08b2a4
build: Bump io-uring from 0.5.7 to 0.5.8
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-02 23:56:43 +00:00
dependabot[bot]
b77eb63688
build: Bump darling from 0.14.1 to 0.14.2 in /fuzz
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.1...v0.14.2 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-02 23:51:00 +00:00
Rob Bradford
6722c303b0
docs: Fix broken link in windows.md
...
Fixes : #4840
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 11:40:44 +00:00
Rob Bradford
6e0bd73c90
build: Bump linux-loader from 0.6.0 to 0.7.0
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 11:02:00 +00:00
Rob Bradford
103fe1f48b
tests: Skip building kernel if already present
...
When running the glibc and musl integration tests on the CI after each
other skip building the kernel a second time.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 09:42:07 +00:00
Rob Bradford
f4e1b72477
build: Consolidate integration testing to reused built assets
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 09:42:07 +00:00
Rob Bradford
65628e8d94
build: Run linter over Jenkinsfile
...
This has resulted in the content being indented with spaces rather tabs
per Groovy coding style.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-11-02 09:42:07 +00:00
dependabot[bot]
851de1e0b3
build: Bump io-uring from 0.5.7 to 0.5.8 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-02 09:21:17 +00:00
Bo Chen
a9ec0f33c0
misc: Fix clippy issues
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-11-02 09:41:43 +01:00
dependabot[bot]
9266ea4995
build: Bump clap from 4.0.17 to 4.0.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.17 to 4.0.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.17...v4.0.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-01 00:41:51 +00:00
dependabot[bot]
6b8070de95
build: Bump io-lifetimes from 0.7.3 to 0.7.4
...
Bumps [io-lifetimes](https://github.com/sunfishcode/io-lifetimes ) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/sunfishcode/io-lifetimes/releases )
- [Commits](https://github.com/sunfishcode/io-lifetimes/compare/v0.7.3...v0.7.4 )
---
updated-dependencies:
- dependency-name: io-lifetimes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 23:48:55 +00:00
dependabot[bot]
a5712641d2
build: Bump remain from 0.2.4 to 0.2.5 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.4...0.2.5 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 23:46:39 +00:00
Rob Bradford
aad4dc3b6b
docs: Update memory.md to indicated that hugepages overrides shared
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
f4495de143
vmm: Improve handling of shared memory backing
...
As huge pages are always MAP_SHARED then where the shared memory would
be checked (for vhost-user and local migration) we can also check
instead for huge pages.
The checking is also extended to cover the memory zones based
configuration as well.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
99d9a3d299
vmm: memory_manager: Avoid MAP_PRIVATE CoW with VFIO for hugepages too
...
We can't use MAP_ANONYMOUS and still have huge pages so MAP_SHARED is
effectively required when using huge pages.
Unfortunately it is not as simple as always forcing MAP_SHARED if
hugepages is on as this might be inappropriate in the backing file case
hence why there is additional complexity of assigning to mmap_flags on
each case and the MAP_SHARED is only turned on for the anonymous file
huge page case as well as anonymous shared file case.
See: #4805
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
df7c728399
vmm: memory_manager: Only file back memory when required
...
If we do not need an anonymous file backing the memory then do not
create one.
As a side effect this addresses an issue with CoW (mmap with MAP_PRIVATE
but no MAP_ANONYMOUS) when the memory is pinned for VFIO.
Fixes : #4805
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
1e5a4e8d77
vmm: memory_manager: Split filesystem backed and anonymous RAM creation
...
This simplifies the code somewhat making the code paths more readable.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
ff3fb91ba6
vmm: Refactor creation of the FileOffset for GuestRegionMmap::new()
...
Create this earlier so that it is possible to pass a None in for
anonymous mappings.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 22:28:29 +00:00
Rob Bradford
86c19816c6
block_util: Probe for used io_uring opcodes
...
The probing logic wasn't updated to reflect the actual opcodes in use
for io_uring which are vectored read/writes not the unvectored versions.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-31 08:53:54 +01:00
dependabot[bot]
ad1cb130a5
build: Bump openssl-sys from 0.9.76 to 0.9.77
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.76 to 0.9.77.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.76...openssl-sys-v0.9.77 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-28 23:45:06 +00:00
dependabot[bot]
0c75e7f7b2
build: Bump os_str_bytes from 6.3.0 to 6.3.1 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.3.0...6.3.1 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-28 23:40:41 +00:00
Jinrong Liang
cb171d4a23
device_manager: Avoid checking io_uring support when it's not needed
...
After testing, io_uring_is_supported() causes about 38ms of
overhead when creating virtio-blk. By modifying the position
of io_uring_is_supported(), the overhead of creating virtio-blk
is reduced to less than 1ms when we close io_uring.
Signed-off-by: Jinrong Liang <cloudliang@tencent.com >
2022-10-27 22:21:51 -07:00
dependabot[bot]
bc310bb173
build: Bump libc from 0.2.135 to 0.2.137
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.135 to 0.2.137.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.135...0.2.137 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 23:57:43 +00:00
dependabot[bot]
76f4641004
build: Bump arbitrary from 1.1.7 to 1.2.0 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.7 to 1.2.0.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.7...v1.2.0 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 23:53:53 +00:00
dependabot[bot]
dcb12c05a7
build: Bump pkg-config from 0.3.25 to 0.3.26
...
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs ) from 0.3.25 to 0.3.26.
- [Release notes](https://github.com/rust-lang/pkg-config-rs/releases )
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.25...0.3.26 )
---
updated-dependencies:
- dependency-name: pkg-config
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 07:57:53 +00:00
Bo Chen
078c0408b3
virtio-devices: console: Remove obsoleted 'INPUT_EVENT'
...
Since the processing of the console inputs was moved from the VMM thread
to the virtio-console thread (#3061 ), we have been using the 'FILE_EVENT'
to handle input from stdin/pty/file, which made 'INPUT_EVENT' obsoleted.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-27 09:27:12 +02:00
Wei Liu
b99b2bc990
memory_manager: use MFD_CLOEXEC flag when creating memory fd
...
Until there is a need for sharing the memory fd with a child process, we
should err on the safe side to close it on exec.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-10-27 09:20:08 +02:00
dependabot[bot]
0cd6d96874
build: Bump getrandom from 0.2.7 to 0.2.8 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-26 23:53:05 +00:00
Bo Chen
a5d0ff7039
virtio-devices: console: Propagate GuestMemory errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-26 09:39:30 +02:00
Bo Chen
da1ab77848
virtio-devices: console: Report error instead of panic
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-26 09:39:30 +02:00
dependabot[bot]
989d3d3960
build: Bump syn from 1.0.102 to 1.0.103
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.102...1.0.103 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 23:45:43 +00:00
dependabot[bot]
1559b7b684
build: Bump rustix from 0.35.11 to 0.35.12 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.11 to 0.35.12.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.11...v0.35.12 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 23:43:02 +00:00
dependabot[bot]
e96474a5bd
build: Bump rustix from 0.35.11 to 0.35.12
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.11 to 0.35.12.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.11...v0.35.12 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 23:48:30 +00:00
dependabot[bot]
2a36a18be3
build: Bump syn from 1.0.102 to 1.0.103 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.102...1.0.103 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 23:47:19 +00:00
zbleness
0e386581e0
README.md: Add missing backslash to example code
...
Signed-off-by: zbleness <77726616+zbleness@users.noreply.github.com >
2022-10-24 16:33:14 +02:00
Sebastien Boeuf
1f0e5eb66a
vmm: virtio-devices: Restore every VirtioDevice upon creation
...
Following the new design proposal to improve the restore codepath when
migrating a VM, all virtio devices are supplied with an optional state
they can use to restore from. The restore() implementation every device
was providing has been removed in order to prevent from going through
the restoration twice.
Here is the list of devices now following the new restore design:
- Block (virtio-block)
- Net (virtio-net)
- Rng (virtio-rng)
- Fs (vhost-user-fs)
- Blk (vhost-user-block)
- Net (vhost-user-net)
- Pmem (virtio-pmem)
- Vsock (virtio-vsock)
- Mem (virtio-mem)
- Balloon (virtio-balloon)
- Watchdog (virtio-watchdog)
- Vdpa (vDPA)
- Console (virtio-console)
- Iommu (virtio-iommu)
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-24 14:17:08 +02:00
Sebastien Boeuf
157db33d65
vmm: Refactor hypervisor::Vm creation on restore
...
This prevents from leaking implementation details to lib.rs, and rather
keep them in vm.rs.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-24 14:17:08 +02:00
dependabot[bot]
40df6c3787
build: Bump serde from 1.0.145 to 1.0.147
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:41:05 +00:00
dependabot[bot]
b425c5f57c
build: Bump serde from 1.0.145 to 1.0.147 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-21 23:40:25 +00:00
Fabiano Fidêncio
b4e3942708
api: Fix vm.add-device argument type
...
The add_device() function, from the device manager code, takes a
DeviceConfig as a parameter, instead of a VmAddDevice.
The change was originally done as part of 34412c9b41 and it didn't
break Kata Containers because the VmAddDevice and DeviceConfig structs
share most of their fields, besides the optional for serialization
`pci_segment`, which is not used by the client yet.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-21 11:09:55 -07:00
Bo Chen
802f489e4d
fuzz: Add fuzzer for virtio-iommu
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-21 14:21:42 +01:00
Bo Chen
fdecd94b20
virtio-devices: iommu: Provide 'wait_for_epoll_threads()'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-21 14:21:42 +01:00
Bo Chen
2af2cc539f
misc: Unify error message punctuation
...
Considering error messages will be mostly nested, ensuring no
punctuation at the end will make the error log more readable.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-21 12:19:07 +02:00
dependabot[bot]
7d71319210
build: Bump anyhow from 1.0.65 to 1.0.66 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.65 to 1.0.66.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.66 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-21 00:39:56 +00:00
dependabot[bot]
e710e21744
build: Bump anyhow from 1.0.65 to 1.0.66
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.65 to 1.0.66.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.66 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-21 00:04:03 +00:00
Bo Chen
9c658e21a5
virtio-devices: iommu: Remove trivial handling of 'EVENT_Q_EVENT'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 10:32:23 -07:00
Bo Chen
38620eaea8
virtio-devices: net: Avoid using vector and direct indexing
...
With known number of queues and queue events, we can make each of them
more explicit and avoid using vector/direct indexing, which is cleaner
and slightly more efficient.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:36 -07:00
Bo Chen
a388d76228
virtio-devices: console: Avoid using vector and direct indexing
...
The the number of queues and associated events is known and fixed. We
can define and use each of them explicitly and avoid using vector (and
hence direct indexing), which is cleaner and slightly more efficient.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:36 -07:00
Bo Chen
710a860e9b
virtio-devices: iommu: Avoid using vector and direct indexing
...
The the number of queues and associated events is known and fixed. We
can define and use each of them explicitly and avoid using vector (and
hence direct indexing), which is cleaner and slightly more efficient.
Also, this refactoring makes it clearer that we are not handling "event
queue" events (as "_event_queue" is not being used intentionally).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:36 -07:00
Bo Chen
83f22ac779
virtio-devices: iommu: Specify minimum number of queues to avoid OOB
...
In this way, the virtio-iommu code can properly report an error when
a wrong number of queues is provided, instead of triggering an
out-of-bound error.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-20 07:45:00 -07:00
dependabot[bot]
71b4aad3f1
build: Bump serde_json from 1.0.86 to 1.0.87 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.86...v1.0.87 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-20 00:19:44 +00:00
dependabot[bot]
d7afa3c47e
build: Bump serde_json from 1.0.86 to 1.0.87
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.86...v1.0.87 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-19 23:44:35 +00:00
Rob Bradford
073374e2b0
README.md: Fix path to executable
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-19 15:11:18 +01:00
dependabot[bot]
d4f40487e3
build: Bump clap from 4.0.15 to 4.0.17 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.15...v4.0.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-19 00:23:48 +00:00
dependabot[bot]
f63cf2ebc0
build: Bump clap from 4.0.15 to 4.0.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.15...v4.0.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-18 23:47:28 +00:00
dependabot[bot]
46031cb211
build: Bump libfuzzer-sys from 0.4.4 to 0.4.5 in /fuzz
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/rust-fuzz/libfuzzer/releases )
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.4...0.4.5 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-18 23:46:04 +00:00
Sebastien Boeuf
c52ccf3992
vmm: migration: Create destination VM right before to restore it
...
This is preliminary work to ensure a migrated VM is created right before
it is restored. This will be useful when moving to a design where the VM
is both created and restored simultaneously from the Snapshot.
In details, that means the MemoryManager is the object that must be
created upon receiving the config from the source VM, so that memory
content can be later received and filled into the GuestMemory.
Only after these steps happened, the snapshot is received from the
source VM, and the actual Vm object can be created from both the
snapshot and the MemoryManager previously created.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-18 17:14:29 +02:00
Bo Chen
7b31871a36
fuzz: mem: Avoid using hugepages
...
The kernel will trigger a SIGBUS upon hugetlb page faults when there is
no huge pages available. We neither have a way to ensure enough huge
pages available on the host system, nor have a way to gracefully report
the lack of huge pages in advance from Cloud Hypervisor. For these
reasons, we have to avoid using huge pages from the virtio-mem fuzzer to
avoid SIGBUS errors.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-18 09:09:35 +01:00
dependabot[bot]
1b58c63734
build: Bump proc-macro2 from 1.0.46 to 1.0.47
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.46...1.0.47 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-18 00:18:37 +00:00
dependabot[bot]
d1435a44af
build: Bump proc-macro2 from 1.0.46 to 1.0.47 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.46...1.0.47 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-17 23:42:59 +00:00
Rob Bradford
a75d71f2c8
vmm: Reduce logging severity for unknown MMIO/PIO device accesses
...
These look alarming if you are booting with the a distro kernel which is
now a recommended approach.
See: #4786
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-17 10:08:36 -07:00
Bo Chen
96209e7a16
vmm: Remove the explicit call to 'Snapshottable:restore()'
...
The restore path of MemoryManager is handled specially without
implementing a `Snapshottable:restore()`. Removing the explicit call to
it along the migration code path to avoid confusions.
See: #4783
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-17 10:07:44 -07:00
Jinank Jain
7a68689794
hypervisor: Fix a typo in error message
...
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-10-16 09:33:08 +00:00
Bo Chen
6e6b519a74
Revert "tests: Temporarily disable test_live_{migration,upgrade}_watchdog{_local}"
...
This reverts commit 87fb9cedc9 .
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 13:42:03 +01:00
Bo Chen
958ef69295
tests: Rely on wtmp (the login records) to count reboot times
...
The systemd journal has a known issue of generating large size logs[1],
which makes it unreliable as a source for retrieving system
information, such as for counting reboot times. This is particularly
problematic on disk-constrained systems, like the VMs we launched for
our integration tests, where the disk size is normally 2GB. By default,
the systemd journal has a size limit of 10% of the size of the
underlying file system (e.g. around 200MB for the VMs of our integration
tests), which would remove archived journal files on demand.
A better alternative to count reboot times is based on information from
`wtmp` (e.g. the login records) which is much more concise and can be
accessed via the `last` command.
[1] https://github.com/systemd/systemd/issues/5285
Fixes : #4749
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 13:42:03 +01:00
Rob Bradford
ffc222b26e
docs: Modernise README
...
Refresh our README in a consistent style and update it to reflect:
* A recommendation to use binaries
* Clarify our relationship with other Rust based VMMs/Rust-VMM project
* Ensure instructions result in a usable image (cloud-init)
* Simplify script instructions
* Move compilation details elsewhere
* Add Fedora 36 image details
* Point to CLOUDHV as well as Rust Hypervisor Firmware
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-14 12:04:06 +01:00
Bo Chen
5b706422e8
virtio-devices: iommu: Propagate errors of processing request queue
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 11:28:31 +01:00
Bo Chen
84105992b7
virtio-devices: iommu: Switch to use 'thiserror'
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 11:28:31 +01:00
Bo Chen
0235ed3388
virtio-devices: mem: Report error instead of panic
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-14 11:28:31 +01:00
dependabot[bot]
58066e2da4
build: Bump clap from 4.0.14 to 4.0.15
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.14 to 4.0.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.14...v4.0.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-14 00:12:55 +00:00
dependabot[bot]
62d6553714
build: Bump clap from 4.0.14 to 4.0.15 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.14 to 4.0.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.14...v4.0.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-13 23:40:57 +00:00
lv.mengzhao
2a45e44bda
qcow: Fix the calculation of the number of clusters for L1 table
...
In function create_for_size(), when calculating the number
of clusters for the L1 table, it incorrectly divides the total number of
entries in the L1 table by the cluster size. In fact, it should be
divided by the number of entries/addresses that can fit into a cluster.
Signed-off-by: lv.mengzhao <lv.mengzhao@zte.com.cn >
2022-10-13 13:43:08 +01:00
Sebastien Boeuf
099cdd2af8
virtio-devices, vmm: vdpa: Implement live migration support
...
Vdpa now implements the Migratable trait, which allows the device to be
added to the DeviceTree and therefore allows live migrating any vDPA
device that supports being suspended.
Given a vDPA device can't be resumed from a suspended state without
having to reset everything, we don't support pause/resume for a vDPA
device, as well as snapshot/restore (which requires resume to be
supported).
In order for the migration to work locally, reusing the same device on
the same host machine, the vhost-vdpa handler is dropped after the
snapshot has been performed, which allows the destination VM to open the
device without any conflict about the device being busy.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
340fd6571a
virtio-devices: vdpa: Make vhost-vdpa handler optional
...
In order to anticipate for migration support, we need to be able to
create a Vdpa object without VhostKernVdpa object associated with it.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
02f951a9c3
virtio-devices: vdpa: Simplify vring enabling
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
22be5f9d0f
vmm: Extend list of authorized ioctls for vDPA
...
Adding VHOST_VDPA_GET_CONFIG_SIZE and VHOST_VDPA_SUSPEND to the list of
authorized ioctls for the vmm thread.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
a9ccb20e5a
vm-migration: Add StartMigration type to MigratableError
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
2b150ac2ea
pci, virtio-devices: Restore proper BAR type
...
When restoring a VM, the BAR type can be found directly from the
snapshot resources. It is more reliable than the previous method which
was using self.use_64bit_bar from VirtioPciDevice because at the time
the BARs are allocated, the VirtioDevice hasn't been restored yet,
meaning the way to determine the value of use_64bit_bar is wrong for a
device like vDPA. At this time, the device type is not known and relying
on the stored resources is the only reliable way.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
Sebastien Boeuf
204bf2e3f5
deps: Rely on latest rust-vmm/vhost version
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-13 10:03:23 +02:00
dependabot[bot]
2a40fe5541
build: Bump clap from 4.0.13 to 4.0.14
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.13 to 4.0.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.13...v4.0.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-13 00:12:47 +00:00
dependabot[bot]
7ae4e2b8fe
build: Bump clap from 4.0.13 to 4.0.14 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.13 to 4.0.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.13...v4.0.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 23:39:52 +00:00
Rob Bradford
f17f4079b4
test_data: Use bash TCP support instead of netcat for boot check
...
This means that the guest image does not need to have netcat installed
making it easier to use unmodified images.
See https://www.gnu.org/software/bash/manual/html_node/Redirections.html
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-12 23:04:42 +01:00
Bo Chen
342851c88c
fuzz: Add fuzzer for virtio-mem
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-12 16:09:27 +01:00
Bo Chen
37c3b0429a
vmm: Make MemoryManager::create_ram_region() public
...
So that it can be reused externally, such as for fuzzing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-12 16:09:27 +01:00
dependabot[bot]
af14044fb8
build: Bump zerocopy-derive from 0.3.1 to 0.3.2
...
Bumps [zerocopy-derive](https://github.com/google/zerocopy ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Commits](https://github.com/google/zerocopy/commits )
---
updated-dependencies:
- dependency-name: zerocopy-derive
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 09:57:50 +00:00
dependabot[bot]
fa39d1e9b9
build: Bump clap from 4.0.12 to 4.0.13
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.12 to 4.0.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.12...v4.0.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 09:22:18 +00:00
dependabot[bot]
00714dc54a
build: Bump openssl-src from 111.22.0+1.1.1q to 111.23.0+1.1.1r
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.22.0+1.1.1q to 111.23.0+1.1.1r.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-12 09:18:08 +01:00
Rob Bradford
87fb9cedc9
tests: Temporarily disable test_live_{migration,upgrade}_watchdog{_local}
...
This test has been identified as flaky and is creating CI churn.
See: #4749
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-12 09:17:39 +01:00
dependabot[bot]
ce2928d842
build: Bump clap from 4.0.12 to 4.0.13 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.12 to 4.0.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.12...v4.0.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 23:45:11 +00:00
Anatol Belski
a18b08c682
seccomp: mshv: Allow create partition ioctl
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2022-10-11 09:05:24 +01:00
dependabot[bot]
43935c3b95
build: Bump uuid from 1.1.2 to 1.2.1
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.2 to 1.2.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.2...1.2.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 03:12:14 +00:00
dependabot[bot]
c3c550c454
build: Bump unicode-ident from 1.0.4 to 1.0.5
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 02:38:53 +00:00
dependabot[bot]
7da632def6
build: Bump unicode-ident from 1.0.4 to 1.0.5 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:44:58 +00:00
dependabot[bot]
f38ef20e3b
build: Bump libc from 0.2.134 to 0.2.135
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.134 to 0.2.135.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.134...0.2.135 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:13:44 +00:00
dependabot[bot]
a033b1ef67
build: Bump uuid from 1.1.2 to 1.2.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.2 to 1.2.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.2...1.2.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:11:14 +00:00
dependabot[bot]
ffa7d27b5e
build: Bump libc from 0.2.134 to 0.2.135 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.134 to 0.2.135.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.134...0.2.135 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 00:22:29 +00:00
dependabot[bot]
da725daca0
build: Bump clap from 4.0.10 to 4.0.12
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.10 to 4.0.12.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.10...v4.0.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 00:22:25 +00:00
dependabot[bot]
0fe0eb4c97
build: Bump serde_json from 1.0.85 to 1.0.86
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.86 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-10 23:47:01 +00:00
dependabot[bot]
8877211d9e
build: Bump syn from 1.0.101 to 1.0.102
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.101...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-08 00:29:08 +00:00
dependabot[bot]
f907ff5d82
build: Bump syn from 1.0.101 to 1.0.102 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.101...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-07 23:47:54 +00:00
Rob Bradford
89a2562c5a
pci: Optimise MSI-X table programming
...
With an updated Linux kernel the kernel reprograms the same table entry
in the MSI-X table multiple times. Fortunately it does so with entry
masked (the default.)
The costly part of MSI-X table reprogramming is going out to the host
kernel to update the GSI routing entries. This change makes three
optimisations.
1. If the table entry is unchanged: skip handking updates
2. Only update the GSI routing table if the table entry is unmasked
(this skips extra calls to the ioctl() for reprogramming the
entries.)
3. Only generate a message on entry unmasking if the global MSI-X enable
bit is set.
Fixes : #4273
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-07 09:57:27 -07:00
Bo Chen
29cf637f3f
vmm: Move 'default_serial/console()' to vm_config.rs
...
In this way, we have all functions related to generate default values of
vm-config structs in the same location.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-07 09:13:15 -07:00
Bo Chen
fd9fa2a681
virtio-mem: mem: Simplify 'process_queue'
...
No functional change.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-07 07:57:08 -07:00
Bo Chen
756aebafda
virtio-devices: mem: Handle and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-07 07:57:08 -07:00
dependabot[bot]
d4d63502be
build: Bump itoa from 1.0.3 to 1.0.4
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-07 00:41:45 +00:00
dependabot[bot]
961793ba8c
build: Bump io-uring from 0.5.6 to 0.5.7 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-07 00:23:20 +00:00
dependabot[bot]
cbeed02a7c
build: Bump itoa from 1.0.3 to 1.0.4 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-06 23:51:07 +00:00
dependabot[bot]
10eb687687
build: Bump io-uring from 0.5.6 to 0.5.7
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-06 23:49:36 +00:00
Rob Bradford
83cc554f90
vmm: Remove deprecated VmConfig::{kernel, initramfs, cmdline} members
...
These have been replaced by members of PayloadConfig and should be
removed in v28.0 (mentioned in v26.0 release notes.)
Fixes : #4737
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
Rob Bradford
7d8d27c1b4
vmm: Rename queue size / number of queues constants
...
These constants still referenced the long removed (separate vhost-user
structs.)
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
Rob Bradford
d692dfb8e3
vmm: Move impl Default for ... to vm_config.rs
...
This is consistent when considering that some structs have a
`#[derive(Default)`] so it makes sense for the default implementations
to be in the same location.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
Rob Bradford
7ad58457b0
vmm: Split structs from logic that make up VmConfig
...
Place the data structures that are required for constructing a VmConfig
into it's own module from the logic that exists to suppot them.
This is useful as a consumer of the API can now clearly see what data
structures make up the API for creating VMs.
This has no functional change and I made no attempt to clean up the
ordering (it's as in the original file) nor any other clean up.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-06 14:25:29 +01:00
dependabot[bot]
62d2189ade
build: Bump clap from 4.0.9 to 4.0.10 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.9 to 4.0.10.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.9...v4.0.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-06 00:26:05 +00:00
dependabot[bot]
7e7855bc8f
build: Bump clap from 4.0.9 to 4.0.10
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.9 to 4.0.10.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.9...v4.0.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 23:51:49 +00:00
dependabot[bot]
11cc35e6b5
build: Bump arbitrary from 1.1.6 to 1.1.7 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.6 to 1.1.7.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.6...v1.1.7 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 23:49:28 +00:00
Sebastien Boeuf
89677c3181
build: Bump clap from 3.2.22 to 4.0.9
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.22 to 4.0.9.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](clap-rs/clap@v3.2.22...v4.0.9)
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-major
...
Moving to the major version 4 introduced some breaking changes which had
to be handled manually.
Fixes #4709
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-10-05 12:59:14 +01:00
dependabot[bot]
307cfeba27
build: Bump smallvec from 1.9.0 to 1.10.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 01:02:17 +00:00
dependabot[bot]
43bb09df50
build: Bump vm-fdt from 8a19dcc to d942590
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `8a19dcc` to `d942590`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](8a19dcc94a...d942590738 )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 00:27:38 +00:00
dependabot[bot]
81d570e271
build: Bump mshv-bindings from 6b0cf3b to ac9c92f
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `6b0cf3b` to `ac9c92f`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](6b0cf3b47f...ac9c92f9b3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-04 23:51:43 +00:00
Rob Bradford
31ca22d4b6
virtio-devices: rng: Fix error message
...
The RNG device never reads from the guest memory it reads from a file
and writes to the guest memory.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-04 16:38:41 +01:00
Rob Bradford
cf995451a2
virtio-devices: watchdog: Generate error on invalid queue descriptor
...
Don't silently ignore the descriptors provided by the guest. This is
consistent with other devices.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-04 16:38:29 +01:00
Bo Chen
4fea40f008
fuzz: Balloon: Reduce the guest memory size and queue size
...
With the guest memory size of 1MB, a valid descriptor size can be close
to the guest memory size (e.g. 1MB) and can contain close to 256k
valid pfn entries (each entry is 4 bytes). Multiplying the queue
size (e.g. 256), there can be close to 64 millions pfn entries to
process in a single request. This is why the oss-fuzz reported a
timeout (with a limit of 60s).
By reducing the guest memory size and the queue size, the worst-case now
is 8 million pfn entries for fuzzing, which can be finished in around 20
seconds according to my local experiment.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-04 09:40:12 +01:00
Rob Bradford
2daab89987
vmm: Remove legacy firmware loading
...
This functionality was deprecated and is for removal in the upcoming
release.
Fixes : #4511
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-03 17:09:02 +01:00
Rob Bradford
1bc63e7848
vmm: Remove legacy I/O ports for ACPI
...
These addresses have been superseded and replaced with other I/O ports.
Fixes : #4483
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-10-03 17:08:57 +01:00
Bo Chen
2115a41568
openapi: Add 'firmware' to 'PayloadConfig'
...
This option is needed for the openapi consumer (e.g. Kata Containers) to
load firmware (e.g. td-shim) for booting.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-10-01 08:45:21 +01:00
dependabot[bot]
4b4354a52c
build: Bump rustix from 0.35.10 to 0.35.11
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.10 to 0.35.11.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.10...v0.35.11 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-30 01:36:09 +00:00
dependabot[bot]
67751d07d6
build: Bump libc from 0.2.133 to 0.2.134
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.133 to 0.2.134.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.133...0.2.134 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-30 01:01:13 +00:00
dependabot[bot]
509fd8b03e
build: Bump libc from 0.2.133 to 0.2.134 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.133 to 0.2.134.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.133...0.2.134 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-30 00:26:21 +00:00
dependabot[bot]
1294f052b2
build: Bump mshv-bindings from 2d0aaa1 to 6b0cf3b
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `2d0aaa1` to `6b0cf3b`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](2d0aaa16b0...6b0cf3b47f )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 23:49:21 +00:00
dependabot[bot]
01b38b9c59
build: Bump proc-macro2 from 1.0.45 to 1.0.46 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.45 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.45...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 23:46:46 +00:00
dependabot[bot]
db51e9e209
build: Bump proc-macro2 from 1.0.44 to 1.0.46
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 18:15:44 +00:00
Bo Chen
57dfcc06d3
fuzz: Cargo.lock: Bump virtio-queue to 0.6.1
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-29 19:11:38 +01:00
Rob Bradford
2ba6a9bfcf
build: Release v27.0
...
This also incorporates the bump to virtio-queue 0.6.1
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-29 17:56:21 +01:00
Rob Bradford
362f95c825
README.md: Add mailing list details
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-29 14:24:48 +01:00
dependabot[bot]
a02387862d
build: Bump rustix from 0.35.10 to 0.35.11 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.10 to 0.35.11.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.10...v0.35.11 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 00:20:21 +00:00
dependabot[bot]
ee5c2d2765
build: Bump proc-macro2 from 1.0.44 to 1.0.45 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.45 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 23:49:13 +00:00
James O. D. Hunt
cd0208fe0a
api-client: Allow response to be captured
...
Previously, the API response was always written to stdout, but that may
not be appropriate for all clients.
The client can now control this behaviour as the client API returns the
response in the `Result`.
Fixes : #4703 .
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com >
2022-09-28 15:23:03 +01:00
James O. D. Hunt
eea9bcea38
api-client: Refactor to removed hard-coded prefix
...
The existing API client only allows access to "VM" operations, so added
a new `simple_api_full_command_with_fds()` that allows access to "VMM"
operations too.
Also added a `simple_api_full_command()` to avoid having to specify the
file descriptors, in a similar manner to `simple_api_command()`.
Fixes : #4701 .
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com >
2022-09-28 12:30:02 +01:00
Smit Gardhariya
45fa8be97a
scripts: Remove common feature flag for mshv tests
...
Commit b2d1dd65f3 ("build: Remove "fwdebug" and "common" feature
flags") removed support for common features flag. But some of the
scripts are still using that parameter specifically test related to mshv
hypervisor. Thus fix those scripts by removing common feature flag.
Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com >
2022-09-28 10:53:22 +00:00
Bo Chen
f0c55f5245
virtio-devices: rng: Error out of queue execution on invalid requests
...
With the virtio-rng device the descriptors that are provided by the
guest must be writable and of non-zero length. Also propagate an error
if writing to the guest memory fails.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-28 10:07:44 +01:00
dependabot[bot]
4779265453
build: Bump thiserror from 1.0.36 to 1.0.37 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.36...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 10:07:09 +01:00
dependabot[bot]
0b9b46bbc8
build: Bump thiserror from 1.0.36 to 1.0.37
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.36...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 10:06:58 +01:00
Rob Bradford
06eb82d239
build: Consolidate "gdb" build feature into "guest_debug"
...
This simplifies the CI process but also logical with the existing
functionality under "guest_debug" (dumping guest memory).
Fixes : #4679
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-27 14:30:57 +01:00
Rob Bradford
b8503b5f45
hypervisor: Support compiling "tdx" and "mshv" feature together
...
TDX functionality is not currently available on MSHV but we should not
preclude building a binary that can run on both.
Fixes : #4677
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-27 14:30:49 +01:00
Sebastien Boeuf
3bf3cca70a
vhost_user_net: Allow user to set MTU
...
Adding the support for the user to set the MTU for the vhost-user-net
backend, which allows the integration test to be extended with the test
of the MTU parameter.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-27 10:37:35 +01:00
Sebastien Boeuf
903c08f8a1
net: Don't override default TAP interface MTU
...
Adjust MTU logic such that:
1. Apply an MTU to the TAP interface if the user supplies it
2. Always query the TAP interface for the MTU and expose that.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-27 10:37:35 +01:00
dependabot[bot]
44d66ec531
build: Bump proc-macro2 from 1.0.43 to 1.0.44
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 02:54:16 +00:00
dependabot[bot]
ac77d0923f
build: Bump thiserror from 1.0.35 to 1.0.36
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.35...1.0.36 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 02:19:05 +00:00
dependabot[bot]
ba3debaa27
build: Bump openssl-sys from 0.9.75 to 0.9.76
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.75 to 0.9.76.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.75...openssl-sys-v0.9.76 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 01:29:28 +00:00
dependabot[bot]
1ff26fbb8a
build: Bump thiserror from 1.0.35 to 1.0.36 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.35...1.0.36 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 00:54:29 +00:00
dependabot[bot]
4aa5d5a2c1
build: Bump syn from 1.0.100 to 1.0.101
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.100...1.0.101 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 00:37:22 +00:00
dependabot[bot]
023c77bdf3
build: Bump proc-macro2 from 1.0.43 to 1.0.44 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 00:19:14 +00:00
dependabot[bot]
e2a7972c59
build: Bump syn from 1.0.100 to 1.0.101 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.100...1.0.101 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-26 23:45:54 +00:00
dependabot[bot]
a4791263c9
build: Bump mshv-bindings from bf85430 to 2d0aaa1
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `bf85430` to `2d0aaa1`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](bf85430875...2d0aaa16b0 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-26 23:42:43 +00:00
Rob Bradford
b2d1dd65f3
build: Remove "fwdebug" and "common" feature flags
...
This simplifes the buld and checks with very little overhead and the
fwdebug device is I/O port device on 0x402 that can be used by edk2 as a
very simple character device.
See: #4679
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-26 10:16:33 -07:00
Rob Bradford
36e26f004c
.github: Consolidate quality checks into single worklow
...
Combine aarch64 and x86-64 checks into one workflow
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-26 16:52:42 +01:00
Rob Bradford
66c092e69b
build: Bump linux-loader from 0.5.0 to 0.6.0
...
Bumps [linux-loader](https://github.com/rust-vmm/linux-loader ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/rust-vmm/linux-loader/releases )
- [Changelog](https://github.com/rust-vmm/linux-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/linux-loader/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: linux-loader
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-24 09:54:18 +00:00
dependabot[bot]
76903e5fd0
build: Bump jobserver from 0.1.24 to 0.1.25 in /fuzz
...
Bumps [jobserver](https://github.com/alexcrichton/jobserver-rs ) from 0.1.24 to 0.1.25.
- [Release notes](https://github.com/alexcrichton/jobserver-rs/releases )
- [Commits](https://github.com/alexcrichton/jobserver-rs/compare/0.1.24...0.1.25 )
---
updated-dependencies:
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-23 23:49:08 +00:00
Rob Bradford
cf31a303cf
README: Add roadmap section pointing to our new GitHub project
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-23 14:30:15 -07:00
Bo Chen
ef603fde4c
fuzz: Reduce the guest memory size for balloon fuzzer
...
As the virt queues are initialized with random bytes from the fuzzing
engine, a descriptor buffer for the available ring can have a very large
length (e.g. up to 4GB). This means there can be up to 1 billion
entries (e.g. page frame number) for virtio-balloon to process a signal
available descriptor (given each entry is 4 bytes). This is the reason
why oss-fuzz reported a hanging issue for this fuzzer, where the
generated descriptor buffer length is 4,278,321,152.
We can avoid this kind of long execution by reducing the size of guest
memory. For example, with 1MB of guest memory, the number of descriptor
entries for processing is limited ~256K.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-23 08:28:07 +01:00
dependabot[bot]
7a0bfd2e71
build: Bump serde from 1.0.144 to 1.0.145
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-23 00:14:50 +00:00
dependabot[bot]
98aab37b00
build: Bump serde from 1.0.144 to 1.0.145 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 23:38:42 +00:00
Rob Bradford
194b59f44b
fuzz: Don't overload meaning of reset()
...
This function is for really for the transport layer to trigger a device
reset. Instead name it appropriately for the fuzzing specific use case.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 11:01:41 -07:00
Rob Bradford
c98bd2fd4a
.github: Add clippy check of tracing feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
e53419ecfc
docs: Add documentation of tracing infrastructure
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
5e811a6823
scripts: Add tracing visualisation script
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
1202b9a07a
vmm: Add some tracing of boot sequence
...
Add tracing of the VM boot sequence from the point at which the request
to create a VM is received to the hand-off to the vCPU threads running.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
Rob Bradford
b35e6f3018
tracing: Tracing infrastructure
...
Add a new feature "tracing" that enables tracing functionality via the
"tracer" crate (sadly features and crates cannot share the same name.)
Setup: tracer::start()
The main functionality is a tracer::trace_scope()! macro that will add
trace points for the duration of the scope. Tracing events are per
thread.
Finish: tracer::end() this will write the trace file (pretty printed
JSON) to a file in the current directory.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-22 18:09:31 +01:00
dependabot[bot]
56f163170c
build: Bump rustix from 0.35.9 to 0.35.10 in /fuzz
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.9 to 0.35.10.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.9...v0.35.10 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 00:23:12 +00:00
dependabot[bot]
98c461e932
build: Bump rustix from 0.35.9 to 0.35.10
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.35.9 to 0.35.10.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.9...v0.35.10 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-21 23:47:11 +00:00
Sebastien Boeuf
76dbf85b79
net: Give the user the ability to set MTU
...
Add a new "mtu" parameter to the NetConfig structure and therefore to
the --net option. This allows Cloud Hypervisor's users to define the
Maximum Transmission Unit (MTU) they want to use for the network
interface that they create.
In details, there are two main aspects. On the one hand, the TAP
interface is created with the proper MTU if it is provided. And on the
other hand the guest is made aware of the MTU through the VIRTIO
configuration. That means the MTU is properly set on both the TAP on the
host and the network interface in the guest.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-21 16:20:57 +02:00
dependabot[bot]
d95220108a
build: Bump once_cell from 1.14.0 to 1.15.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-21 00:35:35 +00:00
dependabot[bot]
5a9fe9855a
build: Bump lock_api from 0.4.8 to 0.4.9
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.8 to 0.4.9.
- [Release notes](https://github.com/Amanieu/parking_lot/releases )
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.8...lock_api-0.4.9 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 23:48:00 +00:00
dependabot[bot]
2d0ba3637a
build: Bump once_cell from 1.14.0 to 1.15.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 23:42:38 +00:00
Rob Bradford
fdb4b32876
build: Disable SGX build
...
This was unfortunately missing from
430bfd38be which disabled the other builds
that rely on the bare metal systems.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 21:59:03 +01:00
Sebastien Boeuf
f38056fc9e
virtio-devices, vmm: Simplify virtio-mem resize operation
...
There's no need to delegate the resize operation to the virtio-mem
thread. This can come directly from the vmm thread which will use the
Mem object to update the VIRTIO configuration and trigger the interrupt
for the guest to be notified.
In order to achieve what's described above, the VirtioMemZone structure
now has a handle onto the Mem object directly. This avoids the need for
intermediate Resize and ResizeSender structures.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-20 13:43:40 +02:00
Rob Bradford
430bfd38be
build: Disable VFIO, metrics and rate limit testing
...
Bare metal x86-64 systems are offline
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 11:55:43 +01:00
Rob Bradford
2b53de58b3
build: Remove the exposed "cmos" feature
...
This only affects the build system; the feature was already always
compiled in with ca68b9e7a9
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 11:18:46 +01:00
Rob Bradford
d4d0780b89
tests: Fix aarch64 beta clippy issues
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 10:59:48 +01:00
Rob Bradford
a375e230b8
misc: Manual beta clippy fixes (boolean to int conversion using if)
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 10:59:48 +01:00
Rob Bradford
f32487f8e8
misc: Automatic beta clippy fixes
...
e.g. cargo clippy --all --tests --all-targets --fix --features=..
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-20 10:59:48 +01:00
Bo Chen
ab0b3f1b7b
fuzz: Add fuzzer for virtio-balloon
...
The fuzzer exercises the inflate, deflate and reporting events of
virtio-balloon via creating three queues and kicking three events.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-20 11:05:53 +02:00
Bo Chen
e1b483fc88
fuzz: Add fuzzer for virtio-rng
...
To make the fuzzer faster and more effective, the guest memory is
setup with a much smaller size (comparing with other virtio device
fuzzers) and a hole between the memory for holding virtio queue and
the rest of guest data. It brings two benefits: 1) avoid writing large
chunk of data from 'urandom' into the available descriptor chain (which
makes the fuzzer faster); 2) reduce substantial amount of overwrites to
the virtio queue data by the data from 'urandom (which makes the fuzzer
more deterministic and hence effective).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-20 11:05:53 +02:00
Bo Chen
f815fcbb5d
fuzz: Add fuzzer for virtio-watchdog
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-20 11:05:53 +02:00
dependabot[bot]
6a67675442
build: Bump syn from 1.0.99 to 1.0.100
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.99...1.0.100 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 09:34:37 +01:00
dependabot[bot]
50c3aa775b
build: Bump libc from 0.2.132 to 0.2.133
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.132 to 0.2.133.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.132...0.2.133 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 01:24:56 +00:00
dependabot[bot]
14865a58a9
build: Bump env_logger from 0.9.0 to 0.9.1
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 00:40:44 +00:00
dependabot[bot]
7d5f53439c
build: Bump syn from 1.0.99 to 1.0.100 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.99...1.0.100 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-20 00:19:54 +00:00
dependabot[bot]
5123d0b1e1
build: Bump mshv-ioctls from 0106c24 to bf85430
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `0106c24` to `bf85430`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](0106c24a26...bf85430875 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-19 23:43:42 +00:00
dependabot[bot]
beee45a1ce
build: Bump libc from 0.2.132 to 0.2.133 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.132 to 0.2.133.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.132...0.2.133 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-19 23:43:08 +00:00
Bo Chen
5f4a6b42c0
qcow: Fix wrong alignment calculation
...
With the existing code, `round_up(7, 2)` would generate `6` which is
obviously wrong. Also, following what's done for 'round_down()', the
fixed code does not handle 'alignment == 0' explicitly.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-17 10:23:49 +01:00
Bo Chen
134e555c42
vhdx: Fix wrong alignment calculation
...
With the existing macro, `align!(7, 4)` would generate `16` which is
obviously wrong. Also, given it is a macro, the compiler catch the error
if the provided 'alignment' is '0'.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-17 10:23:49 +01:00
dependabot[bot]
18f1be0fac
build: Bump clap from 3.2.21 to 3.2.22
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.21 to 3.2.22.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.22/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.21...v3.2.22 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-17 00:31:42 +00:00
dependabot[bot]
001f10d614
build: Bump clap from 3.2.21 to 3.2.22 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.21 to 3.2.22.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.22/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.21...v3.2.22 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 23:54:11 +00:00
Sebastien Boeuf
1a2cd44e44
virtio-devices: balloon: Simplify the resize operation
...
There's no need to delegate the resize operation to the virtio-balloon
thread. This can come directly from the vmm thread which will use the
Balloon object to update the VIRTIO configuration and trigger the
interrupt for the guest to be notified.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-16 17:21:04 +02:00
Sebastien Boeuf
1849ffff31
vmm: Remove "amx" feature gate
...
Given the AMX x86 feature has been made available since kernel v5.17,
and given we don't have any test validating this feature, there's no
need to keep it behing a Rust feature gate.
Fixes #3996
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-16 15:03:31 +01:00
Rob Bradford
0e52be0909
vmm: Ensure default deserialisation for "amx" feature bit
...
This allows a migration from a binary not compiled with struct member to
be completed.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-16 15:03:31 +01:00
Rob Bradford
19b006eb84
devices: legacy: pl011: Move boot timestamping to warn!()
...
This makes it consistent with x86_64 and allows the performance metrics
tooling to continue to work on aarch64.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-16 14:36:12 +01:00
Sebastien Boeuf
a5f655a032
virtio-devices: watchdog: Update process queue design
...
Update the implementation of the process_queue() function to match all
other virtio devices implementations. This solves some issue related to
potential out-of-bound accesses to the former used_desc_heads list.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-16 10:04:24 +01:00
Bo Chen
a4f781e142
vitio-devices: watchdog: Avoid panic and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-16 09:42:41 +02:00
Bo Chen
1c1bff93a1
vitio-devices: rng: Avoid panic and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-16 09:42:41 +02:00
dependabot[bot]
ec384af29e
build: Bump unicode-xid from 0.2.3 to 0.2.4
...
Bumps [unicode-xid](https://github.com/unicode-rs/unicode-xid ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/unicode-rs/unicode-xid/releases )
- [Commits](https://github.com/unicode-rs/unicode-xid/commits/v0.2.4 )
---
updated-dependencies:
- dependency-name: unicode-xid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 02:23:01 +00:00
dependabot[bot]
f7a013da92
build: Bump textwrap from 0.15.0 to 0.15.1
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.15.0...0.15.1 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 01:49:13 +00:00
dependabot[bot]
5dfd64e9e2
build: Bump semver from 1.0.13 to 1.0.14
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 00:42:08 +00:00
dependabot[bot]
77bc86c8d3
build: Bump unicode-ident from 1.0.3 to 1.0.4 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-16 00:18:33 +00:00
dependabot[bot]
3e16c2e257
build: Bump textwrap from 0.15.0 to 0.15.1 in /fuzz
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.15.0...0.15.1 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 23:47:56 +00:00
Wei Liu
9fe1643089
build: enable size optimization for release profile
...
This reduces the binary size from 7.3M to 6.5M.
Also the build time for a clean build shrinks from 1m28s to 1m14s on my
development machine (an eight-core VM on Azure). This goes against the
conventional wisdom but it is what it is.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-09-15 14:37:31 +01:00
Wei Liu
cb00dbe6ec
build: update to the latest kvm-ioctls
...
The latest kvm-ioctls contains a breaking change to its API. Now Arm's
get/set_one_reg use u128 instead of u64.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-09-15 13:35:12 +01:00
Anatol Belski
253d16b4c9
README: Fix contents entry indent
...
The `#use-prebuilt-binaries` entry shifted to the left due to
wrong markup.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2022-09-15 12:31:05 +01:00
dependabot[bot]
2656b9b925
build: Bump unicode-ident from 1.0.3 to 1.0.4
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 10:12:14 +00:00
Rob Bradford
5aab82ccd2
Jenkinsfile: Move slack alert to new channel
...
This avoids spamming #general
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-15 10:19:56 +01:00
Anatol Belski
43c4270289
rpm: doc: Remove bundled SPEC and update README
...
Packages targeting various distributions are now available thanks to the
Open Bulid Service. The SPECS have been moved to a separate repo under
https://github.com/cloud-hypervisor/obs-packaging
which documents how to include pre-compiled binaires in a supported
distribution. Besides the Cloud Hypervisor itself, accompanying pieces
like UEFI bins are available, too.
Any contributions to the packaging can be also accepted in
the aforementioned repo. Further integration with the OBS like PR
validation is to be targeted there, too, as far as it can get. As the
packaging topic has moved in a separate repo, the bundled SPEC became
obsolete is suggested for removal.
Fixes : #4257
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-15 10:19:39 +01:00
dependabot[bot]
651506bfe5
build: Bump semver from 1.0.13 to 1.0.14 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 09:04:25 +00:00
dependabot[bot]
d6013904a8
build: Bump seccompiler from 0.2.0 to 0.3.0
...
Bumps [seccompiler](https://github.com/rust-vmm/seccompiler ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/rust-vmm/seccompiler/releases )
- [Changelog](https://github.com/rust-vmm/seccompiler/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/seccompiler/compare/v0.2.0...seccompiler-v0.3.0 )
---
updated-dependencies:
- dependency-name: seccompiler
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-15 08:29:49 +00:00
Bo Chen
91b8b00f95
fuzz: Add fuzzer for virtio-pmem
...
The fuzzer is focusing on the virtio-pmem code that processes guest
inputs (e.g. virt queues). Given 'flush' is the only virtio-pmem
request, the fuzzer is essentially testing the code for parsing and
error handling.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-15 09:08:11 +01:00
Bo Chen
67a89f4538
fuzz: Setup virt queue with proper addresses
...
To make the fuzzers more focused and more efficient, we now provide
default addresses for the descriptor table, available ring, and used
ring, which ensures the virt-queue has a valid memory layout (e.g. no
overlapping between descriptor tables, available ring, and used ring).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-15 09:08:11 +01:00
Anatol Belski
1d3bb63ec8
doc: Add VSOCK doc page
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-15 09:07:21 +01:00
Bo Chen
c8fe101b6f
Jenkinsfile: Add CI worker for rate limiter tests
...
Given rate limiter tests are performance related, they need to be tested
on a bare-metal machine. It is now using the same node as the metrics CI.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
ef1983ee60
scripts: Add script to run rate limiter integration tests
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
d5219525d8
tests: Add rate limiter test for virtio block
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
af0a01c2fb
test_infra: Add helper function to parse fio output for IOPS
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
652aa39934
test_infra: Support 'rw' and 'randrw' as FIO operations
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
a15b641c61
tests: Add rate limiter test for virtio net
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
Bo Chen
d8a6725995
performance-metrics: Move some helper functions to test_infra
...
The helper functions for measuring and parsing the performance of
virtio-net and virtio-block devices are moved to the `test_infra` crate
so that they be reused for integration tests of rate limiter.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-14 15:01:43 +01:00
dependabot[bot]
ecaff8ff1b
build: Bulk dependencies update
...
Multiple rust-vmm crates must be updated at once given the vm-memory one
has been updated and they all rely on vm-memory.
- vm-memory from 0.8.0 to 0.9.0
- vhost from 0.4.0 to 0.5.0
- virtio-queue from 0.5.0 to 0.6.0
- vhost-user-backend from 0.6.0 to 0.7.0
- linux-loader from 0.4.0 to 0.5.0
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-14 15:01:04 +01:00
dependabot[bot]
06d7796190
build: bump anyhow from 1.0.64 to 1.0.65
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.64...1.0.65 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 02:24:55 +00:00
dependabot[bot]
4e589d2e13
build: bump clap from 3.2.20 to 3.2.21
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.20 to 3.2.21.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.21/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.20...v3.2.21 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 01:49:43 +00:00
dependabot[bot]
bf638a45de
build: bump vfio-ioctls from c52e88a to bf7c9b9
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `c52e88a` to `bf7c9b9`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](c52e88ac55...bf7c9b997b )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 01:15:36 +00:00
dependabot[bot]
1d29c31e6b
build: bump thiserror from 1.0.34 to 1.0.35
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.34...1.0.35 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 00:23:57 +00:00
dependabot[bot]
b84f41eac4
build: bump anyhow from 1.0.64 to 1.0.65 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.64...1.0.65 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 00:19:05 +00:00
dependabot[bot]
e5287d27b2
build: bump thiserror from 1.0.34 to 1.0.35 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.34...1.0.35 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-13 23:47:37 +00:00
Bo Chen
522e32219c
virtio-devices: pmem: Avoid panic and propagate errors properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-13 09:56:06 -07:00
Bo Chen
4cc3bdba9f
virtio-devices: pmem: Report errors from 'process_queue' properly
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-13 09:56:06 -07:00
Bo Chen
9d3ecefc00
virtio-devices: pmem: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-13 09:56:06 -07:00
dependabot[bot]
561af4fd1a
build: bump clap from 3.2.20 to 3.2.21 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.20 to 3.2.21.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.21/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.20...v3.2.21 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-13 00:15:07 +00:00
dependabot[bot]
e0634c48d0
build: bump io-uring from 0.5.5 to 0.5.6 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-12 23:41:43 +00:00
dependabot[bot]
e23319426d
build: bump io-uring from 0.5.5 to 0.5.6
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-12 17:33:31 +00:00
dependabot[bot]
df6f1ea40c
build: bump serde_with from 2.0.0 to 2.0.1
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-10 00:54:08 +00:00
dependabot[bot]
b25f640ef5
build: bump serde_with_macros from 2.0.0 to 2.0.1
...
Bumps [serde_with_macros](https://github.com/jonasbb/serde_with ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: serde_with_macros
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-10 00:17:33 +00:00
dependabot[bot]
f37d07c724
build: bump serde_with from 2.0.0 to 2.0.1 in /fuzz
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-09 23:41:49 +00:00
dependabot[bot]
92713f7c5e
build: bump arbitrary from 1.1.4 to 1.1.6 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.4 to 1.1.6.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.4...v1.1.6 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-08 23:46:12 +00:00
Bo Chen
60f3bd43f5
tests: live-migration: Split numa tests into its own function
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
e145b823a5
tests: live-migration: Split balloon tests into its own function
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
ff3e9eb668
tests: live-migration: Split watchdog tests into its own function
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
e3d7824f09
tests: Provide a function to log guests outputs w/ migration errors
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
Bo Chen
d5481cddcf
tests: Provide a function to start live migration
...
This function starts the 'receive-migration' for the destination VM,
'send-migration' for the source VM, waits for the live-migration
completion, and prints debug information upon errors.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-08 10:31:50 +02:00
dependabot[bot]
4e91199ff8
build: bump mshv-ioctls from 8094002 to 0106c24
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `8094002` to `0106c24`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](80940020f1...0106c24a26 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-07 23:38:42 +00:00
Bo Chen
1817224fe9
tests: Refactor 'test_watchdog' for better readability
...
This patch moves the actual test logic and assertions from various
functions to the actual tests, which makes these tests more readable and
easier to debug.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-07 09:51:34 +01:00
Sebastien Boeuf
180251f057
Jenkinsfile: Re-enable x86-64 bare metal testing
...
The baremetal CI for x86-64 was disabled while the machines were out for
maintenance. Now that the machines are back up, let's re-enable the full
CI.
This reverts commit 476e30f5cb .
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-07 09:32:03 +01:00
dependabot[bot]
fae801cd70
build: bump once_cell from 1.13.1 to 1.14.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-06 11:29:57 +02:00
dependabot[bot]
2a222b2692
build: bump thiserror from 1.0.33 to 1.0.34
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-06 00:31:02 +00:00
dependabot[bot]
1435a58c1e
build: bump thiserror from 1.0.33 to 1.0.34 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 23:52:54 +00:00
dependabot[bot]
d6f8411635
build: bump anyhow from 1.0.63 to 1.0.64
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.63 to 1.0.64.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.63...1.0.64 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 17:24:08 +00:00
dependabot[bot]
52d1b5f753
build: bump aho-corasick from 0.7.18 to 0.7.19
...
Bumps [aho-corasick](https://github.com/BurntSushi/aho-corasick ) from 0.7.18 to 0.7.19.
- [Release notes](https://github.com/BurntSushi/aho-corasick/releases )
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.7.18...0.7.19 )
---
updated-dependencies:
- dependency-name: aho-corasick
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 15:46:59 +00:00
Sebastien Boeuf
3b5c2b3718
tests: Disable test_windows_guest_disk_hotplug for aarch64
...
Until the issue #4583 is resolved, we must disable this test given it's
failing quite often on the aarch64 worker.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-05 17:08:34 +02:00
Rob Bradford
62681a776e
README: Add host kernel version details
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-05 12:15:10 +01:00
Sebastien Boeuf
3793ffe888
vmm: config: Move TDX to rely on PayloadConfig
...
Removing the option --tdx to specify that we want to run a TD VM. Rely
on --platform option by adding the "tdx" boolean parameter. This is the
new way for enabling TDX with Cloud Hypervisor.
Along with this change, the way to retrieve the firmware path has been
updated to rely on the recently introduced PayloadConfig structure.
Fixes #4556
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-05 12:14:59 +01:00
dependabot[bot]
b05bd28321
build: bump mshv-ioctls from b7cd8a0 to 8094002
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `b7cd8a0` to `8094002`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](b7cd8a097c...80940020f1 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-05 09:42:37 +00:00
dependabot[bot]
514ec79368
build: bump vm-fdt from ca35d96 to 8a19dcc
...
Bumps [vm-fdt](https://github.com/rust-vmm/vm-fdt ) from `ca35d96` to `8a19dcc`.
- [Release notes](https://github.com/rust-vmm/vm-fdt/releases )
- [Commits](ca35d96191...8a19dcc94a )
---
updated-dependencies:
- dependency-name: vm-fdt
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-04 10:27:59 +01:00
dependabot[bot]
39c1102c60
build: bump once_cell from 1.13.1 to 1.14.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-03 09:19:16 +01:00
Rob Bradford
4465bbaf38
devices: acpi: Add generic event controller
...
Rather than overloading the GED device with the detection of what the
underlying event means move that to a new generic event controller. The
advantage of this is that that the generic event controller can have a
_CRS that covers the memory for the OperationRegion (the ged driver
rejects _CRS entries that contain anything beyond the single interrupt)
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-09-02 15:15:15 +01:00
Sebastien Boeuf
b3bef3adda
vmm: acpi: Don't declare MMIO config space through PCI buses
...
The PCI buses should not declare the address space related to the MMIO
config space given it's already declared in the MCFG table and through
the motherboard device PNP0C02 in the DSDT table.
The PCI MMIO config region for the segment was being wrongly exposed as
part of the _CRS for the ACPI bus device (using Memory32Fixed). Exposing
it via this object was ineffectual as the equivalent entry in the
PNP0C02 (_SB_.MBRD) marked those ranges as not usable via the kernel.
Either way, with both devices used by the kernel, the kernel will not
try and use those memory ranges for the device BARs. However under
td-shim on TDX the PNP0C02 device is not on the permitted list of
devices so the the memory ranges were not marked as unusable resulting
in the kernel attempting to allocate BARs that collided with the PCI
MMIO configuration space.
This is based on the kernel documentation PCI/acpi-info.rst which relies
on ACPI and PCI Firmware specifications. And here are the interesting
quotes from this document:
"""
Prior to the addition of Extended Address Space descriptors, the failure
of Consumer/Producer meant there was no way to describe bridge registers
in the PNP0A03/PNP0A08 device itself. The workaround was to describe the
bridge registers (including ECAM space) in PNP0C02 catch-all devices.
With the exception of ECAM, the bridge register space is device-specific
anyway, so the generic PNP0A03/PNP0A08 driver (pci_root.c) has no need
to know about it.
PNP0C02 “motherboard” devices are basically a catch-all. There’s no
programming model for them other than “don’t use these resources for
anything else.” So a PNP0C02 _CRS should claim any address space that is
(1) not claimed by _CRS under any other device object in the ACPI
namespace and (2) should not be assigned by the OS to something else.
The address range reported in the MCFG table or by _CBA method (see
Section 4.1.3) must be reserved by declaring a motherboard resource. For
most systems, the motherboard resource would appear at the root of the
ACPI namespace (under _SB) in a node with a _HID of EISAID (PNP0C02),
and the resources in this case should not be claimed in the root PCI
bus’s _CRS. The resources can optionally be returned in Int15 E820 or
EFIGetMemoryMap as reserved memory but must always be reported through
ACPI as a motherboard resource.
"""
This change has been manually tested by running a VM with multiple
segments (4 segments), and by hotplugging an additional disk to the
segment number 2 (third segment).
From one shell:
"""
cloud-hypervisor \
--cpus boot=1 \
--memory size=1G \
--kernel vmlinux \
--cmdline "root=/dev/vda1 rw console=hvc0" \
--disk path=jammy-server-cloudimg.raw \
--api-socket /tmp/ch.sock \
--platform num_pci_segments=4
"""
From another shell (after the VM is booted):
"""
ch-remote \
--api-socket=/tmp/ch.sock \
add-disk \
path=test-disk.raw,id=disk2,pci_segment=2
"""
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-09-02 14:14:23 +02:00
dependabot[bot]
8e630710f9
build: bump libfuzzer-sys from 0.4.3 to 0.4.4 in /fuzz
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/rust-fuzz/libfuzzer/releases )
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.3...0.4.4 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 03:42:07 +00:00
dependabot[bot]
688602f3fc
build: bump clap from 3.2.19 to 3.2.20 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.19 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.19...v3.2.20 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 03:08:07 +00:00
dependabot[bot]
7e4341d9e3
build: bump clap from 3.2.19 to 3.2.20
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.19 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.19...v3.2.20 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 02:07:12 +00:00
dependabot[bot]
817fa0dc81
build: bump io-uring from 0.5.4 to 0.5.5 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 01:07:41 +00:00
dependabot[bot]
0322a43312
build: bump mshv-ioctls from fb07da8 to b7cd8a0
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `fb07da8` to `b7cd8a0`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](fb07da88c3...b7cd8a097c )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 00:48:33 +00:00
dependabot[bot]
75e4ee5362
build: bump io-uring from 0.5.4 to 0.5.5
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-02 00:06:46 +00:00
Bo Chen
3c6014554b
tests: ovs_dpdk: Cleanup ovs-dpdk after terminating VMs
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-01 08:39:39 +02:00
Bo Chen
6cf4ea74fc
tests: live-migration: Cleanup ovs-dpdk setup correctly on failures
...
As 'handle_child_output()' may terminate the test on panic, we need to
cleanup ovs-dpdk setup in advance.
see: #4555
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-01 08:39:39 +02:00
Bo Chen
742d6858f7
fuzz: block: Setup the virt queue based on the fuzzed input bytes
...
Instead of always fuzzing virt-queues with default values (mostly 0s),
the fuzzer now initializes the virt-queue based on the fuzzed input
bytes, such as the tail position of the available ring, queue size
selected by driver, descriptor table address, available ring address,
used ring address, etc. In this way, the fuzzer can explore the
virtio-block code path with various virt-queue setup.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-09-01 08:39:28 +02:00
dependabot[bot]
dc2365bfd0
build: bump io-uring from 0.5.3 to 0.5.4
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 03:40:25 +00:00
dependabot[bot]
41e22a7d03
build: bump thiserror from 1.0.32 to 1.0.33
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 03:00:36 +00:00
dependabot[bot]
8d68e78957
build: bump io-uring from 0.5.3 to 0.5.4 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 02:01:00 +00:00
dependabot[bot]
33d9ed9a66
build: bump anyhow from 1.0.62 to 1.0.63
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.62...1.0.63 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 01:00:52 +00:00
dependabot[bot]
fb5c792da6
build: bump anyhow from 1.0.62 to 1.0.63 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.62...1.0.63 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 01:00:34 +00:00
dependabot[bot]
7b9e826c2c
build: bump paste from 1.0.8 to 1.0.9
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.8...1.0.9 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 00:01:04 +00:00
dependabot[bot]
1d164abba4
build: bump thiserror from 1.0.32 to 1.0.33 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-01 00:00:24 +00:00
Nuno Das Neves
784a3aaf3c
devices: gic: use VgicConfig everywhere
...
Use VgicConfig to initialize Vgic.
Use Gic::create_default_config everywhere so we don't always recompute
redist/msi registers.
Add a helper create_test_vgic_config for tests in hypervisor crate.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2022-08-31 08:33:05 +01:00
Nuno Das Neves
a832033531
devices: gic: Introduce VgicConfig and Gic::create_default_config()
...
VgicConfig structure will be used for initializing the Vgic.
Gic::create_default_config will be used everywhere we currently compute
redist/msi registers.
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2022-08-31 08:33:05 +01:00
Jianyong Wu
3a19573c69
vmm: unify payload load chain on AArch64 with x86_64
...
AArch64 can share the same way of loading payload with x86_64. It makes
the payload loading more consistent between different arches.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-08-31 08:32:08 +01:00
Michael Zhao
b65639fad3
vmm:AArch64: move uefi_flash to memory manager
...
uefi_flash is used when load firmware, that is load payload depends on
device manager. move uefi_flash to memory manager can eliminate the
dependency.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-31 08:32:08 +01:00
Jianyong Wu
9b1452f258
vmm:AArch64: load standalone firmware
...
A new firmware item has been added into payload config, we need
extend ability to load standalone firmware on AArch64.
"load_kernel" method will be the entry of image loading work including
kernel and firmware.
This change is back compatible. So, we can either load firmware through
"-kernel" like before or "-firmware".
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-08-31 08:32:08 +01:00
Jianyong Wu
2054c8699a
vmm:AArch64: add load_firmware method
...
Later, we will load standalone firmware. So, refactor load_kernel
by abstracting load_firmware method.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-08-31 08:32:08 +01:00
dependabot[bot]
c38d167523
build: bump clap from 3.2.18 to 3.2.19 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.18 to 3.2.19.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.19/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.19 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 23:56:06 +00:00
dependabot[bot]
b04baf6017
build: bump clap from 3.2.18 to 3.2.19
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.18 to 3.2.19.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.19/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.19 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 23:55:59 +00:00
Bo Chen
6cb214f15c
fuzz: block: Rely on custom EpollHelper::run and VirtioCommon:reset
...
This commit also extends the copyright header.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-30 14:01:33 -07:00
Bo Chen
a9924df2b8
virtio-devices: Custom EpollHelper::run/VirtioCommon:reset for fuzz
...
It provides fuzzer a reliable way to wait for a sequence of events
to complete for virtio-devices while not using a fixed timeout to
maintain the full speed of fuzzing.
Take virtio-block as an example, the 'queue event' with a valid
available queue setup can trigger a 'completion event'. This is a
meaningful virtio-block code path of processing guest inputs which is
our target for fuzzing virtio devices.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-30 14:01:33 -07:00
Rob Bradford
616ec530a8
.github: workflows: Fail on intermediate steps for commit checks
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-30 21:40:31 +01:00
Rob Bradford
850c0c8319
.github: workflows: Fix per commit buildability check
...
Fetch the whole git repository (not just the specific commit) and use
the github context instead of hardcoded branch.
Unfortunately now that we process the list of revisions correctly it
shows that the checks don't work on aarch64 due to cross limitations so
this has been removed.
Fixes : #4523
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-30 21:40:31 +01:00
Sebastien Boeuf
8c02648ac9
vmm: device_manager: Update virtio-console for proper PTY support
...
Given the virtio-console is now able to buffer its output when no PTY is
connected on the other end, the device manager code is updated to enable
this. Moving the endpoint type from FilePair to PtyPair enables the
proper codepath in the virtio-console implementation, as well as
updating the PTY resize code, and forcing the PTY to always be
non-blocking.
The non-blocking behavior is required to avoid blocking the guest that
would be waiting on the virtio-console driver. When receiving an
EWOULDBLOCK error, the output will simply be redirected to the temporary
buffer so that it can be later flushed.
The PTY resize logic has been slightly modified to ensure the PTY file
descriptors are closed. It avoids the child process to keep a hold onto
the PTY device, which would have caused the PTY to believe something is
connected on the other end, which would have prevented the detection of
any new connection on the PTY.
Fixes #4521
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
a391bce781
virtio-devices: console: Detect PTY connection/disconnection
...
Through multiple changes, this patch aims at providing a reliable
solution for detecting the state of the PTY's connection. Being able to
find out when the other end of the PTY is connected is essential to
prevent the loss of data being output through the PTY. When the PTY
isn't connected, the output is buffered through the SerialBuffer, the
same solution that was created for the serial port initially.
Fixes #4521
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
9d2e835d14
virtio-devices: Extend EpollHelper and EpollHelperHandler
...
Extending and improving both the structure and the trait allows for more
flexibility regarding what can be achieved with the epoll loop. It
allows for a timeout to be configured instead of the default blocking
behavior. There is a new method in the trait to notify the caller that
the timeout has been reached. And there's a new knob to be notified with
the full list of events before the internal code will actually loop over
every event.
All of these new features are not affecting the previous behavior, and
using EpollHelper::run() should be unchanged.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
a940f525a8
vmm: Move SerialBuffer to its own crate
...
We want to be able to reuse the SerialBuffer from the virtio-devices
crate, particularly from the virtio-console implementation. That's why
we move the SerialBuffer definition to its own crate so that it can be
accessed from both vmm and virtio-devices crates, without creating any
cyclic dependency.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Sebastien Boeuf
63462fd8ab
vmm: serial_manager: Iterate again on EINTR
...
If the epoll_wait() call returns EINTR, this only means a signal has
been delivered before any of the file descriptors registered triggered
an event or before the end of the timeout (if timeout isn't -1). For
that reason, we should simply try to listen on the epoll loop again.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-30 13:47:51 +02:00
Anatol Belski
2306291720
tests: Enable more Windows guest tests for aarch64
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2022-08-30 09:02:54 +01:00
dependabot[bot]
e833679428
build: bump clap from 3.2.17 to 3.2.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.17 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.17...v3.2.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 02:51:27 +00:00
dependabot[bot]
956907df97
build: bump mshv-bindings from 8a25e36 to fb07da8
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `8a25e36` to `fb07da8`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](8a25e361ce...fb07da88c3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 01:56:05 +00:00
dependabot[bot]
79be8b6216
build: bump lock_api from 0.4.7 to 0.4.8
...
Bumps [lock_api](https://github.com/Amanieu/parking_lot ) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/Amanieu/parking_lot/releases )
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.7...lock_api-0.4.8 )
---
updated-dependencies:
- dependency-name: lock_api
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 01:11:22 +00:00
dependabot[bot]
0d5b68d79c
build: bump clap from 3.2.17 to 3.2.18 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.17 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.17...v3.2.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-30 00:27:09 +00:00
dependabot[bot]
31df1bcac0
build: bump arbitrary from 1.1.3 to 1.1.4 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.3...v1.1.4 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-29 23:50:51 +00:00
Sebastien Boeuf
0bcb6ff061
vmm: Limit the size of the SerialBuffer
...
We must limit how much the buffer can grow, otherwise this could lead
the process to consume all the memory on the machine. This could happen
if the output from the guest was very important and nothing would
connect to the PTY for a long time.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-24 12:14:59 +02:00
Michael Zhao
d66d64c325
vmm: Restrict the maximum number of HW breakpoints
...
Set the maximum number of HW breakpoints according to the value returned
from `Hypervisor::get_guest_debug_hw_bps()`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-23 16:57:12 +02:00
Michael Zhao
223b1f6c51
hypervisor: Introduce get_guest_debug_hw_bps()
...
Added `Hypervisor::get_guest_debug_hw_bps()` for fetching the number of
supported hardware breakpoints.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-23 16:57:12 +02:00
dependabot[bot]
3126b351c1
build: bump serde_json from 1.0.83 to 1.0.85
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.83 to 1.0.85.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.83...v1.0.85 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 05:41:18 +00:00
dependabot[bot]
bfe5aca254
build: bump serde from 1.0.143 to 1.0.144 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-22 22:03:39 -07:00
dependabot[bot]
fba95cbc4c
build: bump serde from 1.0.143 to 1.0.144
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 00:22:35 +00:00
dependabot[bot]
86dc1b50e3
build: bump serde_json from 1.0.83 to 1.0.85 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.83 to 1.0.85.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.83...v1.0.85 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-22 23:42:53 +00:00
Wei Liu
3e6b0a5eab
vmm: unify TranslateVirtualAddress error for both x86_64 and aarch64
...
Using anyhow::Error should cover both architectures.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-22 09:37:21 -07:00
Michael Zhao
88bbf7989a
tests: Enable live upgrade tests on AArch64
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-22 10:51:18 +08:00
Michael Zhao
c798b958f3
vmm: Extend seccomp rules for GDB
...
Add 'KVM_SET_GUEST_DEBUG' ioctl to seccomp filter rules.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
575458ded4
hypervisor: Enable gdb HW breakpoint on AArch64
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
0522e40933
vmm: Implement translate_gva on AArch64
...
On AArch64, `translate_gva` API is not provided by KVM. We implemented
it in VMM by walking through translation tables.
Address translation is big topic, here we only focus the scenario that
happens in VMM while debugging kernel. This `translate_gva`
implementation is restricted to:
- Exception Level 1
- Translate high address range only (kernel space)
This implementation supports following Arm-v8a features related to
address translation:
- FEAT_LPA
- FEAT_LVA
- FEAT_LPA2
The implementation supports page sizes of 4KiB, 16KiB and 64KiB.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
5febdec81a
vmm: Enable gdbstub on AArch64
...
The `gva_translate` function is still missing, it will be added with a
separate commit.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Michael Zhao
baa58ad8bf
Cargo.lock: Update kvm-ioctls
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-08-21 17:07:26 +08:00
Nuno Das Neves
fdc8546eef
vmm: aarch64: Use GIC_V3_* consts instead of magic numbers in create_madt()
...
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com >
2022-08-21 17:06:48 +08:00
Sebastien Boeuf
cdcd4d259e
vmm: serial: Wait for PTY to be available before writing to it
...
The goal of this patch is to provide a reliable way to detect when the
other end of the PTY is connected, and therefore be able to identify
when we can write to the PTY device. This is needed because writing to
the PTY device when the other end isn't connected causes the loss of
the written bytes.
The way to detect the connection on the other end of the PTY is by
knowing the other end is disconnected at first with the presence of the
EPOLLHUP event. Later on, when the connection happens, EPOLLHUP is not
triggered anymore, and that's when we can assume it's okay to write to
the PTY main device.
It's important to note we had to ensure the file descriptor for the
other end was closed, otherwise we would have never seen the EPOLLHUP
event. And we did so by removing the "sub" field from the PtyPair
structure as it was keeping the associated File opened.
Fixes #3170
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-19 14:39:06 +01:00
Bo Chen
1ee41a98de
virtio-devices: net: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-19 08:54:25 +02:00
Bo Chen
b4fe41ad0c
virtio-devices: block: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-19 08:54:25 +02:00
dependabot[bot]
0b15e378c7
build: bump gdbstub_arch from 0.2.3 to 0.2.4
...
Bumps [gdbstub_arch](https://github.com/daniel5151/gdbstub ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/daniel5151/gdbstub/releases )
- [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daniel5151/gdbstub/commits )
---
updated-dependencies:
- dependency-name: gdbstub_arch
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-19 02:11:15 +00:00
dependabot[bot]
7f51357812
build: bump gdbstub from 0.6.2 to 0.6.3
...
Bumps [gdbstub](https://github.com/daniel5151/gdbstub ) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/daniel5151/gdbstub/releases )
- [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daniel5151/gdbstub/compare/0.6.2...0.6.3 )
---
updated-dependencies:
- dependency-name: gdbstub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-19 00:36:29 +00:00
dependabot[bot]
6fefca39e6
build: bump mshv-ioctls from a4c9916 to 8a25e36
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `a4c9916` to `8a25e36`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](a4c9916124...8a25e361ce )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-18 23:49:56 +00:00
dependabot[bot]
0b7d2caf76
build: bump libc from 0.2.131 to 0.2.132 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.131 to 0.2.132.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.131...0.2.132 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-18 23:41:40 +00:00
Rob Bradford
396f9ce2c6
vmm: Deprecate non-PVH firmware loading
...
Curently all the firmware blobs we support can use PVH loading.
See: #4511
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-18 17:29:44 +01:00
Markus Napierkowski
b49f8b9248
virtio-devices: rng: correctly indicate number of bytes written
...
Reads from the random file may only be partial, e.g., if the random file is an ordinary text
file. When that happens, the device needs to signal to the driver that only parts of the buffer have
been overwritten.
Signed-off-by: Markus Napierkowski <markus.napierkowski@cyberus-technology.de >
2022-08-18 14:44:58 +01:00
Rob Bradford
31dfe3d02a
tests: Enable live upgrade tests
...
Following our recent v26.0 release we can re-enable our live upgrade
tests to try and make it possible for us to move to making LTS releases.
Currently limited to x86-64 as the live upgrade tests fail on aarch64.
Fixes : #3949
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-18 14:41:22 +01:00
Rob Bradford
476e30f5cb
Jenkinsfile: Temporarily remove x86-64 bare metal testing
...
These machines will be temporarily unavailable.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 11:18:47 -07:00
dependabot[bot]
ccc88ccfd2
build: bump libc from 0.2.131 to 0.2.132
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.131 to 0.2.132.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.131...0.2.132 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 16:30:47 +00:00
Rob Bradford
ed9e54d6c7
build: Release v26.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 16:49:03 +01:00
Rob Bradford
282a1001ef
vmm: x86_64: Rename load_firmware() to reflect its purpose
...
This function only supports loading legacy, non-PVH firmware binaries.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
0d682e185f
vmm: x86_64: Add support for firmware loading
...
Since our firmware files are still designed to be used via PVH use the
load_kernel() function to load the firmware falling back to legacy
firmware loading if necessary.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
8ec5a248cd
main, vmm: Add option to pass firmware parameter in payload
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
763ea7da42
vmm: x86_64: Split payload loading into it's own function
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
2856074d12
vmm: x86_64: Make kernel loading use PayloadConfig
...
Minor refactoring to start supporting loading a firmware payload
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
485900eeb4
vmm: x86_64: Use more general name for payload handling
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
Rob Bradford
6988da79d2
vmm: x86_64: Split legacy firmware loading into own function
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-17 09:50:42 +01:00
dependabot[bot]
80f7d62e1c
build: bump anyhow from 1.0.61 to 1.0.62
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.61...1.0.62 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 00:39:07 +00:00
dependabot[bot]
4c5c7fb77c
build: bump once_cell from 1.13.0 to 1.13.1 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 00:17:32 +00:00
dependabot[bot]
1b8b2fc1af
build: bump once_cell from 1.13.0 to 1.13.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-16 23:44:22 +00:00
dependabot[bot]
7a911db4fa
build: bump anyhow from 1.0.61 to 1.0.62 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.61...1.0.62 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-16 23:44:00 +00:00
Bo Chen
8f3462b3e3
tests: live_migration: Run most tests in parallel
...
Only the ovs-dpdk live-migration tests need to run sequentially as they
use the same ovs-dpdk setup.
This is to reduce our CI time, particularly for the live-migration
and aarch64 jobs.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 22:42:33 +01:00
Bo Chen
1f70d16c12
tests: Avoid name clashing for 'parallel/sequential' tests
...
Add prefix 'common_' to make them more specific.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 22:42:33 +01:00
Steven Dake
25f815e7d1
docs: README.md: Use correct package name for qemu-img
...
The documentation states to install qemu-img. This is located in the
package qemu-utils. The documentation imples the binary is wihtin the
qemu-img package, which doesn't exist.
Signed-off-by: Steven Dake <sdake@lambdal.com >
2022-08-16 10:48:34 -07:00
Bo Chen
76bde33fc4
tests: live-migration: Cleanup ovs-dpdk after terminating VMs
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
9591e225e6
virtio-devices: vhost_user: Fix a typo for error reporting
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
df5b803a63
virtio-devices: Shutdown VMM upon worker thread errors
...
Fixes : #4462
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
8c38992143
virtio-devices: balloon: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
068ea9a4db
virtio-devices: mem: Refactor 'handle_event' for readability
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
b1752994d5
virtio-devices: Report errors from EpollHelperHandler::handle_event
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
a7f3620564
virtio-devices: net: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
54c484397e
virtio-devices: mem: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
f9b36a3412
virtio-devices: block: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
1793c1cb39
virtio-devices: balloon: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
b67755be17
virtio-devices: Derive thiserror::Error and drop unsed errors
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
4a2539cb92
virtio-devices: vhost-user: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
f39b08f21f
net_util: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Bo Chen
6a1e637a46
block_util: Derive thiserror::Error
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-16 11:45:44 +01:00
Rob Bradford
041acf2a65
CONTRIBUTING.md: Add sample pre-commit hook
...
If contributors add this pre-commit hook we should have fewer issues
with build churn on our CI as the most basic checks will pass.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-16 09:42:39 +01:00
dependabot[bot]
2ee7c663c2
build: bump os_str_bytes from 6.2.0 to 6.3.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.2.0...6.3.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 23:42:31 +00:00
dependabot[bot]
b865b059aa
build: bump libc from 0.2.129 to 0.2.131
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.129 to 0.2.131.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.129...0.2.131 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 11:46:09 +00:00
dependabot[bot]
1012530bdd
build: bump os_str_bytes from 6.2.0 to 6.3.0
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.2.0...6.3.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 10:55:50 +00:00
dependabot[bot]
5b60e5372b
build: bump clap from 3.2.16 to 3.2.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.17/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.16...v3.2.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 11:04:39 +01:00
dependabot[bot]
dc540a7549
build: bump clap from 3.2.16 to 3.2.17 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.17/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.16...v3.2.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-13 00:12:23 +00:00
dependabot[bot]
6c492d8512
build: bump libc from 0.2.129 to 0.2.131 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.129 to 0.2.131.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.129...0.2.131 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-12 23:41:15 +00:00
Anatol Belski
944d09208e
ci: Initial Windows image integration
...
This enables the Windows test module. One basic test is enabled,
while all others are disabled yet for aarch64. Jenkins file is
extended with the corresponding step for aarch64.
installAzureCli() is parametrized.
It seems that transferring a 30GB image would take >= 15 minutes. An
optimization here is having a gzip'ed image to 10GB which would unpack
in 3 minutes. Expect to be quicker than transferring an uncompressed
image while on another network.
Signed-off-by: Anatol Belski <ab@php.net >
2022-08-12 15:04:06 +01:00
dependabot[bot]
c591a96ecb
build: bump anyhow from 1.0.60 to 1.0.61
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.60 to 1.0.61.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.60...1.0.61 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-12 00:48:16 +00:00
dependabot[bot]
eb0ce4b4d6
build: bump anyhow from 1.0.60 to 1.0.61 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.60 to 1.0.61.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.60...1.0.61 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-11 23:41:48 +00:00
Rob Bradford
c59b5e18a8
.github: Move per-commit check (using --tests) to quality checks
...
This removes the requirement for the tests (dev-dependencies) to build
with all supported toolchains including the MSRV.
See: #4318
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-11 13:18:33 +01:00
Sebastien Boeuf
98f949d35d
vmm: Add new I/O ports for ACPI shutdown and PM timer devices
...
Adding new I/O ports for both the ACPI shutdown and the ACPI PM timer
devices so they can be triggered from both addresses. The reason for
this change is that TDX expects only certain I/O ports to be enabled
based on what QEMU exposes. We follow this to avoid new ports from being
opened exclusively for Cloud Hypervisor.
We have to keep the former I/O ports available given all firmwares
haven't been updated yet. Once we reach a point where we know both Rust
Hypervisor Firmware, OVMF, TDVF and TDSHIM have been updated with the
new port values, we'll be able to remove the former ports.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-11 11:46:09 +01:00
Bo Chen
0b182be65e
fuzz: block: Remove meaningless setup to the virt-queue
...
The current fuzzer defines a 'format' for the random input 'bytes' from
libfuzzer, but this 'format' failed to improve the fuzzing
efficiency. Instead, the 'format' parsing process obfuscates the fuzzer and
makes the fuzzing engine much harder to focus on the actual fuzzing
target (e.g. virtio-block queue event handling). It is actually worse than
simply using the random inputs as the virt queue content for fuzzing.
We can later introduce a different 'format' to the input 'bytes' for
better fuzzing, say focusing more on virito-block fuzzing through
ensuring the virt queue content always has a valid 'available'
descriptor chain to process.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-11 09:35:46 +02:00
Bo Chen
fbec4a070d
fuzz: block: Ensure the virtio-block thread is killed and joined
...
This also ensures that the 'queue_evt' is fully processed, as we enforce
the main thread is waiting for the virtio-block thread to process the
'kill_evt' which is after the 'queue_evt' processing.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-11 09:35:46 +02:00
Bo Chen
5ba3b80e83
fuzz: block: Ensure a queue event is properly processed
...
Currently the main thread returns immediately after sending a 'queue'
event which is rarely received and processed by the virtio-block
thread (unless system is in high workload). In this way, the fuzzer is
mostly doing nothing and is unable to reproduce its behavior
deterministically (from the same inputs). This patch relies on a
'level-triggered' epoll to ensure a 'queue' event is properly processed
before return from the main thread.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-11 09:35:46 +02:00
dependabot[bot]
1fda830961
build: bump libc from 0.2.127 to 0.2.129 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.127 to 0.2.129.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.127...0.2.129 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 23:45:25 +00:00
Rob Bradford
8c22c03e1e
vmm: openapi: Switch to describing new payload API
...
The old API remains usable, and will remain usable for two releases but
we should only advertise the new API.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
51fdc48817
vmm: openapi: Fix OpenAPI YAML file formatting
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
999bc2baca
tests: Update integration test to use new payload API
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
072af95609
docs: api.md: Fix table markdown syntax
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
6fda567ab8
docs: Update API documentation for payload API
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 22:20:07 +01:00
Rob Bradford
cef51a9de0
vmm: Encompass guest payload configuration in PayloadConfig
...
Introduce a new top level member of VmConfig called PayloadConfig that
(currently) encompasses the kernel, commandline and initramfs for the
guest to use.
In future this can be extended for firmware use. The existing
"--kernel", "--cmdline" and "initramfs" CLI parameters now fill the
PayloadConfig.
Any config supplied which uses the now deprecated config members have
those members mapped to the new version with a warning.
See: #4445
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-10 15:12:34 +01:00
Sebastien Boeuf
5810e3bee8
test_infra: Enhance error reporting related to pipe resizing
...
Whenever starting a test with the capture_output option, both stdout and
stderr pipes are resized to a greater capacity. But the problem is that
when the system call fcntl() fails, we need to know about the error
returned by the system so that we can apply the necessary changes.
This patch simply enhances the error checking and reporting related to
the invocation of fcntl() when trying to resize a pipe.
Refers to #4475
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-10 14:39:42 +01:00
Sebastien Boeuf
6d452fad52
tests: Improve test_virtio_block_topology reliability
...
The test test_virtio_block_topology has been recently failing due to an
error happening in losetup while trying to set the block size. Since
there's no option in losetup for retrying, we took the approach of
programming the expected behavior of creating a loop device relying
directly on the system ioctl LOOP_CONFIGURE. We apply a retry loop based
on the result returned by this ioctl, so that we don't fail on the first
try. We also added a sleep before retrying, hoping this would help the
next iteration to succeed.
Fixes #3494
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-10 14:43:26 +02:00
dependabot[bot]
561e6a5b6e
build: bump vfio-ioctls from 1ff2324 to c52e88a
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `1ff2324` to `c52e88a`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](1ff2324e5c...c52e88ac55 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 10:02:17 +00:00
dependabot[bot]
3d9c9d720f
build: bump libc from 0.2.127 to 0.2.129
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.127 to 0.2.129.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.127...0.2.129 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 09:11:29 +00:00
dependabot[bot]
dde2eb531b
build: bump serde from 1.0.142 to 1.0.143
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.142 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-10 09:10:13 +02:00
dependabot[bot]
2cc21d00e2
build: bump serde from 1.0.142 to 1.0.143 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.142 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 23:40:23 +00:00
Bo Chen
4e31206403
test_infra: Avoid file descriptor leak with epoll
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-09 14:21:05 -07:00
Wei Liu
00c1b4a95b
hypervisor: fix a clippy warning
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Wei Liu
f42c6d567d
devices: fix a clippy warning
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Wei Liu
ac0aa8aa5e
vfio_user: fix two clippy warnings
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Wei Liu
8a7f3425d8
qcow: fix two clippy warnings
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-09 17:20:14 +00:00
Bo Chen
c5fdc47918
virtio-devices: block: Avoid panic with invalid guest address
...
Remove the use of 'unwrap()' that assumes the guest address for request
status is always valid, which avoid virtio-block thread panic on
malformed descriptors from the guest.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-09 08:06:53 -07:00
Rob Bradford
6bc46ba9c1
vmm: config: Reject VFIO devices with the same path
...
By checking in the validation logic we get checking for both devices
specified in the initial config but also hotplug too.
Fixes : #4453
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-09 14:32:35 +02:00
Bo Chen
3c26e9b741
virtio-devices: Drop unused 'queue_evts' from VirtioCommon
...
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-09 09:59:30 +02:00
dependabot[bot]
226a21811e
build: bump anyhow from 1.0.59 to 1.0.60
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.59 to 1.0.60.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.59...1.0.60 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:47:29 +00:00
dependabot[bot]
79cf3952f3
build: bump anyhow from 1.0.59 to 1.0.60 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.59 to 1.0.60.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.59...1.0.60 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-08 23:45:47 +00:00
Sebastien Boeuf
e45e3df64d
pci: vfio: Filter out some PCI extended capabilities
...
There are PCI extended capabilities that can't be passed through the VM
as they would be unusable from a guest perspective. That's why we
introduce a way to patch what is returned to the guest when the PCI
configuration space is accessed. The list of patches is created from the
parsing of the extended capabilities in that case, and particularly
based on the presence of the SRIOV and Resizable BAR capabilities.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Signed-off-by: Steven Dake <sdake@lambdal.com >
2022-08-08 18:29:16 +02:00
Rob Bradford
9f89e0a4e0
option_parser: For tuple list type strip brackets only once
...
The new option parsing for "[..,]" syntax is much stricter and requires
that everything is balanced in terms of brackets. Change the stripping
of the brackets to only strip the first and last one rather than
multiple:
e.g. "[[a,b], [c,d]]" becomes "[a,b],[c,d]" rather than "a,b], [c"
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
19957d4fa4
option_parser: Improve error message to indicate conversion error
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
ea58d2f68a
vmm: config: Enhance test_cpu_parsing to add "affinity" parameter
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
71a7d5d85e
option_parser: Support quoting to avoid splitting
...
This is esential where the parameter value could contain commas like a
kernel command line.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
531621474f
option_parser: Rename split_commas_outside_brackets to split_commas
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
46b790b582
option_parser: Simplify code for splitting on commas
...
The parsing is now O(1) as we only consider each character in the input
once and further it removes the need for allocating memory for
reassembling the option parameter.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
9990439829
option_parser: Enhance test_option_parser
...
In particular include tests for bracket ([]) syntax grouping.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Rob Bradford
d295de4cd5
option_parser: Move test_option_parser to option_parser crate
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 16:23:00 +01:00
Steven Dake
868d1f6902
pci: vfio: Preserve prefetchable BAR flag
...
If the BAR for the VFIO device is marked as prefetchable on the
underlying device ensure that the BAR exposed through PciConfiguration
is also marked as prefetchable.
Fixes problem where NVIDIA devices are not usable with PCI VFIO
passthrough. See related NVIDIA kernel driver bug:
https://github.com/NVIDIA/open-gpu-kernel-modules/issues/344 .
Fixes : #4451
Signed-off-by: Steven Dake <sdake@lambdal.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-08 14:12:09 +01:00
Wei Liu
62f1b6bc61
arch: change typ to r#type in SMBIOS code
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
2afd2f9f52
arch: drop unnecessary pub keywords from code
...
Those structures are not used outside of smbios.rs.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
a85d27bd52
tests: add OEM strings integration test
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
53aecf9341
vmm: add oem_strings to openapi
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
57e9b80123
vmm: provide oem_strings option
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
964985bb5c
arch: provide OEM strings entry support in SMBIOS
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-08 08:59:19 +01:00
Wei Liu
cb18edb535
arch: return the correct size for SMBIOS occupied space
...
The original value didn't include the size of the entry point structure.
The caused the last entry to be corrupted by other code.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 16:34:20 +01:00
Wei Liu
05e0daa411
arch: fix end of table entry in smbios
...
Previously the code used the SmbiosSysInfo structure for that purpose.
Handle 0x0003, DMI type 127, 27 bytes
<TRUNCATED>
Wrong DMI structures length: 130 bytes announced, structures occupy 131 bytes.
Fix this by using the correct structure and padding.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 16:34:20 +01:00
Wei Liu
a62b611659
arch: improve some structures in smbios code
...
There is no need to manually implement Clone for some structures.
It is better to explicitly spell out repr(C) to avoid the compiler
reordering the fields.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 16:34:20 +01:00
Sebastien Boeuf
dc75519372
tests: Improve reliability of test_bionic_ovmf
...
It's been observed on the Bionic image that udev and snapd services can
cause some delay in the VM's shutdown. Disabling them before shutting
down the VM improves the reliability of the test.
Also increasing slightly the sleep time to ensure we give the VM enough
time to shutdown before checking the list of events provided by the
event monitor.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-05 13:30:22 +01:00
dependabot[bot]
d9ee5c2640
build: bump mshv-bindings from c587dc2 to a4c9916
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `c587dc2` to `a4c9916`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](c587dc21e3...a4c9916124 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-05 08:48:56 +02:00
Wei Liu
ec4a55b860
virtio-devices: drop mshv feature
...
There is no code that needs it.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-05 08:48:12 +02:00
Rob Bradford
3df8c6fd3b
deps: Bulk upgrade dependencies
...
Some dependencies are not tracking the latest version in the .toml file
so update all dependencies to the latest version.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-04 18:53:33 +01:00
Sebastien Boeuf
474125db12
performance-metrics: Improve reliability of virtio_net_latency_us
...
The test virtio_net_latency_us recently failed because of the ethr tool
couldn't complete the latency measurement with the following error
message:
Error dialing the latency connection: dial tcp4
:0-\u003e172.19.0.2:8888: connect: connection refused
The "connection refused" error comes from the Golang Dial function which
couldn't complete as expected because there was no server listening on
the specified port at the specified destination.
In other words, the ethr server wasn't ready when the ethr client tried
to connect to it.
The easy way to avoid this problem is simply by increasing the sleep
time between the command spawning the ethr server in the guest and the
command running the ethr client from the host.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-04 17:52:29 +02:00
dependabot[bot]
a3bb459bff
build: bump thiserror from 1.0.31 to 1.0.32
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.31...1.0.32 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 15:27:08 +00:00
dependabot[bot]
3d947fafe5
build: bump syn from 1.0.98 to 1.0.99
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.98...1.0.99 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 14:41:52 +00:00
dependabot[bot]
7d9a704474
build: bump proc-macro2 from 1.0.42 to 1.0.43
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.42...1.0.43 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 13:57:32 +00:00
dependabot[bot]
47f9ee418d
build: bump semver from 1.0.12 to 1.0.13
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.12...1.0.13 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 13:13:44 +00:00
dependabot[bot]
38c25ea5df
build: bump itoa from 1.0.2 to 1.0.3
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 12:30:19 +00:00
dependabot[bot]
21da11cee7
build: bump serde_json from 1.0.82 to 1.0.83
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.82...v1.0.83 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 11:44:58 +00:00
dependabot[bot]
bb444f3e7c
build: bump libc from 0.2.126 to 0.2.127
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.126 to 0.2.127.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.126...0.2.127 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 10:39:47 +00:00
Sebastien Boeuf
3b0f6247b7
ci: Add test_vfio to the baremetal CI
...
Since it's not possible to run the integration test test_vfio on Azure
at the moment (because of some nested virtualization issues), we can
temporarily run it on the baremetal CI where we already run some VFIO
tests.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-04 11:37:18 +01:00
Sebastien Boeuf
9b4940f154
ci: Make L1 guest use RAW image in test_vfio
...
Rather than using the QCOW2 image, rely on the RAW one, the same way the
host relies on this RAW image to boot the first VM.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-04 11:37:18 +01:00
dependabot[bot]
4bf01fa366
build: bump paste from 1.0.7 to 1.0.8
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.7...1.0.8 )
---
updated-dependencies:
- dependency-name: paste
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 09:55:48 +00:00
dependabot[bot]
4052a89268
build: bump serde from 1.0.141 to 1.0.142
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.141 to 1.0.142.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 09:06:58 +00:00
dependabot[bot]
73efcc1f73
build: bump unicode-ident from 1.0.2 to 1.0.3
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 07:41:36 +00:00
lizhaoxin1
b3b252a5d1
tests: Add integration test for --platform uuid
...
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
2022-08-04 09:20:06 +02:00
lizhaoxin1
65f42c1f62
vmm: openapi: Add uuid to PlatformConfig
...
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
2022-08-04 09:20:06 +02:00
lizhaoxin1
bc3a276b43
arch, vmm: Expose platform uuid via SMBIOS
...
Parse and set uuid.
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-04 09:20:06 +02:00
lizhaoxin1
3abc1e1e51
vmm: config: Add "uuid" option to "--platform"
...
The uuid indicates the unique ID of a virtual machine.
cloud-hypervisor takes the uuid passed by libvirt
and uses it to initialize cloud-init.
Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com >
2022-08-04 09:20:06 +02:00
dependabot[bot]
147e89f413
build: bump quote from 1.0.20 to 1.0.21
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 06:36:04 +00:00
dependabot[bot]
1327350b4e
build: bump proc-macro2 from 1.0.42 to 1.0.43 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.42...1.0.43 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 05:15:18 +00:00
dependabot[bot]
9d31856c08
build: bump syn from 1.0.98 to 1.0.99 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.98...1.0.99 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 04:45:17 +00:00
dependabot[bot]
9f457887df
build: bump serde_json from 1.0.82 to 1.0.83 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.82...v1.0.83 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 04:17:32 +00:00
dependabot[bot]
4269fb1366
build: bump unicode-ident from 1.0.2 to 1.0.3 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 03:49:23 +00:00
dependabot[bot]
d889bf625d
build: bump itoa from 1.0.2 to 1.0.3 in /fuzz
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/1.0.2...1.0.3 )
---
updated-dependencies:
- dependency-name: itoa
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 03:23:31 +00:00
dependabot[bot]
00b4357da3
build: bump ryu from 1.0.10 to 1.0.11 in /fuzz
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 02:58:18 +00:00
dependabot[bot]
579d0d56e3
build: bump remain from 0.2.3 to 0.2.4 in /fuzz
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.3...0.2.4 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 02:33:01 +00:00
dependabot[bot]
64ac6ae1a3
build: bump semver from 1.0.12 to 1.0.13 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.12...1.0.13 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 02:04:55 +00:00
dependabot[bot]
8ca7318046
build: bump remain from 0.2.3 to 0.2.4
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.3...0.2.4 )
---
updated-dependencies:
- dependency-name: remain
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 01:49:17 +00:00
dependabot[bot]
ec16e14b2f
build: bump libc from 0.2.126 to 0.2.127 in /fuzz
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.126 to 0.2.127.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.126...0.2.127 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 01:37:14 +00:00
dependabot[bot]
af08f6bca5
build: bump quote from 1.0.20 to 1.0.21 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 01:10:26 +00:00
dependabot[bot]
1867ee3ddd
build: bump ryu from 1.0.10 to 1.0.11
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: ryu
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 00:45:07 +00:00
dependabot[bot]
4e0b41ce77
build: bump serde from 1.0.141 to 1.0.142 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.141 to 1.0.142.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-04 00:24:12 +00:00
dependabot[bot]
b731c8863f
build: bump mshv-bindings from e38ea5d to c587dc2
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `e38ea5d` to `c587dc2`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](e38ea5d64b...c587dc21e3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-03 23:56:29 +00:00
dependabot[bot]
8d86cffc87
build: bump thiserror from 1.0.31 to 1.0.32 in /fuzz
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.31...1.0.32 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-03 23:39:18 +00:00
Wei Liu
1a09381d1e
docs: mention thread pool option for virtiofsd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-03 20:36:22 +00:00
Sebastien Boeuf
103494f441
tests: Improve live migration tests reliability
...
Move the live migration tests to a 'jammy' worker rather than
'jammy-small'. This type of worker has more CPUs (64 vs 16) and more RAM
(256G vs 64G), which should improve the time it takes to run each test.
With this improvement, the test shouldn't fail anymore due to timeout
being reached.
A second improvement is to reduce the amount of vCPUs created for each
VM. The point is simply to check we can migrate a VM with multiple
vCPUs, therefore using 2 instead of 6 should be enough when possible.
When testing NUMA, we can't lower the amount of vCPUs since there's a
quite complex topology that is expected there.
Also, the total amount of vCPUs is reduced from 12 to 4 (again when not
testing with NUMA).
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-03 10:42:45 -07:00
Bo Chen
1125fd2667
vmm: api: Use 'BTreeMap' for 'HttpRoutes'
...
In this way, we get the values sorted by its key by default, which is
useful for the 'http_api' fuzzer.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-03 10:18:24 +01:00
Bo Chen
e5155bab62
fuzz: Add fuzzer for HTTP API
...
Fuzz the HTTP API handling code with a minimum HTTP API
receiver (e.g. mocking the behavior of our "vmm" thread).
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-03 10:18:24 +01:00
Bo Chen
eb056d374a
vmm: Make 'EpollContext::add_event()' public
...
So that it can be reused by other crate, e.g. from fuzz targets.
Signed-off-by: Bo Chen <chen.bo@intel.com >
2022-08-03 10:18:24 +01:00
dependabot[bot]
487458c9f8
build: bump anyhow from 1.0.58 to 1.0.59
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-03 00:05:18 +00:00
Sebastien Boeuf
4d74525bdc
vmm: Remove unused "poll_queue" from DiskConfig
...
The parameter "poll_queue" was useful at the time Cloud Hypervisor was
responsible for spawning vhost-user backends, as it was carrying the
information the vhost-user-block backend should have this option enabled
or not.
It's been quite some time that we walked away from this design, as we
now expect a management layer to be responsible for running vhost-user
backends.
That's the reason why we can remove "poll_queue" from the DiskConfig
structure.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-02 15:10:11 +02:00
Sebastien Boeuf
9524a8ffe8
tests: Re-enable virtio_block_topology on aarch64
...
Improve error catching on the steps creating the block device so that we
can understand if qemu-img or losetup is the faulty command leading to
an empty device path.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-02 14:46:54 +02:00
Sebastien Boeuf
fa0565234c
tests: Make test_api_shutdown and test_api_delete more reliable
...
Both of these tests have been sporadically failing through multiple CI
runs. The reason is related to cloud-init which fails to run the
"init-local" script during the second boot of the VM. This causes the
network interface to not be available, and therefore the test can't SSH
into the VM as expected. The root cause is the filesystem and cache
corruption that happens on the cloud-init disk.
The way to prevent from this issue is to sync the guest filesystem
before we shut it down, and as a security harness, we also wait for a
few seconds for the shutdown command to complete inside the guest before
we trigger the API shutdown or delete.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-08-02 13:13:06 +02:00
dependabot[bot]
755eb80c49
build: bump arc-swap from 1.5.0 to 1.5.1
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/vorner/arc-swap/releases )
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 10:39:22 +01:00
dependabot[bot]
ac3ab19443
build: bump fdt from 0.1.3 to 0.1.4
...
Bumps [fdt](https://github.com/repnop/fdt ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/repnop/fdt/releases )
- [Commits](https://github.com/repnop/fdt/commits )
---
updated-dependencies:
- dependency-name: fdt
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 02:38:42 +00:00
dependabot[bot]
8585d1a355
build: bump fdt from 0.1.3 to 0.1.4 in /fuzz
...
Bumps [fdt](https://github.com/repnop/fdt ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/repnop/fdt/releases )
- [Commits](https://github.com/repnop/fdt/commits )
---
updated-dependencies:
- dependency-name: fdt
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 01:22:38 +00:00
dependabot[bot]
5f539e429a
build: bump serde from 1.0.140 to 1.0.141
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 01:06:45 +00:00
dependabot[bot]
6835de0f8c
build: bump anyhow from 1.0.58 to 1.0.59 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 00:48:06 +00:00
dependabot[bot]
bf662522dd
build: bump serde from 1.0.140 to 1.0.141 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-02 00:21:44 +00:00
dependabot[bot]
575221cba9
build: bump clap from 3.2.15 to 3.2.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.15 to 3.2.16.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.15...v3.2.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-01 23:54:15 +00:00
dependabot[bot]
9b7af90b4c
build: bump arc-swap from 1.5.0 to 1.5.1 in /fuzz
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/vorner/arc-swap/releases )
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-01 23:39:14 +00:00
Rob Bradford
b4ed9f867e
README: Update version of Rust Hypervisor Firmware release
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-08-01 17:12:59 +01:00
Wei Liu
af958c9448
docs: update fs.md virtiofs command
...
The `-d` option is deprecated.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-08-01 08:39:08 +01:00
Sebastien Boeuf
a4859ffe85
virtio-devices: Optimize add_used() usage
...
Now that we rely on pop_descriptor_chain() rather than iter() to iterate
over a queue, there's no more borrow on the queue itself, meaning we can
invoke add_used() directly for the iteration loop. This simplifies the
processing of the queues for each virtio device, and bring some possible
performance improvement given we don't have to iterate twice over the
list of descriptors to invoke add_used().
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-29 17:41:32 +01:00
Sebastien Boeuf
87f57f7c1e
virtio-devices: Improve queue handling with pop_descriptor_chain()
...
Using pop_descriptor_chain() is much more appropriate than iter() since
it recreates the iterator every time, avoiding the queue to be borrowed
and allowing the virtio-net implementation to match all the other ones.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-29 17:41:32 +01:00
Sebastien Boeuf
a423bf13ad
virtio: Port codebase to the latest virtio-queue version
...
The new virtio-queue version introduced some breaking changes which need
to be addressed so that Cloud Hypervisor can still work with this
version.
The most important change is about removing a handle to the guest memory
from the Queue, meaning the caller has to provide the guest memory
handle for multiple methods from the QueueT trait.
One interesting aspect is that QueueT has been widely extended to
provide every getter and setter we need to access and update the Queue
structure without having direct access to its internal fields.
This patch ports all the virtio and vhost-user devices to this new crate
definition. It also updates both vhost-user-block and vhost-user-net
backends based on the updated vhost-user-backend crate. It also updates
the fuzz directory.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-29 17:41:32 +01:00
Michael Zhao
7199119bb2
hypervisor: Remove Vcpu::read_mpidr() on AArch64
...
Replaced `read_mpidr()` with `get_sys_reg()`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
5b54dc60aa
hypervisor: Add Vcpu::get_sys_reg() on AArch64
...
Added function `Vcpu::get_sys_reg()` to get single system register.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
ecb66b5e94
arch: Declare system registers on AArch64
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
cd7f36a713
hypervisor: Remove get/set_reg() on AArch64
...
`Vcpu::get/set_reg()` were only invoked in Vcpu itself.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Michael Zhao
f7b6d99c2d
hypervisor: Remove get/set_sys_regs() on AArch64
...
`hypervisor::Vcpu::get/set_sys_regs()` are only used in Vcpu internally.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-29 11:45:12 +01:00
Wei Liu
e1a70f676a
hypervisor: use serde_with with LapicState
...
Drop the hand-rolled serializer and deserializer.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-28 14:57:29 +01:00
Wei Liu
bec47ebcc9
hypervisor: simplify LapicState
...
Both KVM and MSHV share the same layout. We can drop one level of
indirection.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-28 08:52:28 +01:00
dependabot[bot]
ddc9004471
build: bump redox_syscall from 0.2.15 to 0.2.16
...
Bumps redox_syscall from 0.2.15 to 0.2.16.
---
updated-dependencies:
- dependency-name: redox_syscall
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-28 00:39:28 +00:00
dependabot[bot]
0c9b4fefc0
build: bump mshv-ioctls from 7ac1b80 to e38ea5d
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `7ac1b80` to `e38ea5d`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](7ac1b80bff...e38ea5d64b )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-27 23:53:04 +00:00
Rob Bradford
df10dab952
build: Skip running Jenkins if fuzzer only changes
...
There is no point in wasting resources building use Jenkins if the
change only modifies the fuzzers.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Rob Bradford
57ee561c39
fuzz: Place targets in alphabetical order
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Rob Bradford
a330c531b0
fuzz: Add new fuzzer for emulated cmos device
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Rob Bradford
e4211272ad
fuzz: Add new fuzzer for emulated serial device
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-27 18:12:56 +01:00
Sebastien Boeuf
f4e2198767
docs: Extend the list of TDX guest limitations
...
Adding a new limitation related to the TDX guest kernel as it doesn't
allow for most ACPI devices, meaning the PCI hotplug through ACPI isn't
supported unless we use 'tdx_disable_filter' boot parameter.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-26 17:47:03 +02:00
Rob Bradford
f8f0b40e94
build: Move Jenkins workers over to jammy
...
Fixes : #3862
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-26 14:53:49 +01:00
Maximilian Nitsch
87c0791d53
api-client: Handle body_offset is None
...
Handle the case `body_offset` is `None` instead of calling `unwrap()`
which leads to a panic.
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com >
2022-07-26 15:39:31 +02:00
dependabot[bot]
c46a9592c0
build: bump clap from 3.2.14 to 3.2.15
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.15/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.14...v3.2.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-26 07:52:06 +00:00
Sebastien Boeuf
561791ed22
tests: Reliably trigger a guest OOM
...
Rely on /proc/sysrq-trigger to forcibly trigger an OOM in the guest.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-26 09:22:38 +02:00
Rob Bradford
857edc71a9
vmm: cpu: Remove now unused CpuManager::vcpus_paused()
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-26 09:22:25 +02:00
Rob Bradford
0e29379bcf
vmm: Make gdb break/resuming more resilient
...
When starting the VM such that it is already on a breakpoint (via
stop_on_boot) when attached to gdb then start the vCPUs in a paused
state rather than starting the vCPUs later (upon resume).
Further, make the resumption/break of the VM more resilient by only
attempting to resume the vCPUs if were are already in a break point and
only attempting to pause/break if we were already running.
Fixes : #4354
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-26 09:22:25 +02:00
dependabot[bot]
23352c4945
build: bump proc-macro2 from 1.0.41 to 1.0.42
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.41...1.0.42 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-26 09:05:18 +02:00
dependabot[bot]
160528b6f5
build: bump proc-macro2 from 1.0.40 to 1.0.42 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.40 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.40...1.0.42 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-26 00:26:14 +00:00
dependabot[bot]
00200296ec
build: bump proc-macro2 from 1.0.40 to 1.0.41
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.40...1.0.41 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-25 23:57:01 +00:00
dependabot[bot]
c612886150
build: bump clap from 3.2.14 to 3.2.15 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.15/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.14...v3.2.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-25 23:41:19 +00:00
Rob Bradford
a749182777
vmm: acpi: Use ACPI platform device addresses from DeviceManager
...
Remove the hardcoded addresses.
Also remove PM_TMR_BLK as spec compliant implementation will use
X_PM_TMR_BLK over this field.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-25 16:16:06 +01:00
Rob Bradford
2e8eb96ef6
vmm: device_manager: Store ACPI platform addresses for later use
...
These are ready for inclusion in the FACP table.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-25 16:16:06 +01:00
Maximilian Nitsch
686e6d5082
api-client: Break the receive loop if the VMM shuts down the socket
...
Breaks the receive loop of the API client when the VMM shuts down the
socket connection. A shutdown is indicated by the return value 0 of the
`recv()` system call.[^1][^2] This case was not handled before, so the
API client tried infinitely to receive more bytes and did not return.
[^1]: https://linux.die.net/man/2/recv
[^2]: https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com >
2022-07-25 13:19:37 +01:00
Rob Bradford
b1a87cb698
hypervisor: mshv: Remove more #[allow(dead_code)] and unused code
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-25 10:09:46 +01:00
dependabot[bot]
869e96ed10
build: bump redox_syscall from 0.2.13 to 0.2.15
...
Bumps redox_syscall from 0.2.13 to 0.2.15.
---
updated-dependencies:
- dependency-name: redox_syscall
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-22 23:59:26 +00:00
Wei Liu
bcaa299c55
devices: arch is only needed by aarch64
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 22:29:49 +01:00
Wei Liu
454964cc90
vm-allocator: arch is only needed by aarch64
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 22:29:49 +01:00
Wei Liu
2afd0e626a
tree-wide: drop unneeded dependencies
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 22:29:49 +01:00
Wei Liu
e885c35a54
vhost_user_net: remove {self} import
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 14:37:03 +01:00
Wei Liu
ff7773044c
tree-wide: drop some unneeded allow clauses
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 14:37:03 +01:00
Wei Liu
5aaa647639
.github: build MSHV and KVM at the same time
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
7b99bd9496
hypervisor: suppress clippy::large_enum_variant
...
MSHV's vcpu state is small, but it will grow in the future.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
bb19c3d2b7
hypervisor: pick the available hypervisor automatically
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
aa66526ea0
hypervisor: add a function to check availability
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
c3ce5aa5b1
hypervisor: adjust new function return type
...
Make them return wrapped trait object directly.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
ad33f7c5e6
vmm: return seccomp rules according to hypervisors
...
That requires stashing the hypervisor type into various places.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
9fc3379e8d
hypervisor: add a function to return hypervisor type
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
d56263706d
main: unify error message for hypervisor availability
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
4a00371fe8
hypervisor: drop unused modules
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
ae7f74d0a8
hypervisor: drop kvm guard from some Vcpu trait functions
...
And provide default implementations.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
Wei Liu
cb6a14dec9
hypervisor: drop check_extension from Vm trait
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-22 12:50:12 +01:00
dependabot[bot]
e931c40e96
build: bump clap from 3.2.13 to 3.2.14 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.13 to 3.2.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.13...v3.2.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 23:40:33 +00:00
Wei Liu
a96a5d7816
hypervisor, vmm: use new vfio-ioctls
...
Use the new vfio-ioctls APIs. Drop Cloud Hypervisor's Device trait
since it is no longer needed.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
5e2c70b87f
hypervisor: aarch64: drop set/has_vcpu_attr
...
This avoids the need for exposing DeviceAttr.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
eca6609dbb
hypervisor: mshv: create_device returns DeviceFd directly
...
This aligns with KVM's code. No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
c5e966c972
hypervisor: aarch64: use KVM DeviceFd in GIC code
...
The code is obviously KVM only. We don't need to use dyn Device there.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
0856ebbd42
hypervisor: aarch64: drop set_its_device
...
The field can be set directly.
This eliminates one place where dyn Device is used outside of KVM
aarch64 code.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
422bf89d4d
hypervisor: drop create_device from Vm trait
...
This then avoids the need for creating a generic DeviceFd type in the
hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
500d91311f
hypervisor: aarch64: kvm: use concrete KvmVm type where possible
...
The code was moved from the vmm crate to the hypervisor crate. After the
move it is trivially obvious that it only works with KVM. Use concrete
types where possible.
This allows us to drop create_device from the Vm trait.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
b5270e0b45
hypervisor: allow downcasting to hypervisor VM types
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
Wei Liu
f84ddedb1a
hypervisor, vmm: introduce trait functions for aarch64 PMU
...
The original code uses kvm_device_attr directly outside of the
hyeprvisor crate. That leaks hypervisor details.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-21 23:37:53 +01:00
dependabot[bot]
b5d10eb28b
build: bump clap from 3.2.13 to 3.2.14
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.13 to 3.2.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.13...v3.2.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 16:07:56 +00:00
dependabot[bot]
de14db7320
build: bump hashbrown from 0.12.2 to 0.12.3
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.12.2...v0.12.3 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 17:20:40 +02:00
dependabot[bot]
269b78ca0f
build: bump serde from 1.0.139 to 1.0.140
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.139 to 1.0.140.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 13:17:32 +00:00
Sebastien Boeuf
5f98710471
virtio-devices: vhost-user: Stop the vrings on a virtio reset
...
Whenever a virtio reset happens, the vhost-user backend should be
notified that the vring should be stopped. This is performed by calling
GET_VRING_BASE on the appropriate queue indexes.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
613c60fc6f
virtio-devices: vhost-user: Enable correct queue indexes
...
Rather than relying on the amount of queues to enable or disable the
queue that have been activated, we rely on the actual queue indexes
provided through the tuple including the queue index, the Queue and the
EventFd. By storing the list of indexes, we simplify the code and also
make it more accurate in case some queues aren't activated.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
3f62a172b2
virtio-devices: Pass a list of tuples for virtqueues
...
Instead of passing separately a list of Queues and the equivalent list
of EventFds, we consolidate these two through a tuple along with the
queue index.
The queue index can be very useful if looking for the actual index
related to the queue, no matter if other queues have been enabled or
not.
It's also convenient to have the EventFd associated with the Queue so
that we don't have to carry two lists with the same amount of items.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
423c54eafe
virtio-devices: Pull correct EventFd from queue_evts list
...
When preparing the activator, we must provide the correct queue index to
clone the right EventFd associated with the queue.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
Sebastien Boeuf
e1a63822fa
virtio-devices: fs: Reduce minimal amount of enabled queues to 1
...
It's not mandatory for the virtio-fs driver to enable all virtqueues
provided by the backend since all it needs is one request queue to work
correctly. Therefore we lower the minimal amount of enabled queues to 1.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 14:28:41 +02:00
dependabot[bot]
3083da154e
build: bump vfio-ioctls from 38272d3 to 0e0e115
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `38272d3` to `0e0e115`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](38272d3f06...0e0e115551 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 12:09:41 +00:00
dependabot[bot]
5c20869dd5
build: bump clap from 3.2.12 to 3.2.13
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.12 to 3.2.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.12...v3.2.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 12:00:29 +01:00
Sebastien Boeuf
ec27e0ee82
tests: Fix test_virtio_balloon_deflate_on_oom()
...
It might sometimes take a few seconds for the guest to trigger the OOM
and report it back to the host. That's why this patch adds some sleep
time between the command in the guest supposedly triggering the OOM and
the check of the balloon size from the host.
Fixes #4336
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-21 12:00:14 +01:00
dependabot[bot]
0bb509e5d2
build: bump serde from 1.0.139 to 1.0.140 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.139 to 1.0.140.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 23:51:30 +00:00
dependabot[bot]
a161e56bef
build: bump unicode-ident from 1.0.1 to 1.0.2
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.1...1.0.2 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 12:36:40 +00:00
dependabot[bot]
777ba6d577
build: bump hashbrown from 0.12.2 to 0.12.3 in /fuzz
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.12.2...v0.12.3 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 11:55:15 +00:00
dependabot[bot]
b0258c7b13
build: bump unicode-ident from 1.0.1 to 1.0.2 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.1...1.0.2 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 11:22:50 +00:00
dependabot[bot]
55c9562c4d
build: bump os_str_bytes from 6.1.0 to 6.2.0
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.1.0...6.2.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 11:21:04 +00:00
dependabot[bot]
7419a021cd
build: bump clap from 3.2.12 to 3.2.13 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.12 to 3.2.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.12...v3.2.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 10:55:52 +00:00
dependabot[bot]
cc9908efe2
build: bump os_str_bytes from 6.1.0 to 6.2.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.1.0...6.2.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-20 10:26:31 +00:00
dependabot[bot]
474e55724f
build: bump vmm-sys-util from 0.9.0 to 0.10.0 in /fuzz
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: vmm-sys-util
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-20 09:40:28 +00:00
dependabot[bot]
b440cb7d23
build: bump vmm-sys-util from 0.9.0 to 0.10.0
...
This patch requires the vhost-user-backend crate to be bumped from 0.5.0
to 0.5.1.
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: vmm-sys-util
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-20 09:40:28 +00:00
Wei Liu
f21fc1dcb6
hypervisor: x86: provide a generic MsrEntry structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-20 10:13:41 +01:00
Wei Liu
4d2cc3778f
hypervisor: move away from MsrEntries type
...
It is a flexible array. Switch to vector and slice instead.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-20 10:13:41 +01:00
Wei Liu
563919fc4a
hypervisor: x86: drop get_msr_list from hypervisor trait
...
It is not needed by code outside of the hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
05e5106b9b
hypervisor x86: provide a generic LapicState structure
...
This requires making get/set_lapic_reg part of the type.
For the moment we cannot provide a default variant for the new type,
because picking one will be wrong for the other hypervisor, so I just
drop the test cases that requires LapicState::default().
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
d461daa7fa
hypervisor: x86: drop get/set VcpuEvents from vcpu trait
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
58dbf07453
hypervisor: x86: drop get/set Xcrs from Vcpu trait
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
c8d9a43072
hypervisor: x86: drop get/set Xsave from Vcpu trait
...
They are only needed internally within the hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-19 09:38:38 +01:00
Wei Liu
6a8c0fc887
hypervisor: provide a generic FpuState structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 22:15:30 +01:00
Wei Liu
08135fa085
hypervisor: provide a generic CpudIdEntry structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 22:15:30 +01:00
Wei Liu
45fbf840db
hypervisor, vmm: move away from CpuId type
...
CpuId is an alias type for the flexible array structure type over
CpuIdEntry. The type itself and the type of the element in the array
portion are tied to the underlying hypervisor.
Switch to using CpuIdEntry slice or vector directly. The construction of
CpuId type is left to hypervisors.
This allows us to decouple CpuIdEntry from hypervisors more easily.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 22:15:30 +01:00
Rob Bradford
9fdfdf25fb
tests: Disable test_windows_guest_snapshot_restore for now
...
See: #4327
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-18 17:42:14 +01:00
Rob Bradford
f8f2f09a19
tests: Skip test_vfio for now
...
See: #4324
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-18 14:35:41 +01:00
Wei Liu
edf6dda705
hypervisor: mshv: drop get_suspend_regs
...
It is not used (yet).
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-18 11:02:51 +01:00
Wei Liu
f1ab86fecb
hypervisor: x86: provide a generic SpecialRegisters structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
d2b194c4f1
hypervisor: x86: provide a generic DescriptorTable structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
75797827d5
hypervisor: x86: provide a generic SegmentRegister structure
...
And drop SegmentRegisterOps since it is no longer required.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
8b7781e267
hypervisor: x86: provide a generic StandardRegisters structure
...
We only need to do this for x86 since MSHV does not have aarch64 support
yet. This reduces unnecessary code churn.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
Wei Liu
d20f647b32
hypervisor: provide a generic IrqRoutingEntry structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-15 10:21:43 +01:00
dependabot[bot]
2de7121680
build: bump clap from 3.2.11 to 3.2.12
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.11 to 3.2.12.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.11...v3.2.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-15 00:43:41 +00:00
dependabot[bot]
709958be34
build: bump clap from 3.2.11 to 3.2.12 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.11 to 3.2.12.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.11...v3.2.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-14 23:36:53 +00:00
Wei Liu
4201bf4011
hypervisor: provide a generic ClockData structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
beb4f86b82
hypervisor, vmm: drop VmState and code
...
VmState was introduced to hold hypervisor specific VM state. KVM does
not need it and MSHV does not really use it yet.
Just drop the code. It can be easily revived once there is a need.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
72d552e5e1
hypervisor: provide a generic CpuState structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
dd592e86fd
hypervisor: do not export VcpuEvents
...
It is not used anywhere outside of the hypervisor crate.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
f9f0a60dcf
hypervisor: provide a generic IoEventAddress structure
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
9810ed4496
hypervisor: provide a generic MpState structure
...
It is however only used for KVM right now because MSHV does not need it
yet.
Nonetheless a stub MSHV constructor should be there and get/set
functions should be implemented for MSHV.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Wei Liu
02866fccb0
hypervisor: drop unused IrqRouting struct from MSHV
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 22:09:04 +01:00
Alyssa Ross
a455917db5
vmm: fix missed API or debug events
...
Previously, we were assuming that every time an eventfd notified us,
there was only a single event waiting for us. This meant that if,
while one API request was being processed, two more arrived, the
second one would not be processed (until the next one arrived, when it
would be processed instead of that event, and so on). To fix this,
make sure we're processing the number of API and debug requests we've
been told have arrived, rather than just one. This is easy to
demonstrate by sending lots of API events and adding some sleeps to
make sure multiple events can arrive while each is being processed.
For other uses of eventfd, like the exit event, this doesn't matter —
even if we've received multiple exit events in quick succession, we
only need to exit once. So I've only made this change where receiving
an event is non-idempotent, i.e. where it matters that we process the
event the right number of times.
Technically, reset requests are also non-idempotent — there's an
observable difference between a VM resetting once, and a VM resetting
once and then immediately resetting again. But I've left that alone
for now because two resets in immediate succession doesn't sound like
something anyone would ever want to me.
Signed-off-by: Alyssa Ross <hi@alyssa.is >
2022-07-14 17:44:11 +01:00
Wei Liu
4a1eab11b4
hypervisor: do not export VcpuExit
...
It is not used anywhere outside of the hypervisor crate.
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 16:37:47 +01:00
Michael Zhao
f0ad7fc74f
hypervisor: Remove arch_target = "arm"' in cfg`
...
Some `arch_target = "arm"' usages on VCPU related code are not correct.
And we don't support 32-bit ARM architecture.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-14 22:55:19 +08:00
Michael Zhao
2d8635f04a
hypervisor: Refactor system_registers on AArch64
...
Function `system_registers` took mutable vector reference and modified
the vector content. Now change the definition to `get/set` style.
And rename to `get/set_sys_regs` to align with other functions.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-14 22:55:19 +08:00
Michael Zhao
c445513976
hypervisor: Refactor core_registers on AArch64
...
On AArch64, the function `core_registers` and `set_core_registers` are
the same thing of `get/set_regs` on x86_64. Now the names are aligned.
This will benefit supporting `gdb`.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-07-14 22:55:19 +08:00
dependabot[bot]
fc2cc53d51
build: bump clap from 3.2.8 to 3.2.11
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.8 to 3.2.11.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.8...v3.2.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-14 14:49:35 +00:00
Wei Liu
0e8769d76a
device_manager: assert passthrough_device has the correct type
...
There is a lot of unsafe code in such a small function. Add an assert
to help detect issues earlier.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Wei Liu
47b5581c50
hypervisor: drop a level of indirection for MSHV's DeviceFd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Wei Liu
3710932248
hypervisor: drop a level of indirection for KVM's DeviceFd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Wei Liu
ddad5f3510
hypervisor: allow downcasting to KVM / MSHV device fd
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 08:09:50 +01:00
Archana Shinde
28683b8471
docs: Add step to resolve DNS for installing packages
...
For installing packages for the custom Ubuntu image, we
need to setup DNS inside the chroot.
Signed-off-by: Archana Shinde <archana.m.shinde@intel.com >
2022-07-14 07:58:13 +01:00
Wei Liu
e1cf889dbd
hypervisor: use UserMemoryRegion in the Vm trait
...
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 07:55:48 +01:00
Wei Liu
5894b5370c
hypervisor: transform between UserMemoryRegion and hypervisor structs
...
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 07:55:48 +01:00
Wei Liu
fabc940b65
hypervisor: add UserMemoryRegion and flags
...
Signed-off-by: Dev Rajput <t-devrajput@microsoft.com >
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-14 07:55:48 +01:00
dependabot[bot]
6b9c5d21c4
build: bump clap from 3.2.10 to 3.2.11 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.10 to 3.2.11.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.10...v3.2.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-13 23:35:18 +00:00
dependabot[bot]
c140fd6220
build: bump hashbrown from 0.12.1 to 0.12.2 in /fuzz
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.12.1...v0.12.2 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-13 00:03:10 +00:00
dependabot[bot]
7063c41811
build: bump clap from 3.2.8 to 3.2.10 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.8 to 3.2.10.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.8...v3.2.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 23:37:00 +00:00
dependabot[bot]
92f9866e2f
build: bump openssl-sys from 0.9.74 to 0.9.75
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.74 to 0.9.75.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.74...openssl-sys-v0.9.75 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 02:41:13 +00:00
dependabot[bot]
23935ad96b
build: bump io-uring from 0.5.2 to 0.5.3
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 01:55:59 +00:00
dependabot[bot]
335fd465fe
build: bump hashbrown from 0.12.1 to 0.12.2
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.12.1...v0.12.2 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 00:50:10 +00:00
dependabot[bot]
b8e5c2ecca
build: bump serde from 1.0.138 to 1.0.139 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.138 to 1.0.139.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-12 00:20:20 +00:00
dependabot[bot]
a99c33ccfa
build: bump serde from 1.0.138 to 1.0.139
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.138 to 1.0.139.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-11 23:54:20 +00:00
dependabot[bot]
b70f2c5385
build: bump io-uring from 0.5.2 to 0.5.3 in /fuzz
...
Bumps [io-uring](https://github.com/tokio-rs/io-uring ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/tokio-rs/io-uring/releases )
- [Commits](https://github.com/tokio-rs/io-uring/commits )
---
updated-dependencies:
- dependency-name: io-uring
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-11 23:39:59 +00:00
Wei Liu
84bbaf06d1
hypervisor: turn boot_msr_entries into a trait method
...
This allows dispatching to either KVM or MSHV automatically.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-07-08 16:49:58 +01:00
Rob Bradford
121729a3b0
vmm: Split signal handling for VM and VMM signals
...
The VM specific signal (currently only SIGWINCH) should only be handled
when the VM is running.
The generic VMM signals (SIGINT and SIGTERM) need handling at all times.
Split the signal handling into two separate threads which have differing
lifetimes.
Tested by:
1.) Boot full VM and check resize handling (SIGWINCH) works & sending
SIGTERM leads to cleanup (tested that API socket is removed.)
2.) Start without a VM and send SIGTERM/SIGINT and observe cleanup (API
socket removed)
3.) Boot full VM, delete VM and observe 2.) holds.
4.) Boot full VM, delete VM, recreate VM and observe 1.) holds.
Fixes : #4269
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-08 15:15:46 +01:00
Rob Bradford
e300c3dcf7
vhdx: Avoid unwrap() of invalid header
...
In the original code:
If the first header was invalid and the second header had the same
sequence number (zero) then the invalid first header would be returned.
The new code is more Rust idiomatic and avoids this situation.
See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48858
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-08 10:19:11 +01:00
Rob Bradford
b132cd2145
build: Release v25.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-07 15:18:55 +01:00
Sebastien Boeuf
a650b8645f
deps: bump virtio-queue from 0.3.0 to 0.4.0
...
And along with virtio-queue, we must also bump vhost-user-backend from
0.3.0 to 0.5.0 (since it relies on virtio-queue 0.4.0).
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-06 16:57:09 +02:00
Sebastien Boeuf
f94a5fb4e3
virtio-devices: Pass negotiated queue size to vhost-user backend
...
The vhost-user backend was always provided the maximum queue size but
this is incorrect. Instead it must be informed of the actual queue size
that has been negotiated with the virtio driver running in the guest.
This ensures proper functioning of vhost-user-block with the Rust
Hypervisor Firmware, which uses a hardcoded queue size of 16.
Partially fixes #4285
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-06 14:45:46 +01:00
Sebastien Boeuf
00800b8499
virtio-devices: Remove deprecated call to VHOST_USER_RESET_OWNER
...
The latest vhost-user specification describes VHOST_USER_RESET_OWNER
command as deprecated with the following explanation:
This is no longer used. Used to be sent to request disabling all
rings, but some back-ends interpreted it to also discard connection
state (this interpretation would lead to bugs). It is recommended that
back-ends either ignore this message, or use it to disable all rings.
Also, it's been observed that when using either Rust Hypervisor Firmware
or EDK2 OVMF firmware with SPDK (using the block device as the boot
disk), the virtio reset that happens when the firmware no longer needs
to access the block device caused a failure by triggering the command
VHOST_USER_RESET_OWNER.
For all these reasons, this patch simplifies the virtio reset
implementation by simply disabling the virtqueues and no longer calling
into VHOST_USER_RESET_OWNER.
Partially fixes #4285
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-06 14:45:46 +01:00
dependabot[bot]
0b311f6c4c
build: bump once_cell from 1.12.1 to 1.13.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.1...v1.13.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 02:35:11 +00:00
dependabot[bot]
8063c00e67
build: bump openssl-src from 111.21.0+1.1.1p to 111.22.0+1.1.1q
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.21.0+1.1.1p to 111.22.0+1.1.1q.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 01:47:30 +00:00
dependabot[bot]
4f611c8654
build: bump serde from 1.0.137 to 1.0.138
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.137 to 1.0.138.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 00:56:48 +00:00
dependabot[bot]
d291b87288
build: bump regex from 1.5.6 to 1.6.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.6 to 1.6.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.5.6...1.6.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-06 00:02:30 +00:00
dependabot[bot]
51787d30da
build: bump once_cell from 1.12.1 to 1.13.0 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.1...v1.13.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-05 23:47:51 +00:00
Sebastien Boeuf
63579341e1
net_util: Don't expect the interface to be IFF_RUNNING
...
Enabling the TAP interface is only about the IFF_UP flag, meaning we
shouldn't be testing the presence of IFF_RUNNING, and therefore we
shouldn't set it when not present.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-07-05 16:35:58 +01:00
dependabot[bot]
9c0872def7
build: bump once_cell from 1.12.0 to 1.12.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-05 11:39:42 +00:00
Rob Bradford
5dfc49c9fa
build: Update development container to Rust 1.62
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-05 11:50:46 +01:00
dependabot[bot]
65f8c3682f
build: bump serde from 1.0.137 to 1.0.138 in /fuzz
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.137 to 1.0.138.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-05 00:04:25 +00:00
dependabot[bot]
c87466eea2
build: bump once_cell from 1.12.0 to 1.12.1 in /fuzz
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-04 23:36:34 +00:00
Rob Bradford
6c365617ee
Revert "scripts, README.md: Bump reference kernel to 5.18.8"
...
This reverts commit 1999ab5707 .
See: #4273
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 10:55:28 +01:00
Rob Bradford
30da293d8f
tests: Report stderr on ch-remote command failure
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 09:18:18 +02:00
Rob Bradford
67bfd4e234
tests: tests_api_create_boot: Use ch-remote for creating and booting vm
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 09:18:18 +02:00
Rob Bradford
46bbe0e612
ch-remote: Simplify ch-remote create from config file
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-04 09:18:18 +02:00
dependabot[bot]
216f330f4e
build: bump semver from 1.0.11 to 1.0.12
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-02 00:51:37 +00:00
dependabot[bot]
bd075872d4
build: bump mshv-bindings from d94c305 to 7ac1b80
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `d94c305` to `7ac1b80`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](d94c30583f...7ac1b80bff )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-01 23:57:38 +00:00
dependabot[bot]
7fd5f41623
build: bump semver from 1.0.11 to 1.0.12 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-01 23:44:45 +00:00
Rob Bradford
93237f0106
vmm: Set MADT "Online Capable" flag
...
The Linux kernel now checks for this before marking CPUs as
hotpluggable:
commit aa06e20f1be628186f0c2dcec09ea0009eb69778
Author: Mario Limonciello <mario.limonciello@amd.com >
Date: Wed Sep 8 16:41:46 2021 -0500
x86/ACPI: Don't add CPUs that are not online capable
A number of systems are showing "hotplug capable" CPUs when they
are not really hotpluggable. This is because the MADT has extra
CPU entries to support different CPUs that may be inserted into
the socket with different numbers of cores.
Starting with ACPI 6.3 the spec has an Online Capable bit in the
MADT used to determine whether or not a CPU is hotplug capable
when the enabled bit is not set.
Link: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html?#local-apic-flags
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-01 18:45:05 +01:00
Rob Bradford
0c82e7593d
tests: Remove test on available entropy bits
...
As far as I can tell this always reports 256 for us now:
https://lore.kernel.org/lkml/YmlMGx6+uigkGiZ0@zx2c4.com/
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-01 18:45:05 +01:00
Rob Bradford
1999ab5707
scripts, README.md: Bump reference kernel to 5.18.8
...
This marginally reduced the number of patches in the fork.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-07-01 18:45:05 +01:00
dependabot[bot]
5c22f02f32
build: bump clap from 3.2.7 to 3.2.8
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.7 to 3.2.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.7...v3.2.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 22:07:39 +00:00
dependabot[bot]
c7afb44c5a
build: bump smallvec from 1.8.1 to 1.9.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.1...v1.9.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 22:00:55 +01:00
Rob Bradford
b0afeeeb65
ch-remote: Add "create" command to ch-remote
...
Tested by:
1. Path: ch-remote --api-socket .. create test-config.json
2. stdin with "-" path: ch-remote --api-socket .. create - < test-config.json
2. stding with implicit "-": ch-remote --api-socket .. create < test-config.json
Fixes : #4250
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 21:29:54 +01:00
dependabot[bot]
cb53a8b40c
build: bump semver from 1.0.10 to 1.0.11
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 20:51:02 +01:00
Rob Bradford
adf5881757
build: #[allow(clippy::significant_drop_in_scrutinee) in some crates
...
This check is new in the beta version of clippy and exists to avoid
potential deadlocks by highlighting when the test in an if or for loop
is something that holds a lock. In many cases we would need to make
significant refactorings to be able to pass this check so disable in the
affected crates.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
44eca31642
build: Fix beta clippy issue (needless_return)
...
warning: accessing first element with `data.get(0)`
--> virtio-devices/src/transport/pci_device.rs:1055:34
|
1055 | if let Some(v) = data.get(0) {
| ^^^^^^^^^^^ help: try: `data.first()`
|
= note: `#[warn(clippy::get_first)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
b57d7b258d
build: Fix beta clippy issue (needless_return)
...
warning: unneeded `return` statement
--> pci/src/vfio_user.rs:627:13
|
627 | / return Err(std::io::Error::new(
628 | | std::io::ErrorKind::Other,
629 | | format!("Region not found for 0x{:x}", gpa),
630 | | ));
| |_______________^
|
= note: `#[warn(clippy::needless_return)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
627 ~ Err(std::io::Error::new(
628 + std::io::ErrorKind::Other,
629 + format!("Region not found for 0x{:x}", gpa),
630 + ))
|
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
d7decfd525
build: Fix beta clippy issue (unnecessary_to_owned)
...
warning: unnecessary use of `to_vec`
--> acpi_tables/src/aml.rs:71:37
|
71 | bytes.extend_from_slice(&part.to_vec());
| ^^^^^^^^^^^^^^ help: use: `part.as_ref()`
|
= note: `#[warn(clippy::unnecessary_to_owned)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
Rob Bradford
2716bc3311
build: Fix beta clippy issue (derive_partial_eq_without_eq)
...
warning: you are deriving `PartialEq` and can implement `Eq`
--> vmm/src/serial_manager.rs:59:30
|
59 | #[derive(Debug, Clone, Copy, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-30 20:50:45 +01:00
dependabot[bot]
9cf0dee264
build: bump mshv-ioctls from 27477b7 to d94c305
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `27477b7` to `d94c305`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](27477b713d...d94c30583f )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 18:22:23 +01:00
dependabot[bot]
d8b3d07825
build: bump clap from 3.2.7 to 3.2.8 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.7 to 3.2.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.7...v3.2.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:57:04 +01:00
dependabot[bot]
3d66e86604
build: bump serde_json from 1.0.81 to 1.0.82
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.81...v1.0.82 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:56:47 +01:00
dependabot[bot]
a2164873ac
build: bump semver from 1.0.10 to 1.0.11 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:37:28 +01:00
dependabot[bot]
7f8cf4f8e7
build: bump serde_json from 1.0.81 to 1.0.82 in /fuzz
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.81...v1.0.82 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 17:05:29 +01:00
dependabot[bot]
aedbd7ae27
build: bump clap_lex from 0.2.3 to 0.2.4 in /fuzz
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.2.3...clap_lex-v0.2.4 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-30 16:20:56 +01:00
dependabot[bot]
bb4461e951
build: bump clap_lex from 0.2.3 to 0.2.4
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.2.3...clap_lex-v0.2.4 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-29 01:23:11 +00:00
dependabot[bot]
54fe5fb9f5
build: bump clap from 3.2.6 to 3.2.7
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.6...v3.2.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-29 00:26:54 +00:00
dependabot[bot]
5a9e7ee7fe
build: bump clap from 3.2.6 to 3.2.7 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.6...v3.2.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-28 23:39:43 +00:00
Rob Bradford
2e664dca64
vmm: Always reset the console mode on VMM exit
...
Tested:
1. SIGTERM based
2. VM shutdown/poweroff
3. Injected VM boot failure after calling Vm::setup_tty()
Fixes : #4248
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-28 16:45:27 +01:00
dependabot[bot]
a26f86f8ad
build: bump smallvec from 1.8.0 to 1.8.1
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-27 23:56:42 +00:00
dependabot[bot]
fde13889f4
build: bump arbitrary from 1.1.2 to 1.1.3 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-27 23:43:02 +00:00
Rob Bradford
65ec6631fb
vmm: cpu: Store the vCPU snapshots in ascending order
...
The snapshots are stored in a BTree which is ordered however as the ids
are strings lexical ordering places "11" ahead of "2". So encode the
vCPU id with zero padding so it is lexically sorted.
This fixes issues with CPU restore on aarch64.
See: #4239
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-27 16:20:57 +01:00
Dylan Bargatze
6ac8dc8745
Change ❎ to ❌ .
...
Signed-off-by: Dylan Bargatze <dbargatz@users.noreply.github.com >
2022-06-27 11:24:57 +01:00
Wei Liu
2f514523dd
hypervisor: emulator: use matches!
...
No functional change. Just make the code a bit nicer to read.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-23 17:30:21 +02:00
dependabot[bot]
92f559f6f2
build: bump vfio-ioctls from f75a77c to 38272d3
...
Bumps [vfio-ioctls](https://github.com/rust-vmm/vfio ) from `f75a77c` to `38272d3`.
- [Release notes](https://github.com/rust-vmm/vfio/releases )
- [Commits](f75a77c1ab...38272d3f06 )
---
updated-dependencies:
- dependency-name: vfio-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-23 06:19:10 +00:00
dependabot[bot]
3972e38371
build: bump mshv-bindings from bec9eba to 27477b7
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `bec9eba` to `27477b7`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](bec9ebaac3...27477b713d )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-23 05:32:24 +00:00
dependabot[bot]
a1a016526f
build: bump clap from 3.2.5 to 3.2.6
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.5...v3.2.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 04:35:13 +00:00
dependabot[bot]
a5692a95c1
build: bump quote from 1.0.19 to 1.0.20
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.19...1.0.20 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 03:28:22 +00:00
dependabot[bot]
0fd25b3246
build: bump clap_lex from 0.2.2 to 0.2.3 in /fuzz
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.2.2...clap_lex-v0.2.3 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 02:55:23 +00:00
dependabot[bot]
e6127df703
build: bump clap_lex from 0.2.2 to 0.2.3
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.2.2...clap_lex-v0.2.3 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 02:23:56 +00:00
dependabot[bot]
559657eecc
build: bump indexmap from 1.9.0 to 1.9.1 in /fuzz
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.9.0...1.9.1 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 01:52:44 +00:00
dependabot[bot]
66f1ec0063
build: bump indexmap from 1.9.0 to 1.9.1
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.9.0...1.9.1 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 01:19:00 +00:00
dependabot[bot]
13d081ac47
build: bump quote from 1.0.19 to 1.0.20 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.19...1.0.20 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 00:49:19 +00:00
dependabot[bot]
b12f4ccade
build: bump openssl-src from 111.20.0+1.1.1o to 111.21.0+1.1.1p
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.20.0+1.1.1o to 111.21.0+1.1.1p.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 00:27:48 +00:00
dependabot[bot]
1f8bca4840
build: bump clap from 3.2.5 to 3.2.6 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.5...v3.2.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-22 00:13:52 +00:00
dependabot[bot]
833eb2ebe6
build: bump proc-macro2 from 1.0.39 to 1.0.40
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 11:50:46 +00:00
dependabot[bot]
7c7f0f1f5f
build: bump proc-macro2 from 1.0.39 to 1.0.40 in /fuzz
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 11:42:40 +01:00
dependabot[bot]
d445ec7633
build: bump syn from 1.0.96 to 1.0.98
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.96 to 1.0.98.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.96...1.0.98 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 11:42:30 +01:00
dependabot[bot]
039e758f15
build: bump syn from 1.0.96 to 1.0.98 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.96 to 1.0.98.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.96...1.0.98 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 01:05:33 +00:00
dependabot[bot]
eb55d0809e
build: bump anyhow from 1.0.57 to 1.0.58
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.57...1.0.58 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 00:46:25 +00:00
dependabot[bot]
ecde44617b
build: bump quote from 1.0.18 to 1.0.19 in /fuzz
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 00:31:52 +00:00
dependabot[bot]
58e567b309
build: bump quote from 1.0.18 to 1.0.19
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-20 23:58:53 +00:00
dependabot[bot]
fa0140a183
build: bump anyhow from 1.0.57 to 1.0.58 in /fuzz
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.57...1.0.58 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-20 23:40:45 +00:00
Wei Liu
c6c5e4ee87
vhost_user_block: drop Sync bound for DiskFile
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
a64bdcf3f5
hypervisor: drop Send+Sync bounds for PlatformEmulator
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
439823e7ea
virtio-devices: drop Send+Sync bounds for DmaRemapping
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
9019086625
block_util: drop Sync bound for DiskFile and AsyncIo
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
bccd7c7e48
vmm: drop Sync+Send bounds for EndpointHandler
...
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 23:28:57 +01:00
Wei Liu
f1dc7f442a
net_util: switch from lazy_static to once_cell
...
Once_cell does not require using macro and is slated to become part of
Rust std at some point.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 16:03:07 +01:00
Wei Liu
32b855df3a
tests: switch from lazy_static to once_cell
...
Once_cell does not require using macro and is slated to become part of
Rust std at some point.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 16:03:07 +01:00
Wei Liu
8fa1098629
vmm: switch from lazy_static to once_cell
...
Once_cell does not require using macro and is slated to become part of
Rust std at some point.
Signed-off-by: Wei Liu <liuwe@microsoft.com >
2022-06-20 16:03:07 +01:00
dependabot[bot]
41cec53bb8
build: bump indexmap from 1.8.2 to 1.9.0
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.2...1.9.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-18 00:40:57 +00:00
dependabot[bot]
fd9f14893b
build: bump indexmap from 1.8.2 to 1.9.0 in /fuzz
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.2...1.9.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-17 23:52:48 +00:00
Rob Bradford
7c8719b4ea
tests: Unify API based boot across architectures
...
Use direct kernel boot for all the tests that create the VM via API.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-17 16:52:56 +01:00
Sebastien Boeuf
335a4e1cc0
vmm: api: Expose kvm_hyperv parameter in OpenAPI description
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-17 15:11:53 +01:00
dependabot[bot]
6dbbd0363f
build: bump mshv-bindings from cda9d65 to bec9eba
...
Bumps [mshv-bindings](https://github.com/rust-vmm/mshv ) from `cda9d65` to `bec9eba`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](cda9d658f4...bec9ebaac3 )
---
updated-dependencies:
- dependency-name: mshv-bindings
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-17 13:11:28 +00:00
dependabot[bot]
40e1ad3f62
build: bump arbitrary from 1.1.1 to 1.1.2 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-16 23:43:08 +00:00
Rob Bradford
094625242d
tests: Add tests for vm.delete and vm.shutdown
...
Fixes : #1295
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-16 11:29:33 +01:00
Rob Bradford
b3569f084d
ch-remote: Add missing boot and delete commands
...
These are simple commands so require no further enabling than adding to
the list of commands.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-16 11:29:33 +01:00
dependabot[bot]
3800212def
build: bump clap from 3.2.4 to 3.2.5
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.4...v3.2.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-16 10:09:02 +00:00
dependabot[bot]
e9f5052fcd
build: bump mshv-ioctls from 82be857 to cda9d65
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `82be857` to `cda9d65`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](82be8577d1...cda9d658f4 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-16 10:08:50 +01:00
Rob Bradford
a583b055f5
docs: Add LBR profiling instructions to profiling.md
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-16 07:43:36 +01:00
dependabot[bot]
2b33e66bb4
build: bump clap from 3.2.4 to 3.2.5 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.4...v3.2.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 23:41:07 +00:00
dependabot[bot]
92ceef52c8
build: bump mshv-ioctls from ae24471 to 82be857
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `ae24471` to `82be857`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](ae244716b3...82be8577d1 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 03:09:04 +00:00
dependabot[bot]
d7baa58e11
build: bump unicode-ident from 1.0.0 to 1.0.1
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 02:04:21 +00:00
dependabot[bot]
2d39b6ed06
build: bump getrandom from 0.2.6 to 0.2.7 in /fuzz
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 01:09:41 +00:00
dependabot[bot]
ed31ca9041
build: bump gdbstub_arch from 0.2.2 to 0.2.3
...
Bumps [gdbstub_arch](https://github.com/daniel5151/gdbstub ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/daniel5151/gdbstub/releases )
- [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daniel5151/gdbstub/commits )
---
updated-dependencies:
- dependency-name: gdbstub_arch
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 00:59:21 +00:00
dependabot[bot]
06b880e99f
build: bump clap from 3.2.1 to 3.2.4 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.1 to 3.2.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v3.2.1...v3.2.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 00:39:46 +00:00
dependabot[bot]
742ca68070
build: bump clap from 3.1.18 to 3.2.4
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.18 to 3.2.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.18...v3.2.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 23:58:30 +00:00
dependabot[bot]
f950cb1fdb
build: bump arbitrary from 1.1.0 to 1.1.1 in /fuzz
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/rust-fuzz/arbitrary/releases )
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/commits/1.1.1 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 23:50:22 +00:00
dependabot[bot]
c6c5dca651
build: bump micro_http from a730d86 to 863b037
...
Bumps [micro_http](https://github.com/firecracker-microvm/micro-http ) from `a730d86` to `863b037`.
- [Release notes](https://github.com/firecracker-microvm/micro-http/releases )
- [Commits](a730d86940...863b0370ba )
---
updated-dependencies:
- dependency-name: micro_http
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 14:59:13 +00:00
dependabot[bot]
d646e10079
build: bump clap_lex from 0.2.0 to 0.2.2
...
Bumps [clap_lex](https://github.com/clap-rs/clap ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.2.0...clap_lex-v0.2.2 )
---
updated-dependencies:
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 09:44:39 +00:00
dependabot[bot]
efe0429a9a
build: bump getrandom from 0.2.6 to 0.2.7
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 08:57:32 +00:00
dependabot[bot]
1f3321c50e
build: bump gdbstub from 0.6.1 to 0.6.2
...
Bumps [gdbstub](https://github.com/daniel5151/gdbstub ) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/daniel5151/gdbstub/releases )
- [Changelog](https://github.com/daniel5151/gdbstub/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daniel5151/gdbstub/compare/0.6.1...0.6.2 )
---
updated-dependencies:
- dependency-name: gdbstub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 08:09:13 +00:00
dependabot[bot]
c0d51eecf1
build: bump unicode-ident from 1.0.0 to 1.0.1 in /fuzz
...
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases )
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: unicode-ident
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-14 00:13:03 +00:00
dependabot[bot]
1b9dc80469
build: bump clap from 3.1.18 to 3.2.1 in /fuzz
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.18 to 3.2.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.18...clap_complete-v3.2.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-13 23:46:23 +00:00
dependabot[bot]
43d32a7288
build: bump semver from 1.0.9 to 1.0.10 in /fuzz
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 01:49:02 +00:00
dependabot[bot]
27e04e41bf
build: bump semver from 1.0.9 to 1.0.10
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 01:13:07 +00:00
dependabot[bot]
41ac48d332
build: bump uuid from 1.1.1 to 1.1.2
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.1...1.1.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 00:25:45 +00:00
dependabot[bot]
2afaed9111
build: bump uuid from 1.1.1 to 1.1.2 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.1...1.1.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-10 23:39:30 +00:00
Rob Bradford
f1ea69474d
scripts: Mark git repository as safe
...
Git will refuse to generate information for the report if the repository
is owned by a different user (root in the container vs the real owner
outside).
e.g:
Error generating human readable git reference: fatal: unsafe repository ('/cloud-hypervisor' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /cloud-hypervisor
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-10 17:20:13 +01:00
Rob Bradford
cac42301f8
performance-metrics: Produce some error messages if git commands fail
...
It is reasonable for these to fail as it the tool could be run outside
of a git repository but by not giving any error message we cannot see
issues when we expect the report to have the git details.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-10 17:20:13 +01:00
Jinank Jain
ada85f68f6
hypervisor: mshv: Override hypervisor R/W behavior for unknown MSR
...
By default Microsoft Hypervisor send a GP to the guest if it tries
read/write an unimplemented MSR from the hypervisor prospective. Instead
change this behavior to ignore read/write operations for unimplemented
MSRs
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-06-09 20:53:58 +01:00
Rob Bradford
64b4b7205e
Revert "build: Temporarily disable VFIO, SGX and metrics build steps"
...
This reverts commit d96614fe42 .
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-09 10:30:07 +01:00
dependabot[bot]
4a4352f9d9
build: bump mshv-ioctls from 67e13fa to ae24471
...
Bumps [mshv-ioctls](https://github.com/rust-vmm/mshv ) from `67e13fa` to `ae24471`.
- [Release notes](https://github.com/rust-vmm/mshv/releases )
- [Commits](67e13faa36...ae244716b3 )
---
updated-dependencies:
- dependency-name: mshv-ioctls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-09 08:46:46 +00:00
Sebastien Boeuf
81ba70a497
pci, vmm: Defer mapping VFIO MMIO regions on restore
...
When restoring a VM, the restore codepath will take care of mapping the
MMIO regions based on the information from the snapshot, rather than
having the mapping being performed during device creation.
When the device is created, information such as which BARs contain the
MSI-X tables are missing, preventing to perform the mapping of the MMIO
regions.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
7df7061610
pci, vmm: Add migratable support to vfio-user devices
...
Based on recent changes to VfioUserPciDevice, the vfio-user devices can
now be migrated.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
c021dda267
pci, vmm: Add migratable support to VFIO devices
...
Based on recent changes to VfioPciDevice, the VFIO devices can now be
migrated.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
f48b05eee6
pci: vfio_user: Implement Migratable for VfioUserPciDevice
...
Based on the VfioCommon implementation, the VfioUserPciDevice now
implements the Migratable trait.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
3b59e57001
pci: vfio: Implement Migratable for VfioPciDevice
...
Based on the VfioCommon implementation, the VfioPciDevice now implements
the Migratable trait.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
49069d8474
pci: Implement Migratable for VfioCommon
...
Introduces the common code to handle one aspect of the migration
support. Particularly, the ability to store VMM internal states related
to such device. The internal state of the device will happen later in a
dedicated patchset that will implement the VFIO migration API.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
8eaefa6e8e
pci: msix: Derive Versionize for MsixCap
...
So that we can save and restore the whole structure through snapshot and
restore operations.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Sebastien Boeuf
a1b996ac37
pci: msi: Make MsiCap field public
...
So that it can be accessed during a VM snapshot to store its state.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-09 09:19:58 +02:00
Rob Bradford
4ddc6ffd73
.github: Add missing clippy check with "guest_debug" feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-08 11:40:56 +01:00
Rob Bradford
94fb9f817d
vmm: Fix clippy issues under "guest_debug" feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-08 11:40:56 +01:00
Rob Bradford
133a5a858a
vmm: Pull in gdb dependencies only when building with feature
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-08 11:30:20 +01:00
Jinank Jain
3a18860326
Reapply "Jenkinsfile: Bypass running CI for fuzzer Cargo file changes"
...
This reverts commit 0d0013c46e .
Grovvy shell script execution engine does not like backslash as the
escape character. So we need to put another backslash to escape the
backslash character. This would most likely fix the issue that we saw
with the CI.
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-06-07 07:40:33 +01:00
Rob Bradford
0d0013c46e
Revert "Jenkinsfile: Bypass running CI for fuzzer Cargo file changes"
...
This reverts commit 86d243938e .
Build error:
Obtained Jenkinsfile from 86d243938e
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 311: unexpected char: '\' @ line 311, column 88.
_TARGET}... | grep -v -E 'fuzz\/Cargo.(t
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-06 15:38:18 +01:00
Jinank Jain
86d243938e
Jenkinsfile: Bypass running CI for fuzzer Cargo file changes
...
In order to conserve resources it is better to not run CI, whenever there
are changes only in fuzz/Cargo.toml or fuzz/Cargo.lock.
Fixes #4148
Signed-off-by: Jinank Jain <jinankjain@microsoft.com >
2022-06-06 15:29:19 +01:00
Michael Zhao
a7a15d56dd
aarch64: Move setup_regs to hypervisor
...
`setup_regs` of AArch64 calls KVM sepecific code. Now move it to
`hypervisor` crate.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 11:07:46 +01:00
Sebastien Boeuf
65dc1c83a9
vmm: cpu: Save and restore CPU states during snapshot/restore
...
Based on recent KVM host patches (merged in Linux 5.16), it's forbidden
to call into KVM_SET_CPUID2 after the first successful KVM_RUN returned.
That means saving CPU states during the pause sequence, and restoring
these states during the resume sequence will not work with the current
design starting with kernel version 5.16.
In order to solve this problem, let's simply move the save/restore logic
to the snapshot/restore sequences rather than the pause/resume ones.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-06 11:07:29 +01:00
Sebastien Boeuf
3edaa8adb6
vmm: Ensure restore matches boot sequence
...
The vCPU is created and set after all the devices on a VM's boot.
There's no reason to follow a different order on the restore codepath as
this could cause some unexpected behaviors.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-06-06 11:07:17 +01:00
Michael Zhao
9260c3816e
vmm: Update unit test for GIC refactoring
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
5d45d6d0fb
vmm: Move GIC unit test to hypervisor crate
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
957d3a7443
aarch64: Simplify GIC related structs definition
...
Combined the `GicDevice` struct in `arch` crate and the `Gic` struct in
`devices` crate.
After moving the KVM specific code for GIC in `arch`, a very thin wapper
layer `GicDevice` was left in `arch` crate. It is easy to combine it
with the `Gic` in `devices` crate.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
04949755c0
arch: Switch to new GIC interface
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
b8dbb26647
hypervisor: Refactor save_pending_tables of Vgic
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
3fe7d61a02
hypervisor: Remove some redundant parameters
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
c2862b6947
hypervisor: Move GitV3Its code from arch
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
Michael Zhao
03b01c02cd
hypervisor: Define Vgic trait
...
Defined `Vgic` trait as the hypervisor agnostic interface for a virtual
GIC.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-06-06 10:17:26 +08:00
dependabot[bot]
435d769511
build: bump syn from 1.0.95 to 1.0.96
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.95...1.0.96 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-03 12:15:08 +00:00
dependabot[bot]
9ba6767a90
build: bump pnet from 0.30.0 to 0.31.0
...
Bumps [pnet](https://github.com/libpnet/libpnet ) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.30.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-03 08:59:43 +00:00
dependabot[bot]
3742cc42ae
build: bump syn from 1.0.95 to 1.0.96 in /fuzz
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.95...1.0.96 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-03 01:57:33 +00:00
dependabot[bot]
e0dd2e41c2
build: bump openssl-sys from 0.9.73 to 0.9.74
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.73 to 0.9.74.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.73...openssl-sys-v0.9.74 )
---
updated-dependencies:
- dependency-name: openssl-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-02 09:41:05 +00:00
dependabot[bot]
f1495b5767
build: bump uuid from 1.1.0 to 1.1.1
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.0...1.1.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-02 00:48:36 +00:00
dependabot[bot]
6bd4bdfa26
build: bump uuid from 1.1.0 to 1.1.1 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.1.0...1.1.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-02 00:02:36 +00:00
Rob Bradford
ade3a9c8f6
virtio-devices, vmm: Optimised async virtio device activation
...
In order to ensure that the virtio device thread is spawned from the vmm
thread we use an asynchronous activation mechanism for the virtio
devices. This change optimises that code so that we do not need to
iterate through all virtio devices on the platform in order to find the
one that requires activation. We solve this by creating a separate short
lived VirtioPciDeviceActivator that holds the required state for the
activation (e.g. the clones of the queues) this can then be stored onto
the device manager ready for asynchronous activation.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-06-01 09:42:02 +02:00
dependabot[bot]
15e2763753
build: bump indexmap from 1.8.1 to 1.8.2
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/1.8.2/RELEASES.rst )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.1...1.8.2 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-31 23:58:11 +00:00
dependabot[bot]
8b87b752b5
build: bump indexmap from 1.8.1 to 1.8.2 in /fuzz
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/1.8.2/RELEASES.rst )
- [Commits](https://github.com/bluss/indexmap/compare/1.8.1...1.8.2 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-30 23:55:59 +00:00
dependabot[bot]
7864f91a2b
build: bump libz-sys from 1.1.6 to 1.1.8
...
Bumps [libz-sys](https://github.com/rust-lang/libz-sys ) from 1.1.6 to 1.1.8.
- [Release notes](https://github.com/rust-lang/libz-sys/releases )
- [Commits](https://github.com/rust-lang/libz-sys/commits )
---
updated-dependencies:
- dependency-name: libz-sys
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-30 23:50:20 +00:00
Yi Wang
6ab93a08ec
build: Add GitHub action to build test guest_debug feature
...
Add guest_debug feature test for github workflows.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
fd41892065
tests: Add integration test for coredump
...
As coredump function is to make a vmcore for crash tool to analyze,
in order not to introduce a big thing in integration, we just check
if ch-remote command runs no error report here.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
dbeb922882
doc: add vm coredump support
...
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Yi Wang
0bb2060ca7
ch-remote: add support for coredump
...
Adding the wrapping layer to be able to coredump the guest
from the ch-remote tool.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
8b585b96c1
vmm: enable coredump
...
Based on the newly added guest_debug feature, this patch adds http
endpoint support.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Yi Wang
ccb604e1e1
vmm: add cpu segment note for coredump
...
The crash tool use a special note segment which named 'QEMU' to
analyze kaslr info and so on. If we don't add the 'QEMU' note
segment, crash tool can't find linux version to move on.
For now, the most convenient way is to add 'QEMU' note segment to
make crash tool happy.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
0e65ca4a6c
vmm: save guest memory for coredump
...
Guest memory is needed for analysis in crash tool, so save it
for coredump.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Yi Wang
7e280b6f70
vmm: save elf header for coredump
...
The vmcore file of guest is an elf format, so the first step of coredump
is to save the elf header.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
2022-05-30 13:41:40 +02:00
Yi Wang
90034fd6ba
vmm: add GuestDebuggable trait
...
It's useful to dump the guest, which named coredump so that crash
tool can be used to analysize it when guest hung up.
Let's add GuestDebuggable trait and Coredumpxxx error to support
coredump firstly.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn >
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2022-05-30 13:41:40 +02:00
Rob Bradford
642309f141
deps: Bump version of kvm-ioctls
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 16:36:02 +02:00
Rob Bradford
5da8a1c08e
tests: Use smaller hotplug size for live migration tests
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 11:30:27 +02:00
Rob Bradford
465db7f08c
vmm: config: Remove mergeable option from PmemConfig
...
Fixes : #3968
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:48:49 +02:00
Rob Bradford
55c5961f43
vmm: config: Remove dax & cache_size options from FsConfig
...
Fixes : #3889
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
7c3582b4a8
vmm: config: Fix error message regarding use of cache size without dax
...
The error message incorrectly said that the user was trying to combine
cache_size without dax whereas it is only usuable with dax.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
979797786d
vmm: Remove DAX cache setup for virtio-fs devices
...
Remove the code from the DeviceManager that prepares the DAX cache since
the functionality has now been removed.
Fixes : #3889
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
62120f9afe
tests: Remove testing of virtio-fs DAX cache
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
56c11600db
tests: Rename test_virtio_fs helper
...
This is so we can have a test called test_virtio_fs
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Rob Bradford
f2336413be
tests: Simplify virtiofsd spawning
...
The cache methodology is never changed so it can be hardcoded.
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
2022-05-27 09:47:13 +02:00
Michael Zhao
0fd6521759
aarch64: Avoid depending on layout in GIC code
...
Removing the dependency on `layout` helps moving GIC code into
`hypervisor` crate.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
4a2d3cb4f5
aarch64: Refactor KvmGicV3Its::new()
...
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
3fe20cc09a
aarch64: Remove GicDevice trait
...
`GicDevice` trait was defined for the common part of GicV3 and ITS.
Now that the standalone GicV3 do not exist, `GicDevice` is not needed.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
fd581b1afb
aarch64: Combine the code of GicV3 and GicV3Its
...
Why combine:
- GicV3 is not required alone
- GicV3 and GicV3Its has separate snapshot/pause code. But the code of
GicV3 was never used.
- Reduce the code complexity of GIC related traits and structs.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
Michael Zhao
1e732bf532
aarch64: Remove versionize & versionize_derive
...
Remove the not-mandatory dependencies in gic source code.
Signed-off-by: Michael Zhao <michael.zhao@arm.com >
2022-05-27 10:57:50 +08:00
dependabot[bot]
ad8295e11d
build: bump os_str_bytes from 6.0.1 to 6.1.0
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.0.1...6.1.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-27 00:36:04 +00:00
dependabot[bot]
fe1f0ef49e
build: bump os_str_bytes from 6.0.1 to 6.1.0 in /fuzz
...
Bumps [os_str_bytes](https://github.com/dylni/os_str_bytes ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/dylni/os_str_bytes/releases )
- [Commits](https://github.com/dylni/os_str_bytes/compare/6.0.1...6.1.0 )
---
updated-dependencies:
- dependency-name: os_str_bytes
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 23:48:45 +00:00
dependabot[bot]
f9fcc3722f
build: bump uuid from 1.0.0 to 1.1.0 in /fuzz
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.0.0...1.1.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 01:13:18 +00:00
dependabot[bot]
c0cbaff519
build: bump uuid from 1.0.0 to 1.1.0
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.0.0...1.1.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 00:27:34 +00:00