diff options
author | Peter Xu | 2022-01-19 09:09:18 +0100 |
---|---|---|
committer | Juan Quintela | 2022-01-28 15:38:23 +0100 |
commit | a1fe28df7547120bc3ac8bc4c3d1565d4cf7905e (patch) | |
tree | 6a6d1a744b0a3e8ab395ed090f68263458acf10d /tests | |
parent | migration: Enable UFFD_FEATURE_THREAD_ID even without blocktime feat (diff) | |
download | qemu-a1fe28df7547120bc3ac8bc4c3d1565d4cf7905e.tar.gz qemu-a1fe28df7547120bc3ac8bc4c3d1565d4cf7905e.tar.xz qemu-a1fe28df7547120bc3ac8bc4c3d1565d4cf7905e.zip |
migration: Add postcopy_has_request()
Add a helper to detect whether postcopy has pending request.
Since at it, cleanup the code a bit, e.g. in unqueue_page() we shouldn't need
to check it again on queue empty because we're the only one (besides cleanup
code, which should never run during this process) that will take a request off
the list, so the request list can only grow but not shrink under the hood.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions