diff options
author | Peter Xu <peterx@redhat.com> | 2022-07-07 14:55:11 -0400 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2022-07-20 12:15:08 +0100 |
commit | c8750de11810ddca96026fc0edf87b64c1350f76 (patch) | |
tree | 86c63105e081e08465ee8d93e849c2275b592f66 /migration/migration.h | |
parent | d0edb8a173b54cae4571c9040c88cf0c5a1c6e12 (diff) | |
download | qemu-c8750de11810ddca96026fc0edf87b64c1350f76.zip qemu-c8750de11810ddca96026fc0edf87b64c1350f76.tar.gz qemu-c8750de11810ddca96026fc0edf87b64c1350f76.tar.bz2 |
migration: Add property x-postcopy-preempt-break-huge
Add a property field that can conditionally disable the "break sending huge
page" behavior in postcopy preemption. By default it's enabled.
It should only be used for debugging purposes, and we should never remove
the "x-" prefix.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Manish Mishra <manish.mishra@nutanix.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20220707185511.27366-1-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h index ae4ffd3..cdad8ac 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -340,6 +340,13 @@ struct MigrationState { bool send_configuration; /* Whether we send section footer during migration */ bool send_section_footer; + /* + * Whether we allow break sending huge pages when postcopy preempt is + * enabled. When disabled, we won't interrupt precopy within sending a + * host huge page, which is the old behavior of vanilla postcopy. + * NOTE: this parameter is ignored if postcopy preempt is not enabled. + */ + bool postcopy_preempt_break_huge; /* Needed by postcopy-pause state */ QemuSemaphore postcopy_pause_sem; |