diff options
| author | Peter Xu <peterx@redhat.com> | 2022-01-19 16:09:18 +0800 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2022-01-28 15:38:23 +0100 |
| commit | a1fe28df7547120bc3ac8bc4c3d1565d4cf7905e (patch) | |
| tree | 6a6d1a744b0a3e8ab395ed090f68263458acf10d /hw/misc/avr_power.c | |
| parent | 2d1c37c603ab3ed9ec1abfc4f4491b8680b23a77 (diff) | |
| download | focaccia-qemu-a1fe28df7547120bc3ac8bc4c3d1565d4cf7905e.tar.gz focaccia-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 'hw/misc/avr_power.c')
0 files changed, 0 insertions, 0 deletions