dependabot-preview[bot]
ac8e4b9cb6
build(deps): bump vm-memory from 8a606cd
to df6207f
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `8a606cd` to `df6207f`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](8a606cd838...df6207f1c0
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 06:49:55 +00:00
dependabot-preview[bot]
45d43f9441
build(deps): bump micro_http from af25399
to 53cf1ba
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `af25399` to `53cf1ba`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](af25399667...53cf1bacad
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 06:49:37 +00:00
dependabot-preview[bot]
91747094ae
build(deps): bump arrayref from 0.3.5 to 0.3.6
...
Bumps [arrayref](https://github.com/droundy/arrayref ) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/droundy/arrayref/releases )
- [Commits](https://github.com/droundy/arrayref/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 08:56:17 +00:00
dependabot-preview[bot]
90810a9691
build(deps): bump micro_http from 1f931c6
to af25399
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `1f931c6` to `af25399`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](1f931c6649...af25399667
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 08:07:15 +00:00
dependabot-preview[bot]
16af54e583
build(deps): bump signal-hook from 0.1.12 to 0.1.13
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.1.12 to 0.1.13.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.1.12...v0.1.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-26 13:29:47 +00:00
dependabot-preview[bot]
4ff972c329
build(deps): bump ssh2 from 0.6.0 to 0.7.1
...
Bumps [ssh2](https://github.com/alexcrichton/ssh2-rs ) from 0.6.0 to 0.7.1.
- [Release notes](https://github.com/alexcrichton/ssh2-rs/releases )
- [Commits](https://github.com/alexcrichton/ssh2-rs/compare/0.6.0...0.7.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-26 01:55:04 +00:00
dependabot-preview[bot]
3508440684
build(deps): bump itoa from 0.4.4 to 0.4.5
...
Bumps [itoa](https://github.com/dtolnay/itoa ) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/dtolnay/itoa/releases )
- [Commits](https://github.com/dtolnay/itoa/compare/0.4.4...0.4.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 00:14:23 +00:00
dependabot-preview[bot]
0ea6406d5b
build(deps): bump vm-memory from beaf215
to 8a606cd
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `beaf215` to `8a606cd`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](beaf215905...8a606cd838
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-24 12:32:16 +00:00
dependabot-preview[bot]
6475052692
build(deps): bump micro_http from 1db1bbd
to 1f931c6
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `1db1bbd` to `1f931c6`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](1db1bbd40d...1f931c6649
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-24 06:47:58 +00:00
Sebastien Boeuf
0042f1de75
ioapic: Rely fully on the InterruptSourceGroup to manage interrupts
...
This commit relies on the interrupt manager and the resulting interrupt
source group to abstract the knowledge about KVM and how interrupts are
updated and delivered.
This allows the entire "devices" crate to be freed from kvm_ioctls and
kvm_bindings dependencies.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-23 11:20:08 +00:00
Sebastien Boeuf
29e668c302
cargo: Update Cargo.lock
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-23 11:20:08 +00:00
Rob Bradford
9fd187c9fe
vhost_user_net: Split launching backend into its own function
...
Split the basic launching functionality into its own function in the
newly added vhost_user_net crate.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-23 10:30:06 +00:00
Rob Bradford
1dd2451895
vhost_user_block: Refactor vhost_user_block backend code into a new crate
...
Extract the majority of the code that provides the vhost-user-block
backend into its own crate and port the binary to use it.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-23 10:30:06 +00:00
Rob Bradford
fb763c4043
vhost_user_net: Refactor vhost_user_net backend code into a new crate
...
Extract the majority of the code that provides the vhost-user-net
backend into its own crate and port the binary to use it.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-23 10:30:06 +00:00
dependabot-preview[bot]
032b8e4c1d
build(deps): bump micro_http from ebc15f2
to 1db1bbd
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `ebc15f2` to `1db1bbd`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](ebc15f2eac...1db1bbd40d
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 06:44:46 +00:00
dependabot-preview[bot]
204f05fdf1
build(deps): bump serde_json from 1.0.44 to 1.0.45
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.44...v1.0.45 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 06:14:06 +00:00
dependabot-preview[bot]
7ee9ecaaf4
build(deps): bump vmm-sys-util from 0.3.1 to 0.4.0
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Changelog](https://github.com/rust-vmm/vmm-sys-util/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-vmm/vmm-sys-util/compare/v0.3.1...v0.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-22 14:10:19 +00:00
dependabot-preview[bot]
503e047c3a
build(deps): bump redox_users from 0.3.3 to 0.3.4
...
Bumps redox_users from 0.3.3 to 0.3.4.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-22 07:39:39 +00:00
Sebastien Boeuf
75e22ff34e
vmm: Use LegacyUserspaceInterruptGroup for serial device
...
This commit replaces the way legacy interrupts were handled with the
brand new implementation of the legacy InterruptSourceGroup for KVM.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-21 10:44:48 +01:00
dependabot-preview[bot]
9fab9bc645
build(deps): bump micro_http from f77960b
to ebc15f2
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `f77960b` to `ebc15f2`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](f77960b81e...ebc15f2eac
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-21 06:54:50 +00:00
dependabot-preview[bot]
9fe6ece262
build(deps): bump redox_users from 0.3.1 to 0.3.3
...
Bumps redox_users from 0.3.1 to 0.3.3.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 21:47:15 +00:00
dependabot-preview[bot]
c27be842e4
build(deps): bump syn from 1.0.13 to 1.0.14
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.13...1.0.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 10:21:53 +00:00
dependabot-preview[bot]
9731be1126
build(deps): bump remain from 0.2.0 to 0.2.1
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.2.0...0.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 08:52:00 +00:00
dependabot-preview[bot]
eedfb36c66
build(deps): bump micro_http from 6327290
to f77960b
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `6327290` to `f77960b`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](6327290424...f77960b81e
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 07:10:42 +00:00
Sebastien Boeuf
8049666eff
vm-virtio: Cleanup from kvm_iotcls and kvm_bindings dependencies
...
Now that KVM specific interrupts are handled through InterruptManager
trait implementation, the vm-virtio crate does not need to rely on
kvm_ioctls and kvm_bindings crates.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sebastien Boeuf
50a4c16d34
pci: Cleanup the crate from kvm_iotcls and kvm_bindings dependencies
...
Now that KVM specific interrupts are handled through InterruptManager
trait implementation, the pci crate does not need to rely on kvm_ioctls
and kvm_bindings crates.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sebastien Boeuf
4bb12a2d8d
interrupt: Reorganize all interrupt management with InterruptManager
...
Based on all the previous changes, we can at this point replace the
entire interrupt management with the implementation of InterruptManager
and InterruptSourceGroup traits.
By using KvmInterruptManager from the DeviceManager, we can provide both
VirtioPciDevice and VfioPciDevice a way to pick the kind of
InterruptSourceGroup they want to create. Because they choose the type
of interrupt to be MSI/MSI-X, they will be given a MsiInterruptGroup.
Both MsixConfig and MsiConfig are responsible for the update of the GSI
routes, which is why, by passing the MsiInterruptGroup to them, they can
still perform the GSI route management without knowing implementation
details. That's where the InterruptSourceGroup is powerful, as it
provides a generic way to manage interrupt, no matter the type of
interrupt and no matter which hypervisor might be in use.
Once the full replacement has been achieved, both SystemAllocator and
KVM specific dependencies can be removed.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sebastien Boeuf
11d4d57c06
vm-device: Introduce InterruptManager and InterruptSourceGroup traits
...
These new traits are meant to abstract the knowledge about the
hypervisor and the type of interrupt being used from the perspective
of the devices.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sebastien Boeuf
2381f32ae0
msix: Add gsi_msi_routes to MsixConfig
...
Because MsixConfig will be responsible for updating KVM GSI routes at
some point, it is necessary that it can access the list of routes
contained by gsi_msi_routes.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sebastien Boeuf
9b60fcdc39
msix: Add VmFd to MsixConfig
...
Because MsixConfig will be responsible for updating the KVM GSI routes
at some point, it must have access to the VmFd to invoke the KVM ioctl
KVM_SET_GSI_ROUTING.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sebastien Boeuf
f77d2c2d16
pci: Add some KVM and interrupt utilities to the crate
...
In order to anticipate the need for both msi.rs and msix.rs to rely on
some KVM utils and InterruptRoute structure to handle the update of the
KVM GSI routes, this commit adds these utilities directly to the pci
crate. So far, these were exclusively used by the vfio crate, which is
why there were located there.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
Sergio Lopez
a14aee9213
qcow: Use RawFile as backend instead of File
...
Use RawFile as backend instead of File. This allows us to abstract
the access to the actual image with a specialized layer, so we have a
place where we can deal with the low-level peculiarities.
Signed-off-by: Sergio Lopez <slp@redhat.com>
2020-01-17 17:28:44 +00:00
dependabot-preview[bot]
1324aa451f
build(deps): bump proc-macro2 from 1.0.7 to 1.0.8
...
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2 ) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases )
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.7...1.0.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-17 06:58:27 +00:00
dependabot-preview[bot]
dcb6d02b98
build(deps): bump micro_http from db75e88
to 6327290
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `db75e88` to `6327290`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](db75e88e9e...6327290424
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-17 06:58:10 +00:00
dependabot-preview[bot]
cde2c4449b
build(deps): bump backtrace from 0.3.41 to 0.3.42
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.41 to 0.3.42.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.41...0.3.42 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-16 10:59:19 +00:00
dependabot-preview[bot]
d8adf6a6d7
build(deps): bump micro_http from 52e21d0
to db75e88
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `52e21d0` to `db75e88`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](52e21d0f9e...db75e88e9e
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-16 06:38:18 +00:00
Rob Bradford
8b500d7873
deps: Bump vm-memory and linux-loader version
...
The function GuestMemory::end_addr() has been renamed to last_addr()
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-15 20:21:22 +01:00
Rob Bradford
7310ab6fa7
devices, vmm: Use a bit field for ACPI GED interrupt type
...
Use independent bits for storing whether there is a CPU or memory device
changed when reporting changes via ACPI GED interrupt. This prevents a
later notification squashing an earlier one and ensure that hotplugging
both CPU and memory at the same time succeeds.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-15 20:21:22 +01:00
dependabot-preview[bot]
281b99af0a
build(deps): bump micro_http from 803c8fa
to 52e21d0
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `803c8fa` to `52e21d0`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](803c8fae14...52e21d0f9e
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-15 07:26:59 +00:00
dependabot-preview[bot]
0acabcdd27
build(deps): bump libssh2-sys from 0.2.13 to 0.2.14
...
Bumps [libssh2-sys](https://github.com/alexcrichton/ssh2-rs ) from 0.2.13 to 0.2.14.
- [Release notes](https://github.com/alexcrichton/ssh2-rs/releases )
- [Commits](https://github.com/alexcrichton/ssh2-rs/compare/libssh2-sys-0.2.13...libssh2-sys-0.2.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-15 07:26:40 +00:00
dependabot-preview[bot]
85f43c7026
build(deps): bump micro_http from edbff4c
to 803c8fa
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `edbff4c` to `803c8fa`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](edbff4ce62...803c8fae14
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-14 06:42:28 +00:00
dependabot-preview[bot]
41895d7df1
build(deps): bump rand from 0.7.2 to 0.7.3
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:24:25 +00:00
dependabot-preview[bot]
85d155543e
build(deps): bump micro_http from 0987cdc
to edbff4c
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `0987cdc` to `edbff4c`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](0987cdc52b...edbff4ce62
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:24:25 +00:00
dependabot-preview[bot]
3430e20f64
build(deps): bump memchr from 2.2.1 to 2.3.0
...
Bumps [memchr](https://github.com/BurntSushi/rust-memchr ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/BurntSushi/rust-memchr/releases )
- [Commits](https://github.com/BurntSushi/rust-memchr/compare/2.2.1...2.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:24:25 +00:00
dependabot-preview[bot]
7d853241ad
build(deps): bump constant_time_eq from 0.1.4 to 0.1.5
...
Bumps [constant_time_eq](https://github.com/cesarb/constant_time_eq ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/cesarb/constant_time_eq/releases )
- [Commits](https://github.com/cesarb/constant_time_eq/compare/0.1.4...0.1.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:24:25 +00:00
dependabot-preview[bot]
fc8bfe07f3
build(deps): bump backtrace from 0.3.40 to 0.3.41
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.40 to 0.3.41.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.40...0.3.41 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:24:25 +00:00
dependabot-preview[bot]
345c922cb9
build(deps): bump micro_http from 0bfaf39
to 0987cdc
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `0bfaf39` to `0987cdc`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](0bfaf39af1...0987cdc52b
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-10 07:18:48 +00:00
dependabot-preview[bot]
b38beb606f
build(deps): bump regex-syntax from 0.6.12 to 0.6.13
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.12 to 0.6.13.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/regex-syntax-0.6.12...regex-syntax-0.6.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 20:55:02 +00:00
dependabot-preview[bot]
9d775a140f
build(deps): bump pnet from 0.23.0 to 0.25.0
...
Bumps [pnet](https://github.com/libpnet/libpnet ) from 0.23.0 to 0.25.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 08:07:19 +00:00
dependabot-preview[bot]
70d80cc064
build(deps): bump pnet_sys from 0.23.0 to 0.23.1
...
Bumps [pnet_sys](https://github.com/libpnet/libpnet ) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 07:33:18 +00:00
dependabot-preview[bot]
f493d434ba
build(deps): bump vm-memory from 467eda6
to 218afdd
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `467eda6` to `218afdd`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](467eda62ae...218afddd4f
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 07:08:08 +00:00
dependabot-preview[bot]
2500d0aaac
build(deps): bump micro_http from 2953365
to 0bfaf39
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `2953365` to `0bfaf39`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](29533658e5...0bfaf39af1
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 07:07:55 +00:00
dependabot-preview[bot]
279c4f91a3
build(deps): bump pnet_macros from 0.23.0 to 0.25.0
...
Bumps [pnet_macros](https://github.com/libpnet/libpnet ) from 0.23.0 to 0.25.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 07:05:53 +00:00
dependabot-preview[bot]
0d2e38db25
build(deps): bump cc from 1.0.49 to 1.0.50
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.49 to 1.0.50.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.49...1.0.50 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-08 17:00:07 +00:00
dependabot-preview[bot]
d756844096
build(deps): bump getrandom from 0.1.13 to 0.1.14
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.13 to 0.1.14.
- [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.1.13...v0.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-07 13:54:27 +00:00
dependabot-preview[bot]
9d3f656572
build(deps): bump cc from 1.0.48 to 1.0.49
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.48...1.0.49 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-07 08:14:13 +00:00
dependabot-preview[bot]
f59665e8aa
build(deps): bump epoll from 4.0.1 to 4.1.0
...
Bumps [epoll](https://github.com/nathansizemore/epoll ) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/nathansizemore/epoll/releases )
- [Commits](https://github.com/nathansizemore/epoll/compare/4.0.1...4.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-07 07:39:59 +00:00
dependabot-preview[bot]
9482ded365
build(deps): bump micro_http from aec25f9
to 2953365
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `aec25f9` to `2953365`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](aec25f9e5a...29533658e5
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-07 07:08:03 +00:00
dependabot-preview[bot]
e4ea60dd96
build(deps): bump rand from 0.7.0 to 0.7.2
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.7.0 to 0.7.2.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.7.0...0.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 08:32:44 +00:00
dependabot-preview[bot]
44dd056647
build(deps): bump remain from 0.1.5 to 0.2.0
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.1.5 to 0.2.0.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.1.5...0.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 08:26:02 +00:00
dependabot-preview[bot]
091c9d9f93
build(deps): bump pnet from 0.22.0 to 0.23.0
...
Bumps [pnet](https://github.com/libpnet/libpnet ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/commits/v0.23.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 07:53:56 +00:00
dependabot-preview[bot]
d8c3912a18
build(deps): bump micro_http from be97831
to aec25f9
...
Bumps [micro_http](https://github.com/firecracker-microvm/firecracker ) from `be97831` to `aec25f9`.
- [Release notes](https://github.com/firecracker-microvm/firecracker/releases )
- [Commits](be978312ea...aec25f9e5a
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 07:26:24 +00:00
dependabot-preview[bot]
1a28f64d5d
build(deps): bump atty from 0.2.13 to 0.2.14
...
Bumps [atty](https://github.com/softprops/atty ) from 0.2.13 to 0.2.14.
- [Release notes](https://github.com/softprops/atty/releases )
- [Changelog](https://github.com/softprops/atty/blob/master/CHANGELOG.md )
- [Commits](https://github.com/softprops/atty/compare/0.2.13...0.2.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 07:26:09 +00:00
dependabot-preview[bot]
8f6cbf849a
build(deps): bump vm-memory from 291dc2e
to 467eda6
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `291dc2e` to `467eda6`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](291dc2e236...467eda62ae
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 07:25:53 +00:00
dependabot-preview[bot]
5a0d01ca13
build(deps): bump blake2b_simd from 0.5.9 to 0.5.10
...
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd ) from 0.5.9 to 0.5.10.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases )
- [Commits](https://github.com/oconnor663/blake2_simd/compare/0.5.9...0.5.10 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-05 09:03:50 +00:00
dependabot-preview[bot]
38c0d328c2
build(deps): bump syn from 1.0.12 to 1.0.13
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.12...1.0.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-03 17:50:44 +00:00
Rob Bradford
b2589d4f3f
vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>>
...
This allows us to change the memory map that is being used by the
devices via an atomic swap (by replacing the map with another one). The
ArcSwap provides the mechanism for atomically swapping from to another
whilst still giving good read performace. It is inside an Arc so that we
can use a single ArcSwap for all users.
Not covered by this change is replacing the GuestMemoryMmap itself.
This change also removes some vertical whitespace from use blocks in the
files that this commit also changed. Vertical whitespace was being used
inconsistently and broke rustfmt's behaviour of ordering the imports as
it would only do it within the block.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-02 13:20:11 +00:00
dependabot-preview[bot]
5c0bb38a65
build(deps): bump vm-memory from 09c119f
to 291dc2e
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `09c119f` to `291dc2e`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](09c119f742...291dc2e236
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-02 08:03:05 +00:00
dependabot-preview[bot]
b9971302be
build(deps): bump syn from 1.0.11 to 1.0.12
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.11...1.0.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-02 08:02:34 +00:00
dependabot-preview[bot]
fda8a04ec2
build(deps): bump vm-memory from 3ef06be
to 09c119f
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `3ef06be` to `09c119f`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](3ef06beaea...09c119f742
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-26 07:07:41 +00:00
dependabot-preview[bot]
34e35c9ae0
build(deps): bump anyhow from 1.0.25 to 1.0.26
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.25 to 1.0.26.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.25...1.0.26 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-24 07:00:35 +00:00
dependabot-preview[bot]
95352db1e5
build(deps): bump vm-memory from ec69de9
to 3ef06be
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `ec69de9` to `3ef06be`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](ec69de9c07...3ef06beaea
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-24 07:00:00 +00:00
dependabot-preview[bot]
bcfe546ea2
build(deps): bump vm-memory from bb29ec8
to ec69de9
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `bb29ec8` to `ec69de9`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](bb29ec8713...ec69de9c07
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-23 07:11:13 +00:00
Sebastien Boeuf
43d2e09e1f
ci: Add unit tests to compare CLI and OpenAPI
...
The goal here is to ensure that CLI and OpenAPI both behave as closely
as possible, and also that they behave as expected.
Leveraging the reorganization of the code, we can now compare two
VmConfig structures generated from one CLI entry on one side, and from
an OpenAPI entry (JSON payload) on the other side.
Fixes #535
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-12-16 16:48:59 +01:00
Sebastien Boeuf
43bd0e53c4
main: Move VmParams creation into a dedicated function
...
This brings more modularity to the code, which will be helpful when we
will later test the CLI and OpenAPI generate the same VmConfig output.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-12-16 16:48:59 +01:00
dependabot-preview[bot]
11750efb78
build(deps): bump log from 0.4.8 to 0.4.10
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.8 to 0.4.10.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.8...0.4.10 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 14:46:05 +00:00
dependabot-preview[bot]
dea5776fb9
build(deps): bump serde from 1.0.103 to 1.0.104
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 08:15:47 +00:00
dependabot-preview[bot]
7909f7a8c9
build(deps): bump serde_derive from 1.0.103 to 1.0.104
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 07:05:03 +00:00
Samuel Ortiz
fa0fdc6500
cargo: Update Cargo.lock for the 0.4.0 release
...
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-12-13 12:21:13 +01:00
dependabot-preview[bot]
a002093a55
build(deps): bump anyhow from 1.0.23 to 1.0.25
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.23 to 1.0.25.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.23...1.0.25 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-13 08:29:30 +01:00
dependabot-preview[bot]
43f0478fa8
build(deps): bump thiserror from 1.0.6 to 1.0.9
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.6 to 1.0.9.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.6...1.0.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-13 06:38:08 +00:00
Samuel Ortiz
664431ff14
vsock: vhost_user: vfio: Fix potential host memory overflow
...
The vsock packets that we're building are resolving guest addresses to
host ones and use the latter as raw pointers.
If the corresponding guest mapped buffer spans across several regions in
the guest, they will do so in the host as well. Since we have no
guarantees that host regions are contiguous, it may lead the VMM into
trying to access memory outside of its memory space.
For now we fix that by ensuring that the guest buffers do not span
across several regions. If they do, we error out.
Ideally, we should enhance the rust-vmm memory model to support safe
acces across host regions.
Fixes CVE-2019-18960
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-12-12 22:15:50 +01:00
Samuel Ortiz
37557c8b35
vmm: vm: Implement the Pausable trait
...
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-12-12 08:50:36 +01:00
Samuel Ortiz
35dd1523c9
vmm: device_manager: Implement the Pausable trait
...
Since the Snapshotable placeholder and Migratable traits are provided as
well, the DeviceManager object and all its objects are now Migratable.
All Migratable devices are tracked as Arc<Mutex<dyn Migratable>>
references.
Keeping track of all migratable devices allows for implementing the
Migratable trait for the DeviceManager structure, making the whole
device model potentially migratable.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-12-12 08:50:36 +01:00
Samuel Ortiz
0361df4ae0
vm-device: Initial Migratable trait
...
The Migratable trait groups all expected capabilities of devices and
components that can be migrated.
For a component to be migrated, it must be able to pause and resume.
Once paused, it should be able to provide a snapshot of itself. It
should also be able to restore itself from a snaphot.
As a consequence, the Migratable trait will be split between the
Pausable and the Snapshotable traits. This commit only adds the
Pausable one.
All migratable devices will be tracked from the DeviceManager.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-12-12 08:50:36 +01:00
Rob Bradford
c61104df47
vmm: Port to latest vmm-sys-util
...
The signal handling for vCPU signals has changed in the latest release
so switch to the new API.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-12-11 14:11:11 +00:00
dependabot-preview[bot]
0374c3dc71
build(deps): bump ssh2 from 0.5.0 to 0.6.0
...
Bumps [ssh2](https://github.com/alexcrichton/ssh2-rs ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/alexcrichton/ssh2-rs/releases )
- [Commits](https://github.com/alexcrichton/ssh2-rs/compare/0.5.0...0.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-09 05:53:30 +00:00
dependabot-preview[bot]
904b1ea599
build(deps): bump unicode-width from 0.1.6 to 0.1.7
...
Bumps [unicode-width](https://github.com/unicode-rs/unicode-width ) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/unicode-rs/unicode-width/releases )
- [Commits](https://github.com/unicode-rs/unicode-width/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-05 23:19:28 +00:00
dependabot-preview[bot]
44d026bfb1
build(deps): bump serde_json from 1.0.43 to 1.0.44
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.43...v1.0.44 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-04 22:53:40 +00:00
dependabot-preview[bot]
a1285ea57d
build(deps): bump cc from 1.0.47 to 1.0.48
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.47...1.0.48 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-04 16:57:32 +00:00
dependabot-preview[bot]
dcfd6ffd4b
build(deps): bump serde_json from 1.0.42 to 1.0.43
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.42...v1.0.43 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-04 11:31:05 +00:00
dependabot-preview[bot]
d378da64ee
build(deps): bump vcpkg from 0.2.7 to 0.2.8
...
Bumps [vcpkg](https://github.com/mcgoo/vcpkg-rs ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/mcgoo/vcpkg-rs/releases )
- [Changelog](https://github.com/mcgoo/vcpkg-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mcgoo/vcpkg-rs/compare/vcpkg-rs-0.2.7...vcpkg-rs-0.2.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 07:50:00 +00:00
dependabot-preview[bot]
b1cfdc761a
build(deps): bump syn from 1.0.9 to 1.0.11
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.9 to 1.0.11.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.9...1.0.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-01 11:33:30 +00:00
Samuel Ortiz
0f21781fbe
cargo: Bump the kvm and vmm-sys-util crates
...
Since the kvm crates now depend on vmm-sys-util, the bump must be
atomic.
The kvm-bindings and ioctls 0.2.0 and 0.4.0 crates come with a few API
changes, one of them being the use of a kvm_ioctls specific error type.
Porting our code to that type makes for a fairly large diff stat.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-11-29 17:48:02 +00:00
dependabot-preview[bot]
ca97385da5
build(deps): bump libc from 0.2.65 to 0.2.66
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.65 to 0.2.66.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.65...0.2.66 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-29 13:00:02 +00:00
dependabot-preview[bot]
f7dace151c
build(deps): bump syn from 1.0.8 to 1.0.9
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.8...1.0.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-29 08:48:13 +00:00
dependabot-preview[bot]
9fd5ea4951
build(deps): bump signal-hook from 0.1.11 to 0.1.12
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.1.11...v0.1.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 21:09:19 +00:00
dependabot-preview[bot]
d6d1074ca3
build(deps): bump serde_derive from 1.0.102 to 1.0.103
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 20:32:53 +00:00
dependabot-preview[bot]
4cff045cc6
build(deps): bump serde_json from 1.0.41 to 1.0.42
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.41...v1.0.42 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 19:54:16 +00:00
dependabot-preview[bot]
0ae9610e09
build(deps): bump serde from 1.0.102 to 1.0.103
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 18:52:45 +00:00
dependabot-preview[bot]
0274b7923b
build(deps): bump signal-hook-registry from 1.1.1 to 1.2.0
...
Bumps [signal-hook-registry](https://github.com/vorner/signal-hook ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/registry-v1.1.1...registry-v1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 17:15:16 +00:00
dependabot-preview[bot]
edd59a0f97
build(deps): bump remain from 0.1.4 to 0.1.5
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.1.4...0.1.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 17:11:41 +00:00
dependabot-preview[bot]
c718225c5f
build(deps): bump openssl-sys from 0.9.52 to 0.9.53
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.52 to 0.9.53.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.52...openssl-sys-v0.9.53 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 17:06:23 +00:00
Sebastien Boeuf
e1fccc3615
vhost_user_fs: Add virtio descriptor helper traits
...
Introduce helpers to split a virtio descriptor into its readable part on
one side, and into its writable part on the other side. This is useful
to separate the request from the reply.
This code has been ported over from crosvm commit
961461350c0b6824e5f20655031bf6c6bf6b7c30.
Two important modifications have been applied to the original code:
- GuestMemory is replaced by GuestMemoryMmap from the vm-memory crate,
which comes with different ways of accessing the memory regions.
- VolatileSlice has different methods, which means the code has been
updated accordingly.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-11-22 22:17:47 +01:00
Sebastien Boeuf
e33ccb0c95
vhost_user_fs: Implement FileSystem trait for Passthrough
...
Add a "passthrough" file system implementation that just forwards its
requests to the appropriate system call.
This code has been ported over from crosvm commit
961461350c0b6824e5f20655031bf6c6bf6b7c30.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-11-22 22:17:47 +01:00
Sebastien Boeuf
cd1684bd2e
vhost_user_fs: Add FUSE definitions
...
To be able to deal with FUSE requests, this commit introduces FUSE
definitions, copied over from the crosvm commit
961461350c0b6824e5f20655031bf6c6bf6b7c30.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-11-22 22:17:47 +01:00
Sebastien Boeuf
03361a6c29
vhost_user_fs: Add new crate
...
This new crate will be dedicated to vhost_user_fs specific code that can
be used as a library from the vhost-user-fs daemon.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-11-22 22:17:47 +01:00
dependabot-preview[bot]
e1281b5488
build(deps): bump cast from 0.2.2 to 0.2.3
...
Bumps [cast](https://github.com/japaric/cast.rs ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/japaric/cast.rs/releases )
- [Changelog](https://github.com/japaric/cast.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/japaric/cast.rs/compare/v0.2.2...v0.2.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 08:43:57 +00:00
dependabot-preview[bot]
fa0d573fef
build(deps): bump arc-swap from 0.4.3 to 0.4.4
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 0.4.3 to 0.4.4.
- [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/v0.4.3...v0.4.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 08:43:17 +00:00
dependabot-preview[bot]
4d0872df5f
build(deps): bump vm-memory from 8d6ca35
to bb29ec8
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `8d6ca35` to `bb29ec8`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](8d6ca3553c...bb29ec8713
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-15 06:35:41 +00:00
dependabot-preview[bot]
2dcd36f2f0
build(deps): bump synstructure from 0.12.2 to 0.12.3
...
Bumps [synstructure](https://github.com/mystor/synstructure ) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/mystor/synstructure/releases )
- [Commits](https://github.com/mystor/synstructure/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-11 19:29:20 +00:00
dependabot-preview[bot]
7b77189c80
build(deps): bump vm-memory from 366a907
to 8d6ca35
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `366a907` to `8d6ca35`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](366a907660...8d6ca3553c
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-11 12:43:48 +00:00
Samuel Ortiz
96aa2441ad
vmm: http: Convert to micro_http HttpServer
...
The new micro_http package provides a built-in HttpServer wrapper for
running a more robust HTTP server based on the package HTTP API.
Switching to this implementation allows us to, among other things,
handle HTTP requests that are larger than 1024 bytes.
Fixes : #423
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-11-10 14:51:55 +01:00
Jose Carlos Venegas Munoz
7498647e3f
cargo: Update micro_http
...
Update micro_http create to allow set content type.
Suggested-by: Samuel Ortiz <sameo@linux.intel.com>
Tested-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2019-11-08 22:49:08 +01:00
dependabot-preview[bot]
fa94635282
build(deps): bump syn from 1.0.7 to 1.0.8
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.7...1.0.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-08 21:18:37 +00:00
Sergio Lopez
5870452d25
src: add vhost-user-blk backend
...
Create a vhost-user-blk backend using vhost-user-backend and following
the conventions established by the existing vhost-user-net
implementation.
This backend is based on https://github.com/slp/vhost-user-backend ,
but a bit simplified, making it closer to the original implementation
in Firecracker. The main features missing are EVENT_IDX, support for
asynchronous I/O and multiqueue, but it's still fully functional and
provides a good starting point for evolving it into a more complete
implementation.
Signed-off-by: Sergio Lopez <slp@redhat.com>
2019-11-07 10:36:30 +00:00
dependabot-preview[bot]
2cc723f77b
build(deps): bump blake2b_simd from 0.5.8 to 0.5.9
...
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd ) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases )
- [Commits](https://github.com/oconnor663/blake2_simd/compare/0.5.8...0.5.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-07 07:40:51 +00:00
dependabot-preview[bot]
d1f03bae84
build(deps): bump pnet_macros from 0.22.0 to 0.23.0
...
Bumps [pnet_macros](https://github.com/libpnet/libpnet ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 14:35:29 +00:00
dependabot-preview[bot]
ae5e8c47ae
build(deps): bump cc from 1.0.46 to 1.0.47
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.46...1.0.47 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 23:58:36 +00:00
dependabot-preview[bot]
8cd45e4ade
build(deps): bump synstructure from 0.12.1 to 0.12.2
...
Bumps [synstructure](https://github.com/mystor/synstructure ) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/mystor/synstructure/releases )
- [Commits](https://github.com/mystor/synstructure/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 23:58:17 +00:00
dependabot-preview[bot]
2d25862477
build(deps): bump pkg-config from 0.3.16 to 0.3.17
...
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs ) from 0.3.16 to 0.3.17.
- [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.16...0.3.17 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-02 16:10:00 +00:00
dependabot-preview[bot]
87e9ce6960
build(deps): bump num_cpus from 1.10.1 to 1.11.0
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.10.1...v1.11.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 14:03:37 +00:00
Sebastien Boeuf
587a420429
cargo: Update to the latest kvm-ioctls version
...
We need to rely on the latest kvm-ioctls version to benefit from the
recent addition of unregister_ioevent(), allowing us to detach a
previously registered eventfd to a PIO or MMIO guest address.
Because of this update, we had to modify the current constraint we had
on the vmm-sys-util crate, using ">= 0.1.1" instead of being strictly
tied to "0.2.0".
Once the dependency conflict resolved, this commit took care of fixing
build issues caused by recent modification of kvm-ioctls relying on
EventFd reference instead of RawFd.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-10-31 09:30:59 +01:00
Samuel Ortiz
3be95dbf93
pci: Remove KVM dependency
...
The PCI crate should not depend on the KVM crates.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-29 20:09:04 -07:00
Sebastien Boeuf
5cc1e73e52
Fix Cargo.lock
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-10-29 16:48:02 +01:00
dependabot-preview[bot]
be6a1975d2
build(deps): bump serde_derive from 1.0.101 to 1.0.102
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 07:34:31 +00:00
dependabot-preview[bot]
f27893f822
build(deps): bump vm-memory from 8669369
to 366a907
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `8669369` to `366a907`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](8669369d17...366a907660
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 07:17:32 +00:00
dependabot-preview[bot]
696f6cae47
build(deps): bump signal-hook from 0.1.10 to 0.1.11
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.1.10...v0.1.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 06:59:16 +00:00
dependabot-preview[bot]
1f7f484f61
build(deps): bump serde from 1.0.101 to 1.0.102
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 06:28:18 +00:00
dependabot-preview[bot]
4e0b5e8a63
build(deps): bump syn from 1.0.6 to 1.0.7
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.6...1.0.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 06:27:34 +00:00
dependabot-preview[bot]
c159515e91
build(deps): bump syn from 1.0.5 to 1.0.6
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.5...1.0.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-27 09:21:34 +00:00
dependabot-preview[bot]
26336363cc
build(deps): bump getrandom from 0.1.12 to 0.1.13
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.12 to 0.1.13.
- [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.1.12...v0.1.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-25 13:03:06 +00:00
Samuel Ortiz
de9eb3e0fa
Bump vmm-sys-utils to 0.2.0
...
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-23 11:35:11 +03:00
dependabot-preview[bot]
dc951af167
build(deps): bump c2-chacha from 0.2.2 to 0.2.3
...
Bumps [c2-chacha](https://github.com/cryptocorrosion/cryptocorrosion ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/cryptocorrosion/cryptocorrosion/releases )
- [Commits](https://github.com/cryptocorrosion/cryptocorrosion/compare/c2-chacha-0.2.2...c2-chacha-0.2.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 17:44:17 +00:00
dependabot-preview[bot]
3dff551399
build(deps): bump ppv-lite86 from 0.2.5 to 0.2.6
...
Bumps [ppv-lite86](https://github.com/cryptocorrosion/cryptocorrosion ) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/cryptocorrosion/cryptocorrosion/releases )
- [Commits](https://github.com/cryptocorrosion/cryptocorrosion/compare/ppv-lite86-0.2.5...ppv-lite86-0.2.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 17:10:47 +00:00
dependabot-preview[bot]
4783fe7402
build(deps): bump autocfg from 0.1.6 to 0.1.7
...
Bumps [autocfg](https://github.com/cuviper/autocfg ) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/cuviper/autocfg/releases )
- [Commits](https://github.com/cuviper/autocfg/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 04:26:47 +00:00
dependabot-preview[bot]
e10413b96c
build(deps): bump proc-macro2 from 1.0.5 to 1.0.6
...
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2 ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases )
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.5...1.0.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-20 14:30:54 +00:00
dependabot-preview[bot]
317d754946
build(deps): bump ssh2 from 0.4.0 to 0.5.0
...
Bumps [ssh2](https://github.com/alexcrichton/ssh2-rs ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/alexcrichton/ssh2-rs/releases )
- [Commits](https://github.com/alexcrichton/ssh2-rs/compare/0.4.0...0.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-20 14:30:18 +00:00
dependabot-preview[bot]
eff1ece368
build(deps): bump openssl-sys from 0.9.51 to 0.9.52
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.51 to 0.9.52.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.51...openssl-sys-v0.9.52 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-20 14:30:02 +00:00
dependabot-preview[bot]
2d7bfdd920
build(deps): bump libc from 0.2.64 to 0.2.65
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.64 to 0.2.65.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.64...0.2.65 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-18 08:53:20 +00:00
dependabot-preview[bot]
2b60452195
build(deps): bump backtrace from 0.3.39 to 0.3.40
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.39 to 0.3.40.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.39...0.3.40 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-17 22:53:26 +00:00
dependabot-preview[bot]
e8a25c22f6
build(deps): bump backtrace from 0.3.38 to 0.3.39
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.38 to 0.3.39.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.38...0.3.39 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-17 19:14:34 +00:00
dependabot-preview[bot]
b8be1dc24a
build(deps): bump backtrace-sys from 0.1.31 to 0.1.32
...
Bumps [backtrace-sys](https://github.com/alexcrichton/backtrace-rs ) from 0.1.31 to 0.1.32.
- [Release notes](https://github.com/alexcrichton/backtrace-rs/releases )
- [Commits](https://github.com/alexcrichton/backtrace-rs/compare/backtrace-sys-0.1.31...backtrace-sys-0.1.32 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-17 18:40:05 +00:00
dependabot-preview[bot]
83631599a3
build(deps): bump cc from 1.0.45 to 1.0.46
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.45 to 1.0.46.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.45...1.0.46 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-17 06:37:13 +00:00
Sebastien Boeuf
c65ead5de8
vm-virtio: Trigger external map/unmap from virtio-iommu
...
This patch relies on the trait implementation provided for each device
which requires some sort of external update based on a map or unmap.
Whenever a MAP or UNMAP request comes through the virtqueues, it
triggers a call to the external mapping trait with map()/unmap()
functions being invoked.
Those external mappings are meant to be used from VFIO and vhost-user
devices as they need to update their own mappings. In case of VFIO, the
goal is to update the DMAR table in the physical IOMMU, while vhost-user
devices needs to update their internal representation of the virtqueues.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-10-16 07:27:06 +02:00
Sebastien Boeuf
837bcbc6ba
vfio: Create VFIO implementation of ExternalDmaMapping
...
With this implementation of the trait ExternalDmaMapping, we now have
the tool to provide to the virtual IOMMU to trigger the map/unmap on
behalf of the guest.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-10-16 07:27:06 +02:00
Sebastien Boeuf
34bb31791b
vm-device: Add new crate for virtio and VFIO agnostic traits
...
The new crate vm-device is created here to host the definitions of
traits not meant to be tied to virtio of VFIO specifically. We need to
add a new trait to update external DMA mappings for devices, which is
why the vm-device crate is the right fit for this.
We can expect this crate to be extended later once the design gets
approved from a rust-vmm perspective.
In this specific use case, we can have some devices like VFIO or
vhost-user ones requiring to be notified about mapping updates. This
new trait ExternalDmaMapping will allow such devices to implement their
own way to handle such event.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-10-16 07:27:06 +02:00
dependabot-preview[bot]
3bb51d4d5e
build(deps): bump libc from 0.2.62 to 0.2.64
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.62 to 0.2.64.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.62...0.2.64 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 19:46:54 +00:00
dependabot-preview[bot]
9e78c2e686
build(deps): bump ryu from 1.0.1 to 1.0.2
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.1...1.0.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 05:16:47 +00:00
dependabot-preview[bot]
90d1083bda
build(deps): bump syn from 1.0.3 to 1.0.5
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.3 to 1.0.5.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.3...1.0.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 11:25:01 +02:00
dependabot-preview[bot]
5ca068a068
build(deps): bump proc-macro2 from 1.0.1 to 1.0.5
...
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2 ) from 1.0.1 to 1.0.5.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases )
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.1...1.0.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 09:23:47 +00:00
dependabot-preview[bot]
ef090cf37d
build(deps): bump ryu from 1.0.0 to 1.0.1
...
Bumps [ryu](https://github.com/dtolnay/ryu ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dtolnay/ryu/releases )
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.0...1.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-12 09:33:07 +01:00
dependabot-preview[bot]
db3ece8ef2
build(deps): bump failure from 0.1.5 to 0.1.6
...
Bumps [failure](https://github.com/rust-lang-nursery/failure ) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/rust-lang-nursery/failure/releases )
- [Changelog](https://github.com/rust-lang-nursery/failure/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-lang-nursery/failure/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-12 08:32:38 +00:00
Samuel Ortiz
8e018d6feb
vfio: Move vfio-bindings to crates.io
...
And remove our local vfio-bindings code.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-10 10:32:40 +02:00
Samuel Ortiz
c446b9d510
Cargo: Move virtio-bindings to crates.io
...
v0.1.0 was just published.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-10 10:32:40 +02:00
dependabot-preview[bot]
6df7cd0e4b
build(deps): bump openssl-sys from 0.9.50 to 0.9.51
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.50 to 0.9.51.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.50...openssl-sys-v0.9.51 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-10 07:44:14 +00:00
dependabot-preview[bot]
3a04db5936
build(deps): bump arrayvec from 0.4.11 to 0.4.12
...
Bumps [arrayvec](https://github.com/bluss/arrayvec ) from 0.4.11 to 0.4.12.
- [Release notes](https://github.com/bluss/arrayvec/releases )
- [Commits](https://github.com/bluss/arrayvec/compare/0.4.11...0.4.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-10 01:04:35 +00:00
dependabot-preview[bot]
ad7d02cd74
build(deps): bump nodrop from 0.1.13 to 0.1.14
...
Bumps [nodrop](https://github.com/bluss/arrayvec ) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/bluss/arrayvec/releases )
- [Commits](https://github.com/bluss/arrayvec/compare/nodrop-0.1.13...nodrop-0.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-09 15:12:04 +00:00
Samuel Ortiz
14eb071b29
Cargo: Move to crates.io vmm-sys-util
...
Use the newly published 0.1.1 version.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-08 07:28:53 -07:00
Samuel Ortiz
8288cb2ac8
micro_http: Use Firecracker version
...
As of commit 2b94334a, Firecracker includes all the changes we need.
We can now switch to using it instead of carrying a copy.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-04 06:52:34 -07:00
Samuel Ortiz
f674019ea1
vmm: {De}serialize VmConfig
...
We use the serde crate to serialize and deserialize the VmVConfig
structure. This structure will be passed from the HTTP API caller as a
JSON payload and we need to deserialize it into a VmConfig.
For a convenient use of the HTTP API, we also provide Default traits
implementations for some of the VmConfig fields (vCPUs, memory, etc...).
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-04 09:36:33 +02:00
Samuel Ortiz
2371325f9c
vmm: api: Add HTTP server
...
The Cloud Hyper HTTP server runs a synchronous, multi-threaded
loop that receives HTTP requests and tries to call the corresponding
endpoint handlers for the requests URIs.
An endpoint handler will parse the HTTP request and potentially
translate it into and IPC request. The handler holds an notifier and an
mspc Sender for respectively notifying and sending the IPC payload to
the VMM API server. The handler then waits for an API server response
and translate it back into an HTTP response.
The HTTP server is responsible for sending the reponse back to the
caller.
The HTTP server uses a static routes hash table that maps URIs to
endpoint handlers.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-10-04 09:36:33 +02:00
dependabot-preview[bot]
1b66a2fa60
build(deps): bump serde_json from 1.0.40 to 1.0.41
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.40...v1.0.41 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-03 22:06:24 +00:00
dependabot-preview[bot]
47367eb61b
build(deps): bump openssl-sys from 0.9.49 to 0.9.50
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.49 to 0.9.50.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.49...openssl-sys-v0.9.50 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-03 09:06:31 +00:00
Cathy Zhang
f6d1a9d9b8
src: Add vhost-user-net backend
...
Create vhost-user-net backend with Tap interface, to offload network
transaction from cloud-hypervisor. The goal is to provide flexibility
about the backend being in use, but also more security as it will allow
users to isolate the backend with different security profiles since it
will run as a dedicated process on the host.
Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-09-30 13:06:00 -07:00
Samuel Ortiz
8188074300
main: Start the VMM thread
...
We now start the main VMM thread, which will be listening for VM and IPC
related events.
In order to start the configured VM, we no longer directly call the VM
API but we use the IPC instead, to first create and then start a VM.
Fixes : #303
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-09-26 16:21:14 +02:00
dependabot-preview[bot]
e869283b4e
build(deps): bump cfg-if from 0.1.9 to 0.1.10
...
Bumps [cfg-if](https://github.com/alexcrichton/cfg-if ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/alexcrichton/cfg-if/releases )
- [Commits](https://github.com/alexcrichton/cfg-if/compare/0.1.9...0.1.10 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-24 20:30:43 +00:00
dependabot-preview[bot]
dbff0e94b8
build(deps): bump backtrace from 0.3.37 to 0.3.38
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.37 to 0.3.38.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.37...0.3.38 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 20:08:09 +00:00
dependabot-preview[bot]
a2f3da3488
build(deps): bump arc-swap from 0.4.2 to 0.4.3
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 0.4.2 to 0.4.3.
- [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/v0.4.2...v0.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-21 08:11:43 +00:00
Sebastien Boeuf
0a0c7358a2
virtio-bindings: Rely on the upstream crate from rust-vmm
...
Now that virtio-bindings is a crate part of the rust-vmm project, we
want to rely on this one instead of the local one we had so far.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-09-19 07:13:54 -07:00
dependabot-preview[bot]
bf4f3db6c4
build(deps): bump vmm-sys-util from 07ef2e2
to 27e7ff1
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `07ef2e2` to `27e7ff1`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](07ef2e280e...27e7ff14d6
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-18 11:48:09 +00:00
dependabot-preview[bot]
67ef4f0d74
build(deps): bump linux-loader from b270081
to 6cf23a8
...
Bumps [linux-loader](https://github.com/rust-vmm/linux-loader ) from `b270081` to `6cf23a8`.
- [Release notes](https://github.com/rust-vmm/linux-loader/releases )
- [Commits](b2700818ad...6cf23a8bca
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 07:50:59 +00:00
Rob Bradford
3567206059
build, tests: Update to ssh2 0.4.0
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-09-16 13:21:48 +01:00
dependabot-preview[bot]
ea7f4d7f0b
build(deps): bump serde from 1.0.100 to 1.0.101
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 11:47:24 +00:00
dependabot-preview[bot]
c0fede0774
build(deps): bump libssh2-sys from 0.2.11 to 0.2.12
...
Bumps [libssh2-sys](https://github.com/alexcrichton/ssh2-rs ) from 0.2.11 to 0.2.12.
- [Release notes](https://github.com/alexcrichton/ssh2-rs/releases )
- [Commits](https://github.com/alexcrichton/ssh2-rs/compare/libssh2-sys-0.2.11...libssh2-sys-0.2.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 11:47:12 +00:00
dependabot-preview[bot]
c00b58de9b
build(deps): bump pkg-config from 0.3.15 to 0.3.16
...
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs ) from 0.3.15 to 0.3.16.
- [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.15...0.3.16 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 12:48:05 +00:00
dependabot-preview[bot]
5f752dade7
build(deps): bump serde from 1.0.99 to 1.0.100
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 08:17:00 +00:00
dependabot-preview[bot]
8e7d67fcfe
build(deps): bump vmm-sys-util from 8703cfd
to 07ef2e2
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `8703cfd` to `07ef2e2`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](8703cfd427...07ef2e280e
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 08:16:31 +00:00
dependabot-preview[bot]
b515d48eca
build(deps): bump cc from 1.0.42 to 1.0.45
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.42 to 1.0.45.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.42...1.0.45 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 08:15:49 +00:00
dependabot-preview[bot]
f740a3568d
build(deps): bump getrandom from 0.1.11 to 0.1.12
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.11 to 0.1.12.
- [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.1.11...v0.1.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-06 14:07:55 +00:00
dependabot-preview[bot]
e21bc972b0
build(deps): bump vmm-sys-util from fd4dcd1
to 8703cfd
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `fd4dcd1` to `8703cfd`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](fd4dcd172e...8703cfd427
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-06 06:37:14 +00:00
dependabot-preview[bot]
d446a8217a
build(deps): bump blake2b_simd from 0.5.7 to 0.5.8
...
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd ) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases )
- [Commits](https://github.com/oconnor663/blake2_simd/compare/0.5.7...0.5.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-05 18:41:53 +00:00
dependabot-preview[bot]
2432ad07ea
build(deps): bump cc from 1.0.41 to 1.0.42
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.41...1.0.42 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-05 16:41:42 +00:00
dependabot-preview[bot]
037807f949
build(deps): bump backtrace from 0.3.36 to 0.3.37
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.36 to 0.3.37.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.36...0.3.37 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-04 20:41:39 +00:00
dependabot-preview[bot]
47ca277690
build(deps): bump backtrace from 0.3.35 to 0.3.36
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.35 to 0.3.36.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.35...0.3.36 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-04 16:53:46 +00:00
dependabot-preview[bot]
7ce0db90f0
build(deps): bump regex-syntax from 0.6.11 to 0.6.12
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.11 to 0.6.12.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/regex-syntax-0.6.11...regex-syntax-0.6.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-03 17:24:30 +00:00
Rob Bradford
ee83c2d44e
arch: x86_64: Generate basic ACPI tables
...
Generate very basic ACPI tables for HW reduced ACPI.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-09-03 19:18:49 +02:00
Rob Bradford
eea6f1dc9e
acpi_tables: Add initial ACPI tables support
...
Add a revision 2 RSDP table only supporting an XSDT along with support
for creating generic SDT based tables.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-09-03 19:18:49 +02:00
Samuel Ortiz
8718043dfc
cloud-hypervisor: Bump vmm-sys-util crate version
...
Bump from 829d605 to fd4dcd1.
PR #225 failed because we were still using the vmm-sys-util logging
macros and the crate's syslog module got removed.
This one relies on the previous commit switching to using the
log crate macros instead.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-09-02 15:07:42 +02:00
dependabot-preview[bot]
ce60ff16c4
build(deps): bump vmm-sys-util from a0b3893
to 829d605
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `a0b3893` to `829d605`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](a0b3893a40...829d605a07
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 11:35:54 +00:00
dependabot-preview[bot]
3dd329052c
build(deps): bump vmm-sys-util from 2177381
to a0b3893
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `2177381` to `a0b3893`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](2177381ed6...a0b3893a40
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 07:59:39 +00:00
dependabot-preview[bot]
18a8bb0072
build(deps): bump vmm-sys-util from 7222869
to 2177381
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `7222869` to `2177381`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](7222869ed3...2177381ed6
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-28 11:35:54 +00:00
dependabot-preview[bot]
151637b647
build(deps): bump cc from 1.0.40 to 1.0.41
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.40...1.0.41 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-28 01:13:15 +00:00
dependabot-preview[bot]
c316c161a6
build(deps): bump vm-memory from 1635f25
to 8669369
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `1635f25` to `8669369`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](1635f25afc...8669369d17
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 12:48:10 +00:00
dependabot-preview[bot]
808fcaa43b
build(deps): bump lazy_static from 1.3.0 to 1.4.0
...
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases )
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/compare/1.3.0...1.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 13:30:59 +00:00
dependabot-preview[bot]
bc87c9f19b
build(deps): bump kvm-ioctls from 37669f6
to 30adb02
...
Bumps [kvm-ioctls](https://github.com/rust-vmm/kvm-ioctls ) from `37669f6` to `30adb02`.
- [Release notes](https://github.com/rust-vmm/kvm-ioctls/releases )
- [Commits](37669f60a0...30adb02158
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 13:30:36 +00:00
dependabot-preview[bot]
66a7a94a12
build(deps): bump getrandom from 0.1.10 to 0.1.11
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.10 to 0.1.11.
- [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.1.10...v0.1.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-25 18:03:45 +00:00
dependabot-preview[bot]
582fc7f989
build(deps): bump constant_time_eq from 0.1.3 to 0.1.4
...
Bumps [constant_time_eq](https://github.com/cesarb/constant_time_eq ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/cesarb/constant_time_eq/releases )
- [Commits](https://github.com/cesarb/constant_time_eq/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-21 08:33:30 +00:00
dependabot-preview[bot]
aface5bca2
build(deps): bump unicode-width from 0.1.5 to 0.1.6
...
Bumps [unicode-width](https://github.com/unicode-rs/unicode-width ) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/unicode-rs/unicode-width/releases )
- [Commits](https://github.com/unicode-rs/unicode-width/commits/0.1.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-21 07:40:27 +00:00
dependabot-preview[bot]
b528e99b18
build(deps): bump backtrace from 0.3.34 to 0.3.35
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.34 to 0.3.35.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.34...0.3.35 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-20 11:14:36 +00:00
dependabot-preview[bot]
e84179994e
build(deps): bump blake2b_simd from 0.5.6 to 0.5.7
...
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases )
- [Commits](https://github.com/oconnor663/blake2_simd/compare/0.5.6...0.5.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-20 10:55:39 +00:00
dependabot-preview[bot]
1d9ad9e7b0
build(deps): bump autocfg from 0.1.5 to 0.1.6
...
Bumps [autocfg](https://github.com/cuviper/autocfg ) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/cuviper/autocfg/releases )
- [Commits](https://github.com/cuviper/autocfg/compare/0.1.5...0.1.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-20 10:55:23 +00:00
dependabot-preview[bot]
55f01b2180
build(deps): bump remain from 0.1.3 to 0.1.4
...
Bumps [remain](https://github.com/dtolnay/remain ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/dtolnay/remain/releases )
- [Commits](https://github.com/dtolnay/remain/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 10:18:09 +00:00
dependabot-preview[bot]
49a129f3d3
build(deps): bump serde from 1.0.98 to 1.0.99
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 10:17:57 +00:00
dependabot-preview[bot]
1c23a09cc6
build(deps): bump getrandom from 0.1.9 to 0.1.10
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.9 to 0.1.10.
- [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.1.9...v0.1.10 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 10:17:45 +00:00
dependabot-preview[bot]
7245cf7c5e
build(deps): bump rust-argon2 from 0.5.0 to 0.5.1
...
Bumps [rust-argon2](https://github.com/sru-systems/rust-argon2 ) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/sru-systems/rust-argon2/releases )
- [Changelog](https://github.com/sru-systems/rust-argon2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sru-systems/rust-argon2/compare/0.5.0...0.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-16 07:49:03 +00:00
dependabot-preview[bot]
7adb9d55ec
build(deps): bump libc from 0.2.61 to 0.2.62
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.61 to 0.2.62.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.61...0.2.62 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-16 07:22:34 +00:00
dependabot-preview[bot]
760791abbe
build(deps): bump openssl-sys from 0.9.48 to 0.9.49
...
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl ) from 0.9.48 to 0.9.49.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.48...openssl-sys-v0.9.49 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-16 06:54:47 +00:00
dependabot-preview[bot]
7b718f3029
build(deps): bump vmm-sys-util from 5f8c251
to 7222869
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `5f8c251` to `7222869`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](5f8c251355...7222869ed3
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-16 06:54:23 +00:00
dependabot-preview[bot]
10abfd4448
build(deps): bump vmm-sys-util from 54e256b
to 5f8c251
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `54e256b` to `5f8c251`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](54e256b2cb...5f8c251355
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-15 09:34:46 +00:00
dependabot-preview[bot]
6678cbfb79
build(deps): bump getrandom from 0.1.8 to 0.1.9
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.1.8...v0.1.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-15 08:44:23 +00:00
Rob Bradford
513d2fdcf6
arch: x86_64: Update linux-loader crate
...
The linux-loader crate has been updated with a regnerated bootparams.rs
which has changed the API slightly. Update to the latest linux-loader
and adapt the code to reflect the changes:
* e820_map is renamed to e820_table (and all similar variables updated)
* e820entry is renamed to boot_e820_entry
* The E820 type constants are not no longer included
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-08-15 10:42:44 +02:00
dependabot-preview[bot]
0d53a5890d
build(deps): bump rustc-demangle from 0.1.15 to 0.1.16
...
Bumps [rustc-demangle](https://github.com/alexcrichton/rustc-demangle ) from 0.1.15 to 0.1.16.
- [Release notes](https://github.com/alexcrichton/rustc-demangle/releases )
- [Commits](https://github.com/alexcrichton/rustc-demangle/compare/0.1.15...0.1.16 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-14 08:12:28 +00:00
dependabot-preview[bot]
4b3fd906f7
build(deps): bump cc from 1.0.38 to 1.0.40
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.38 to 1.0.40.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.38...1.0.40 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-13 07:43:10 +00:00
dependabot-preview[bot]
bc5b72ff73
build(deps): bump libc from 0.2.60 to 0.2.61
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.60 to 0.2.61.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.60...0.2.61 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-13 07:21:11 +00:00
dependabot-preview[bot]
b608671031
build(deps): bump syn from 0.15.43 to 0.15.44
...
Bumps [syn](https://github.com/dtolnay/syn ) from 0.15.43 to 0.15.44.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/0.15.43...0.15.44 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-12 11:07:32 +00:00
dependabot-preview[bot]
97c964891c
build(deps): bump arc-swap from 0.4.1 to 0.4.2
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 0.4.1 to 0.4.2.
- [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/v0.4.1...v0.4.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-12 11:07:05 +00:00
fazlamehrab
df5058ec0a
vm-virtio: Implement console size config feature
...
One of the features of the virtio console device is its size can be
configured and updated. Our first iteration of the console device
implementation is lack of this feature. As a result, it had a
default fixed size which could not be changed. This commit implements
the console config feature and lets us change the console size from
the vmm side.
During the activation of the device, vmm reads the current terminal
size, sets the console configuration accordinly, and lets the driver
know about this configuration by sending an interrupt. Later, if
someone changes the terminal size, the vmm detects the corresponding
event, updates the configuration, and sends interrupt as before. As a
result, the console device driver, in the guest, updates the console
size.
Signed-off-by: A K M Fazla Mehrab <fazla.mehrab.akm@intel.com>
2019-08-09 13:55:43 -07:00
dependabot-preview[bot]
4c9759e4fc
build(deps): bump syn from 0.15.42 to 0.15.43
...
Bumps [syn](https://github.com/dtolnay/syn ) from 0.15.42 to 0.15.43.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/0.15.42...0.15.43 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 07:33:38 +00:00
dependabot-preview[bot]
b7ed71b012
build(deps): bump vmm-sys-util from 9014b7a
to 54e256b
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `9014b7a` to `54e256b`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](9014b7ab94...54e256b2cb
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 07:13:38 +00:00
dependabot-preview[bot]
8fcaf91d3b
build(deps): bump redox_users from 0.3.0 to 0.3.1
...
Bumps redox_users from 0.3.0 to 0.3.1.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 07:11:11 +00:00
Rob Bradford
fca911e5f3
main: Add logging support controlled by command line
...
This makes the log macros (error!, warn!, info!, etc) in the code work.
It currently defaults to showing only error! messages, but by passing an
increasing number of "-v"s on the command line the verbosity can be
increased.
By default log output goes onto stderr but it can also be sent to a
file.
Fixes : #121
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-08-07 15:48:17 +01:00
dependabot-preview[bot]
6cc3e88742
build(deps): bump getrandom from 0.1.7 to 0.1.8
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.1.7 to 0.1.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.1.7...v0.1.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-06 07:22:10 +00:00
dependabot-preview[bot]
d1cd3c89c6
build(deps): bump vmm-sys-util from c0bbae5
to 9014b7a
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `c0bbae5` to `9014b7a`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](c0bbae555d...9014b7ab94
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-06 07:21:55 +00:00
dependabot-preview[bot]
91c7f271b3
build(deps): bump utf8-ranges from 1.0.3 to 1.0.4
...
Bumps [utf8-ranges](https://github.com/BurntSushi/utf8-ranges ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/BurntSushi/utf8-ranges/releases )
- [Commits](https://github.com/BurntSushi/utf8-ranges/compare/1.0.3...1.0.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-05 10:45:55 +00:00
dependabot-preview[bot]
87f148cbff
build(deps): bump regex-syntax from 0.6.10 to 0.6.11
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.10 to 0.6.11.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/regex-syntax-0.6.10...regex-syntax-0.6.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-05 10:32:31 +00:00
dependabot-preview[bot]
778c60f21d
build(deps): bump vmm-sys-util from 71b5b25
to c0bbae5
...
Bumps [vmm-sys-util](https://github.com/rust-vmm/vmm-sys-util ) from `71b5b25` to `c0bbae5`.
- [Release notes](https://github.com/rust-vmm/vmm-sys-util/releases )
- [Commits](71b5b25dd5...c0bbae555d
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-05 10:31:17 +00:00
Rob Bradford
9caad7394d
build, misc: Bump vmm-sys-util dependency
...
The structure of the vmm-sys-util crate has changed with lots of code
moving to submodules.
This change adjusts the use of the imported structs to reference the
submodules.
Fixes : #145
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-08-02 07:42:20 -07:00
Rob Bradford
ac950d9a97
build: Bulk update dependencies
...
Update all dependencies with "cargo upgrade" with the exception of
vmm-sys-utils which needs some extra porting work.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-08-02 15:22:37 +02:00
dependabot-preview[bot]
0c9547618a
build(deps): bump vm-memory from 4c329f4
to 1635f25
...
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory ) from `4c329f4` to `1635f25`.
- [Release notes](https://github.com/rust-vmm/vm-memory/releases )
- [Commits](4c329f4e76...1635f25afc
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-02 09:59:46 +00:00
dependabot-preview[bot]
6abd50f4b1
build(deps): bump clap from 2.27.1 to 2.33.0
...
Bumps [clap](https://github.com/clap-rs/clap ) from 2.27.1 to 2.33.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-02 08:35:38 +00:00
dependabot-preview[bot]
c7f8498571
build(deps): bump log from 0.4.6 to 0.4.8
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.6 to 0.4.8.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-02 08:22:44 +00:00
dependabot-preview[bot]
8a7cfe8ec4
build(deps): bump dirs from 2.0.1 to 2.0.2
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-02 08:21:19 +00:00
Samuel Ortiz
4d16ca8ae7
vmm: Support direct device assignment
...
With the VFIO crate, we can now support directly assigned PCI devices
into cloud-hypervisor guests.
We support assigning multiple host devices, through the --device command
line parameter. This parameter takes the host device sysfs path.
Fixes : #60
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-07-24 11:55:08 +02:00
Sebastien Boeuf
c93d5361b8
vfio: pci: Build the KVM routes
...
We track all MSI and MSI-X capabilities changes, which allows us to also
track all MSI and MSI-X table changes.
With both pieces of information we can build kvm irq routing tables and
map the physical device MSI/X vectors to the guest ones. Once that
mapping is in place we can toggle the VFIO IRQ API accordingly and
enable disable MSI or MSI-X interrupts, from the physical device up to
the guest.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-07-24 11:55:08 +02:00
fazlamehrab
577d44c8eb
vm-virtio: Add virtio console device for single port operation
...
The virtio console device is a console for the communication between
the host and guest userspace. It has two parts: the device and the
driver. The console device is implemented here as a virtio-pci device
to the guest. On the other side, the guest OS expected to have a
character device driver which provides an interface to the userspace
applications.
The console device can have multiple ports where each port has one
transmit queue and one receive queue. The current implementation only
supports one port. For data IO communication, one or more empty
buffers are placed in the receive queue for incoming data, and
outgoing characters are placed in the transmit queue. Details spec
can be found from the following link.
https://docs.oasis-open.org/virtio/virtio/v1.1/csprd01/virtio-v1.1-csprd01.pdf#e7
Apart from the console, for the communication between guest and host,
the Cloud Hypervisor has a legacy serial device implemented. However,
the implementation of a console device lets us be independent of legacy
pin-based interrupts without losing the logs and access to the VM.
Signed-off-by: A K M Fazla Mehrab <fazla.mehrab.akm@intel.com>
2019-07-22 23:08:56 +01:00
Rob Bradford
80f33113cb
tests: Use incrementing IP and mac address for VMs
...
This allows us to test multiple VMs at once.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-07-18 18:01:18 +02:00
Rob Bradford
7ebfe90985
tests: Use a temporary directory for the temporary test files
...
Use the tempdir crate to create a temporary directory that is deleted
when the structure goes out of scope.
Use this temporary directory for all temporary test files created by the
tests. The cloud init file is still in /tmp as that is created by the
test wrapper code.
This is the first stage towards being able to run the integration tests
in parallel.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-07-18 18:01:18 +02:00
Rob Bradford
78fe807284
build: Run unit tests on the Jenkins server
...
The addition of [workspace] to the top level Cargo.toml is necessary to
have the binaries colocated together.
The Cargo.lock files have also been refreshed by the change to the
Cargo.toml.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-07-16 17:09:05 +02:00
Sebastien Boeuf
1ddc8f2f0d
vm-virtio: Add vhost-user-fs support
...
The vhost-user-fs or virtio-fs device allows files and directories to
be shared between host and guest. This patch adds the implementation
of this device to the cloud-hypervisor device model.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-06-27 21:46:00 +02:00
Jing Liu
30266a41be
vm-memory usage: vm-memory latest codes rename MmapError to Error
...
Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
2019-06-26 08:33:46 -07:00
Sebastien Boeuf
5e803ab18f
vmm: Integrate userspace IOAPIC
...
The previous commit introduced a userspace implementation of an IOAPIC
and this commits aims to plumb it into the cloud-hypervisor VMM.
Here is the list of new things brought by this patch:
- Update the rust-vmm/kvm-ioctls dependency to benefit from latest
patches including the support for split irqchip, and the vector
being returned when a VM exit is caused by an EOI.
- Enable the split irqchip (which means no IOAPIC or PIC is emulated
in kernel). This is done conditionally based on the support of the
TSC_DEADLINE_TIMER from both KVM and the underlying CPU. The
dependency on TSC_DEADLINE_TIMER is related to KVM which does not
support creating the in kernel PIT if it has a split irqchip.
- Rely on callbacks to handle the following use cases:
- in kernel IOAPIC + serial IRQ (pin based)
- in kernel IOAPIC + virtio-pci MSI-X
- in kernel IOAPIC + virtio-pci IRQ (pin based)
- userspace IOAPIC + serial IRQ (pin based)
- userspace IOAPIC + virtio-pci MSI-X
- userspace IOAPIC + virtio-pci IRQ (pin based)
Fixes #13
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-06-21 10:09:34 +02:00
Rob Bradford
c4c8b9314d
build: Switch over to using rust-vmm linux-loader crate
...
With everything now merged upstream we no longer need to rely on Cathy's
fork.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-06-13 11:28:20 +01:00
Sebastien Boeuf
946a5d4f21
build: Update Cargo.lock for syn crate update
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-06-10 09:11:47 -07:00
Sebastien Boeuf
4be3dfeb37
build: Update Cargo.lock for linux-loader crate update
...
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-06-07 18:19:52 +01:00
Rob Bradford
bbd0f5eebb
build: Update Cargo.lock for linux-loader crate update
...
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-06-07 12:39:42 +01:00
Sebastien Boeuf
13a065d2cd
dep: Rely on latest kvm-ioctls crate
...
In order to have access to the newly added signal_msi() function
from the kvm-ioctls crate, this commit updates the version of the
kvm-ioctls to the latest one.
Because set_user_memory_region() has been swtiched to "unsafe", we
also need to handle this small change in our cloud-hypervisor code
directly.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-06-06 15:27:35 +01:00
Rob Bradford
1f53488003
tests: Switch to launching by command
...
Launch the test binary by command rather than using using the vmm layer.
This makes it easier to manage the running VM as you can explicitly kill
it.
Also switch to using credibility for the tests which catches assertions
and continues with subsequent commands and reports the issues at the
end. This means it is possible to cleanup even on failed test runs.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-06-06 11:03:13 +01:00
Rob Bradford
ddce3df826
tests: Add basic integration testing
...
Add basic integration testing of the hypervisor using a cloud-init to
configure the VM at boot and SSH to control it at runtime.
Initial test just boots the VM up checks some basic resources and
reboots. With a second test that calls into the first to check that
subsequent tests work correctly.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-06-06 11:03:13 +01:00
Samuel Ortiz
74a21f24e1
vendor: Remove vendoring
...
The cargo interaction with the .cargo/config does not meet our
requirements.
Regardless of .cargo/config explicitly replacing our external sources
with vendored ones, cargo build will rely first on Cargo.lock to update
its local source cache. If a dependency has been push forced, build
fails because of our top level Cargo.toml description.
This prevents us from actually pinning dependencies, which defeats the
vendoring purpose.
We're removing vendoring for now, until we understand it better.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-06-06 10:00:16 +01:00