cloud-hypervisor/virtio-devices
Sebastien Boeuf 61f9a4ec6c virtio-devices: mem: Accept handlers to update DMA mappings
Create two functions for registering/unregistering DMA mapping handlers,
each handler being associated with a VFIO device.

Whenever the plugged_size is modified (which means triggered by the
virtio-mem driver in the guest), the virtio-mem backend is responsible
for updating the DMA mappings related to every VFIO device through the
handler previously provided.

It's important to update the map when the handler is either registered
or unregistered as well, as we don't want to miss some plugged memory
that would have been added before the VFIO device is added to the VM.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2021-03-05 10:38:42 +01:00
..
src virtio-devices: mem: Accept handlers to update DMA mappings 2021-03-05 10:38:42 +01:00
Cargo.toml build(deps): bump libc from 0.2.86 to 0.2.87 2021-03-02 11:14:57 +00:00