cloud-hypervisor/virtio-devices/src
lizhaoxin1 a45e458c50 vm-migration: Add start_migration() to Migratable trait
In order to clearly decouple when the migration is started compared to
when the dirty logging is started, we introduce a new method to the
Migratable trait. This clarifies the semantics as we don't end up using
start_dirty_log() for identifying when the migration has been started.
And similarly, we rely on the already existing complete_migration()
method to know when the migration has been ended.

A bug was reported when running a local migration with a vhost-user-net
device in server mode. The reason was because the migration_started
variable was never set to "true", since the start_dirty_log() function
was never invoked.

Signed-off-by: lizhaoxin1 <Lxiaoyouling@163.com>
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2022-02-03 13:33:26 +01:00
..
transport virtio-queue: Move to upstream crate from rust-vmm 2022-01-31 10:38:12 +00:00
vhost_user vm-migration: Add start_migration() to Migratable trait 2022-02-03 13:33:26 +01:00
vsock vm-virtio: Define and implement Translatable trait 2022-01-27 10:00:20 +00:00
balloon.rs virtio-devices: Handle virtio queues interrupts from transport layer 2022-01-25 12:01:12 +01:00
block.rs vm-virtio: Define AccessPlatform trait 2022-01-27 10:00:20 +00:00
console.rs vm-virtio: Define and implement Translatable trait 2022-01-27 10:00:20 +00:00
device.rs vm-virtio: Define AccessPlatform trait 2022-01-27 10:00:20 +00:00
epoll_helper.rs virtio-devices: Update some comments in epoll_helper.rs 2021-11-23 14:03:05 +01:00
iommu.rs vm-virtio: Define AccessPlatform trait 2022-01-27 10:00:20 +00:00
lib.rs Move Cloud Hypervisor to virtio-queue crate 2021-10-22 11:38:55 +02:00
mem.rs virtio-devices: Handle virtio queues interrupts from transport layer 2022-01-25 12:01:12 +01:00
net.rs vm-virtio: Define AccessPlatform trait 2022-01-27 10:00:20 +00:00
pmem.rs vm-virtio: Define and implement Translatable trait 2022-01-27 10:00:20 +00:00
rng.rs vm-virtio: Define and implement Translatable trait 2022-01-27 10:00:20 +00:00
seccomp_filters.rs virtio-devices: Add openat() syscall to seccomp filter 2022-01-21 17:58:15 +00:00
thread_helper.rs virtio-devices: Call closure directly rather than indirect 2021-10-19 19:42:36 +01:00
watchdog.rs virtio-devices: Handle virtio queues interrupts from transport layer 2022-01-25 12:01:12 +01:00