From 4a06a7cc053deae16864359a5149bcb4442f8d2a Mon Sep 17 00:00:00 2001 From: Hyman Huang(黄勇) Date: Sun, 26 Jun 2022 01:38:34 +0800 Subject: 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(黄勇) Acked-by: Peter Xu Message-Id: Signed-off-by: Dr. David Alan Gilbert --- accel/stubs/kvm-stub.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'accel/stubs') diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c index 3345882d85..2ac5f9c036 100644 --- a/accel/stubs/kvm-stub.c +++ b/accel/stubs/kvm-stub.c @@ -148,3 +148,8 @@ bool kvm_dirty_ring_enabled(void) { return false; } + +uint32_t kvm_dirty_ring_size(void) +{ + return 0; +} -- cgit v1.2.3-55-g7522