cloud-hypervisor/virtio-devices/src
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
..
transport interrupt: Make notifier function return Option<EventFd> 2021-02-10 17:34:56 +00:00
vhost_user vhost: Bump to latest version from upstream 2021-03-01 15:53:46 +01:00
vsock virtio-devices, vmm: Move to ExternalDmaMapping from vm-device 2021-02-24 08:02:37 +01:00
balloon.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
block.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
console.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
device.rs interrupt: Make notifier function return Option<EventFd> 2021-02-10 17:34:56 +00:00
epoll_helper.rs virtio-devices: Acknowledge a device being paused 2020-08-13 14:52:18 +02:00
iommu.rs virtio-devices, vmm: Move to ExternalDmaMapping from vm-device 2021-02-24 08:02:37 +01:00
lib.rs vhost: Move to upstream crate 2021-02-25 11:20:41 +01:00
mem.rs virtio-devices: mem: Accept handlers to update DMA mappings 2021-03-05 10:38:42 +01:00
net_util.rs ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
net.rs net_util: Simplify TX/RX queue handling 2021-02-22 10:39:23 +00:00
pmem.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
rng.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
seccomp_filters.rs virtio-devices: mem: Accept handlers to update DMA mappings 2021-03-05 10:38:42 +01:00
watchdog.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00