Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #241

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

arigo-vos
Copy link

Summary of the PR

This is a pull request that update the vmm-reference crate dependencies to:

  • linux-loader to 0.10.0. At the moment this dependency must be checked-out locally (linux-loader = { version = "0.10.0", path = "../linux-loader" } in Cargo.toml) as it requires one commit that must be merged upstream. For this, I created another pull request. As soon as the commit will be upstreamed I'll update this pull request to pull linux-loader directly from github.
  • vm-memory 0.13.1
  • kvm-ioctls 0.13.0
  • kvm-bindings 0.6
  • vmm-sys-util 0.11.2
  • event-manager 0.3.0

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

The following crates have been updated to a newer version
kvm-ioctls 0.13.0
kvm-bindings 0.6
vmm-sys-util 0.11.2
event-manager 0.3.0

Signed-off-by: Alvise Rigo <[email protected]>
Reviewed-by: Timos Ampelikiotis <[email protected]>
@andreeaflorescu
Copy link
Member

@arigo-vos The tests are failing, can you please fix them?

@arigo-vos
Copy link
Author

@arigo-vos The tests are failing, can you please fix them?

Ouch. I think some of the errors are due to the fact linux-loader is included from a local folder as it required a commit for which I created another pull request. Should I instead include this dependency via a temporary github repository?
Give me a couple of working days.

The new version of vm-memory requires to bump the log crate to version
0.4.20 and vm-virtio to 0.10.0. This has various consequences to the
rest of the code. In particular:

The vmm crate had to be reworked to add a reference to the guest memory
in various places as it is not part of the Queue struct anymore.  For
this reason, it is preferable to wrap the array of Arc<GuestRegionMmap>
with an Arc reference to optimize the various clone() operation that
will be added. This has the advantage of reducing the duplication of
memory and makes sure the various parts of the code to see the same
array of elements (which would not be the case if we clone the array of
Arc<> iteself). While at it, the reference to the guest memory was added
to some key virtio functions.

devices::virtio::{self, block, net} had all to be updated to also accept
the Arc reference to the guest memory.

Signed-off-by: Alvise Rigo <[email protected]>
Reviewed-by: Timos Ampelikiotis <[email protected]>
Signed-off-by: Alvise Rigo <[email protected]>
Reviewed-by: Timos Ampelikiotis <[email protected]>
Update to align to the new Cmdline API and kernel image loader.  While
at it, update the load_kernel() tests as well.

Signed-off-by: Alvise Rigo <[email protected]>
Reviewed-by: Timos Ampelikiotis <[email protected]>
Signed-off-by: Alvise Rigo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants