diff options
author | John Levon <john.levon@nutanix.com> | 2022-05-27 11:25:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 11:25:53 +0100 |
commit | 54b7ef99497b2a4aa703a33342b54c76a709b0fe (patch) | |
tree | 726c6f38b8eeb23a28cf194afca0f39117aa034a /test/py/test_migration.py | |
parent | c985a9a53656b50063cf2de1b29e40e02b47f415 (diff) | |
download | libvfio-user-54b7ef99497b2a4aa703a33342b54c76a709b0fe.zip libvfio-user-54b7ef99497b2a4aa703a33342b54c76a709b0fe.tar.gz libvfio-user-54b7ef99497b2a4aa703a33342b54c76a709b0fe.tar.bz2 |
re-work SG dirty tracking (#672)
Move SG dirtying to vfu_unmap_sg(): as we don't want to track SGs
ourselves, doing this in vfu_map_sg() is no longer the right place.
Note that the lack of tracking implies that any SGs must be unmapped
before the final stop and copy phase. To avoid the need for this, add
vfu_mark_sg_dirty(): this allows a consumer to mark a region as dirty
explicitly without needing to unmap it. Currently it's the same as
vfu_unmap_sg(), but that's an implementation detail.
Note this still marks current maps after a get operation; that will
change subsequently.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/py/test_migration.py')
0 files changed, 0 insertions, 0 deletions