diff options
| author | Peter Xu | 2019-06-03 08:50:53 +0200 |
|---|---|---|
| committer | Juan Quintela | 2019-07-15 15:39:03 +0200 |
| commit | 9f4bf4baa8b820c7930e23c9566c9493db7e1d25 (patch) | |
| tree | f5dc29b8ced986ff6c8dd73c471799f200dfdefa /scripts/modules | |
| parent | kvm: Update comments for sync_dirty_bitmap (diff) | |
| download | qemu-9f4bf4baa8b820c7930e23c9566c9493db7e1d25.tar.gz qemu-9f4bf4baa8b820c7930e23c9566c9493db7e1d25.tar.xz qemu-9f4bf4baa8b820c7930e23c9566c9493db7e1d25.zip | |
kvm: Persistent per kvmslot dirty bitmap
When synchronizing dirty bitmap from kernel KVM we do it in a
per-kvmslot fashion and we allocate the userspace bitmap for each of
the ioctl. This patch instead make the bitmap cache be persistent
then we don't need to g_malloc0() every time.
More importantly, the cached per-kvmslot dirty bitmap will be further
used when we want to add support for the KVM_CLEAR_DIRTY_LOG and this
cached bitmap will be used to guarantee we won't clear any unknown
dirty bits otherwise that can be a severe data loss issue for
migration code.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190603065056.25211-9-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
