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

Make result of GuestAddressSpace::memory() cloneable #82

Merged
merged 2 commits into from
Mar 19, 2020

Conversation

bonzini
Copy link
Member

@bonzini bonzini commented Mar 9, 2020

I needed this in order to update vm-virtio for GuestAddressSpace support. Unfortunately this requires support in the arc-swap crate too.

@bonzini
Copy link
Member Author

bonzini commented Mar 9, 2020

CI expected to fail until vorner/arc-swap#25 is pushed to crates.io.

This makes it possible to upgrade the short-lived pointer returned by
memory() to an owned pointer that can be stored.  The bound is already
provided by the trivial GuestAddressSpaces (references and Rc/Arc)
and also by ArcSwap via vorner/arc-swap#26.

Signed-off-by: Paolo Bonzini <[email protected]>
bonzini added a commit to andreeaflorescu/vm-memory that referenced this pull request Mar 19, 2020
Signed-off-by: Paolo Bonzini <[email protected]>
@andreeaflorescu andreeaflorescu merged commit e22be31 into rust-vmm:master Mar 19, 2020
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.

3 participants