diff options
author | Hyman Huang(黄勇) <huangy81@chinatelecom.cn> | 2021-06-29 16:01:19 +0000 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2021-11-01 22:56:43 +0100 |
commit | 63b41db4bc776e71384d14d68a8ec6e0aae5ea3a (patch) | |
tree | 8d3b98aaf502edc40bfaeed25fb278561042596c /hw/i386/xen | |
parent | 7786ae40ba4e7d5b9ebbfd07924f4379e218c6ef (diff) | |
download | qemu-63b41db4bc776e71384d14d68a8ec6e0aae5ea3a.zip qemu-63b41db4bc776e71384d14d68a8ec6e0aae5ea3a.tar.gz qemu-63b41db4bc776e71384d14d68a8ec6e0aae5ea3a.tar.bz2 |
memory: make global_dirty_tracking a bitmask
since dirty ring has been introduced, there are two methods
to track dirty pages of vm. it seems that "logging" has
a hint on the method, so rename the global_dirty_log to
global_dirty_tracking would make description more accurate.
dirty rate measurement may start or stop dirty tracking during
calculation. this conflict with migration because stop dirty
tracking make migration leave dirty pages out then that'll be
a problem.
make global_dirty_tracking a bitmask can let both migration and
dirty rate measurement work fine. introduce GLOBAL_DIRTY_MIGRATION
and GLOBAL_DIRTY_DIRTY_RATE to distinguish what current dirty
tracking aims for, migration or dirty rate.
Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
Message-Id: <9c9388657cfa0301bd2c1cfa36e7cf6da4aeca19.1624040308.git.huangy81@chinatelecom.cn>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/i386/xen')
-rw-r--r-- | hw/i386/xen/xen-hvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c index e3d3d5c..482be95 100644 --- a/hw/i386/xen/xen-hvm.c +++ b/hw/i386/xen/xen-hvm.c @@ -1613,8 +1613,8 @@ void xen_hvm_modified_memory(ram_addr_t start, ram_addr_t length) void qmp_xen_set_global_dirty_log(bool enable, Error **errp) { if (enable) { - memory_global_dirty_log_start(); + memory_global_dirty_log_start(GLOBAL_DIRTY_MIGRATION); } else { - memory_global_dirty_log_stop(); + memory_global_dirty_log_stop(GLOBAL_DIRTY_MIGRATION); } } |