cc57467d | 16-Jul-2020 |
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> |
build(deps): bump log from 0.4.8 to 0.4.11
Bumps [log](https://github.com/rust-lang/log) from 0.4.8 to 0.4.11. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://gith
build(deps): bump log from 0.4.8 to 0.4.11
Bumps [log](https://github.com/rust-lang/log) from 0.4.8 to 0.4.11. - [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.11)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
show more ...
|
9c867edc | 14-Jul-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block, virtio-devices, block_util: Extract common block code
Extract the code that is used by vhost_user_block from the virtio-devices crate to remove the dependencies on unrequired funct
vhost_user_block, virtio-devices, block_util: Extract common block code
Extract the code that is used by vhost_user_block from the virtio-devices crate to remove the dependencies on unrequired functionality such as the virtio transports.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
4963e37d | 10-Jul-2020 |
Rob Bradford <robert.bradford@intel.com> |
qcow, virtio-devices: Break cyclic dependency
Move the definition of RawFile from virtio-devices crate into qcow crate. All the code that consumes RawFile also already depends on the qcow crate for
qcow, virtio-devices: Break cyclic dependency
Move the definition of RawFile from virtio-devices crate into qcow crate. All the code that consumes RawFile also already depends on the qcow crate for image file type detection so this change breaks the need for the qcow crate to depend on the very large virtio-devices crate.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
861337cc | 07-Jul-2020 |
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> |
build(deps): bump libc from 0.2.71 to 0.2.72
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.71 to 0.2.72. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://
build(deps): bump libc from 0.2.71 to 0.2.72
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.71 to 0.2.72. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.71...0.2.72)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
show more ...
|
b69f6d4f | 06-Jul-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_net, vhost_user_block, option_parser: Remove vmm dependency
Remove the vmm dependency from vhost_user_block and vhost_user_net where it was existing to use config::OptionParser. By moving
vhost_user_net, vhost_user_block, option_parser: Remove vmm dependency
Remove the vmm dependency from vhost_user_block and vhost_user_net where it was existing to use config::OptionParser. By moving the OptionParser to its own crate at the top-level we can remove the very heavy dependency that these vhost-user backends had.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
72802b34 | 03-Jul-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Move binary into vhost_user_block crate
The binary is still built in the same location but the source code and the dependencies for it come from the vhost_user_block crate itself.
vhost_user_block: Move binary into vhost_user_block crate
The binary is still built in the same location but the source code and the dependencies for it come from the vhost_user_block crate itself.
The binary will be built with:
`cargo build --all --bin vhost_user_block` or just `cargo build --all`
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
2a6eb31d | 02-Jul-2020 |
Rob Bradford <robert.bradford@intel.com> |
vm-virtio, virtio-devices: Split device implementation from virt queues
Split the generic virtio code (queues and device type) from the VirtioDevice trait, transport and device implementations.
Thi
vm-virtio, virtio-devices: Split device implementation from virt queues
Split the generic virtio code (queues and device type) from the VirtioDevice trait, transport and device implementations.
This also simplifies the feature handling in vhost_user_backend as the vm-virtio crate is no longer has any features.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
aac87196 | 28-May-2020 |
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> |
build(deps): bump vm-memory from 0.2.0 to 0.2.1
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory) from 0.2.0 to 0.2.1. - [Release notes](https://github.com/rust-vmm/vm-memory/releases) - [Cha
build(deps): bump vm-memory from 0.2.0 to 0.2.1
Bumps [vm-memory](https://github.com/rust-vmm/vm-memory) from 0.2.0 to 0.2.1. - [Release notes](https://github.com/rust-vmm/vm-memory/releases) - [Changelog](https://github.com/rust-vmm/vm-memory/blob/v0.2.1/CHANGELOG.md) - [Commits](https://github.com/rust-vmm/vm-memory/compare/v0.2.0...v0.2.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
show more ...
|
c31ad72e | 27-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
build: Address issues found by 1.43.0 clippy
These are mostly due to use of "bare use" statements and unnecessary vector creation.
Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
a4bb96d4 | 26-May-2020 |
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> |
build(deps): bump libc from 0.2.70 to 0.2.71
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.70 to 0.2.71. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://
build(deps): bump libc from 0.2.70 to 0.2.71
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.70 to 0.2.71. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.70...0.2.71)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
show more ...
|
dc66eee8 | 20-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Ensure backing file consistency
Correctly implement the virtio specification by setting the writeback field on the request based on the algorithm in the spec.
TEST=Boot with hyper
vhost_user_block: Ensure backing file consistency
Correctly implement the virtio specification by setting the writeback field on the request based on the algorithm in the spec.
TEST=Boot with hypervisor-firmware with CH in verbose mode. See info level messages saying cache mode is writethrough in firmware (no support for flush or WCE). Once in the Linux kernel see messages that mode is writeback.
Fixes: #1216
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
9d88ba7a | 20-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Use VirtioBlockConfig from vm-virtio
Use the same definition of the struct as vm-virtio.
Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
a813b57f | 20-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vm-virtio, vhost_user_{fs,block,backend}: Move EVENT_IDX handling
Move the method that is used to decide whether the guest should be signalled into the Queue implementation from vm-virtio. This remo
vm-virtio, vhost_user_{fs,block,backend}: Move EVENT_IDX handling
Move the method that is used to decide whether the guest should be signalled into the Queue implementation from vm-virtio. This removes duplicated code between vhost_user_backend and the vm-virtio block implementation.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
e6fd6d63 | 18-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Implement VIRTIO_BLK_F_FLUSH
As the parsing code is reused the flush feature is already implemented and ready to be used.
Fixes: #1197
Signed-off-by: Rob Bradford <robert.bradfor
vhost_user_block: Implement VIRTIO_BLK_F_FLUSH
As the parsing code is reused the flush feature is already implemented and ready to be used.
Fixes: #1197
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
c4bf383f | 24-Apr-2020 |
Sergio Lopez <slp@redhat.com> |
vhost_user_*: Create a vhost::Listener in advance
Changes is vhost crate require VhostUserDaemon users to create and provide a vhost::Listener in advance. This allows us to adopt sandboxing strategi
vhost_user_*: Create a vhost::Listener in advance
Changes is vhost crate require VhostUserDaemon users to create and provide a vhost::Listener in advance. This allows us to adopt sandboxing strategies in the future, by being able to create the UNIX socket before switching to a restricted namespace.
Update also the reference to vhost crate in Cargo.lock to point to the latest commit from the dragonball branch.
Signed-off-by: Sergio Lopez <slp@redhat.com>
show more ...
|
2991fd2a | 12-May-2020 |
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> |
build(deps): bump libc from 0.2.69 to 0.2.70
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.69 to 0.2.70. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://
build(deps): bump libc from 0.2.69 to 0.2.70
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.69 to 0.2.70. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.69...0.2.70)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
show more ...
|
b57eeb96 | 08-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Add "queue_size" to --block-backend
This allows the configuration of the queue size like other backends.
Fixes: #1131
Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
5016fcf8 | 08-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Use config::OptionParser to simplify block backend parsing
Switch to using the recently added OptionParser in the code that parses the block backend.
Fixes: #1092
Signed-off-by:
vhost_user_block: Use config::OptionParser to simplify block backend parsing
Switch to using the recently added OptionParser in the code that parses the block backend.
Fixes: #1092
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
f3f398eb | 08-May-2020 |
Rob Bradford <robert.bradford@intel.com> |
vhost_user_block: Consolidate the vhost-user-block backend syntax
Rather than repeat syntax for the vhost-user-block backend in multiple places store it in one place and reference it from the requir
vhost_user_block: Consolidate the vhost-user-block backend syntax
Rather than repeat syntax for the vhost-user-block backend in multiple places store it in one place and reference it from the required places.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
d5bfa2df | 30-Apr-2020 |
Rob Bradford <robert.bradford@intel.com> |
vmm, vhost_user_block: Make parameter names match --disk
Make the --block-backend parameters match the --disk parameters.
Fixes: #898
Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
a517be4e | 16-Apr-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
vhost_user_blk: Add multithreaded multiqueue support
After all the previous refactoring patches, we can finally create multiple threads under the same backend. This is directly combined with multiqu
vhost_user_blk: Add multithreaded multiqueue support
After all the previous refactoring patches, we can finally create multiple threads under the same backend. This is directly combined with multiqueues so that it will create one thread per queue.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
13c8283f | 16-Apr-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
vhost_user_blk: Make everything private when possible
Doing some cleanup as most of the code does not need to be public.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
a31f5f81 | 16-Apr-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
vhost_user_blk: Move disk initialization to VhostUserBlkBackend
Anticipating the follow up patches to run multiple threads for the same backend, we need the initialization of the disk to happen in t
vhost_user_blk: Move disk initialization to VhostUserBlkBackend
Anticipating the follow up patches to run multiple threads for the same backend, we need the initialization of the disk to happen in the high level structure VhostUserBlkBackend.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
e78e34b3 | 16-Apr-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
vhost_user_blk: Make DiskFile sharable across threads
The DiskFile will need to be shared across multiple threads when running multiple queues across these threads. That's why it needs to be put ins
vhost_user_blk: Make DiskFile sharable across threads
The DiskFile will need to be shared across multiple threads when running multiple queues across these threads. That's why it needs to be put inside an Arc. The reason for the Mutex is because execute() expects a mutable object implementing Read + Write + Seek. Unfortunately, this create a contention point as the object needs to be locked from each thread, reducing the performance gain we will get with multiple threads.
The need for an immutable object would solve this problem, and it will be addressed later through follow up patches.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
808586ec | 16-Apr-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
vhost_user_blk: Simplify the code by removing VringWorker
There is no need for retrieving the VringWorker since we don't need to register some extra file descriptors to the epoll loop.
Signed-off-b
vhost_user_blk: Simplify the code by removing VringWorker
There is no need for retrieving the VringWorker since we don't need to register some extra file descriptors to the epoll loop.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|