summaryrefslogtreecommitdiffstats
path: root/migration/trace-events
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2018-06-13 12:26:41 +0200
committerDr. David Alan Gilbert2018-06-15 15:40:56 +0200
commitad767bed5af559ed32c6dabdcaccc3f75731e1f4 (patch)
treee29268c63f734e0d24788e5f1356d72647ab9d24 /migration/trace-events
parentmigration/postcopy: Add max-postcopy-bandwidth parameter (diff)
downloadqemu-ad767bed5af559ed32c6dabdcaccc3f75731e1f4.tar.gz
qemu-ad767bed5af559ed32c6dabdcaccc3f75731e1f4.tar.xz
qemu-ad767bed5af559ed32c6dabdcaccc3f75731e1f4.zip
migration: Wake rate limiting for urgent requests
Rate limiting sleeps the migration thread for a while when it runs out of bandwidth; but sometimes we want to wake up to get on with something more urgent (like a postcopy request). Here we use a semaphore with a timedwait instead of a simple sleep; Incrementing the sempahore will wake it up sooner. Anything that consumes these urgent events must decrement the sempahore. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20180613102642.23995-3-dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/trace-events')
-rw-r--r--migration/trace-events2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/trace-events b/migration/trace-events
index 4a768eaaeb..3f67758893 100644
--- a/migration/trace-events
+++ b/migration/trace-events
@@ -108,6 +108,8 @@ migration_return_path_end_before(void) ""
migration_return_path_end_after(int rp_error) "%d"
migration_thread_after_loop(void) ""
migration_thread_file_err(void) ""
+migration_thread_ratelimit_pre(int ms) "%d ms"
+migration_thread_ratelimit_post(int urgent) "urgent: %d"
migration_thread_setup_complete(void) ""
open_return_path_on_source(void) ""
open_return_path_on_source_continue(void) ""