vmsilo fork of vhost rust libraries
Find a file
Sergio Lopez 2055d112fb Fix memory region offsetting
The way in which offsets are currently use in memory regions is
derived from QEMU's contrib/libvhost-user, but while this one works
mainly by translating vmm va's to local va's, vm-memory expects us to
use proper guest addresses and thus, define memory regions that
actually match the guest's memory disposition.

With this change, we create the memory regions with the proper length
and offsets, extend AddrMapping to store the guest physical address,
and use the latter instead of offset in vmm_va_to_gpa().

Signed-off-by: Sergio Lopez <slp@redhat.com>
2020-11-25 17:01:17 +01:00
src Fix memory region offsetting 2020-11-25 17:01:17 +01:00
.gitmodules Initial commit 2020-09-17 13:51:21 +03:00
Cargo.toml Initial commit 2020-09-17 13:51:21 +03:00
CODEOWNERS Initial commit 2020-09-17 13:51:21 +03:00
coverage_config.json Initial commit 2020-09-17 13:51:21 +03:00
LICENSE-APACHE Initial commit 2020-09-17 13:51:21 +03:00
README.md Initial commit 2020-09-17 13:51:21 +03:00

Crate Name

Design

TODO: This section should have a high-level design of the crate.

Some questions that might help in writing this section:

  • What is the purpose of this crate?
  • What are the main components of the crate? How do they interact which each other?

Usage

TODO: This section describes how the crate is used.

Some questions that might help in writing this section:

  • What traits do users need to implement?
  • Does the crate have any default/optional features? What is each feature doing?
  • Is this crate used by other rust-vmm components? If yes, how?

Examples

TODO: Usage examples.

use my_crate;

...

License

!!!NOTICE: The BSD-3-Clause license is not included in this template. The license needs to be manually added because the text of the license file also includes the copyright. The copyright can be different for different crates. If the crate contains code from CrosVM, the crate must add the CrosVM copyright which can be found here. For crates developed from scratch, the copyright is different and depends on the contributors.