summaryrefslogtreecommitdiffstats
path: root/include/sysemu
diff options
context:
space:
mode:
authorHyman Huang(黄勇)2022-06-25 19:38:34 +0200
committerDr. David Alan Gilbert2022-07-20 13:15:08 +0200
commit4a06a7cc053deae16864359a5149bcb4442f8d2a (patch)
tree65ef59c2c8e88b7bdc537b0c6c790e8f26274324 /include/sysemu
parentsoftmmu/dirtylimit: Implement vCPU dirtyrate calculation periodically (diff)
downloadqemu-4a06a7cc053deae16864359a5149bcb4442f8d2a.tar.gz
qemu-4a06a7cc053deae16864359a5149bcb4442f8d2a.tar.xz
qemu-4a06a7cc053deae16864359a5149bcb4442f8d2a.zip
accel/kvm/kvm-all: Introduce kvm_dirty_ring_size function
Introduce kvm_dirty_ring_size util function to help calculate dirty ring ful time. Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Acked-by: Peter Xu <peterx@redhat.com> Message-Id: <f9ce1f550bfc0e3a1f711e17b1dbc8f701700e56.1656177590.git.huangy81@chinatelecom.cn> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h
index a783c78868..efd6dee818 100644
--- a/include/sysemu/kvm.h
+++ b/include/sysemu/kvm.h
@@ -582,4 +582,6 @@ bool kvm_cpu_check_are_resettable(void);
bool kvm_arch_cpu_check_are_resettable(void);
bool kvm_dirty_ring_enabled(void);
+
+uint32_t kvm_dirty_ring_size(void);
#endif