KVM: Add dirty-ring-size property
commit2ea5cb0a47c9dbf78235de30a0d5846a4ab6d995
authorPeter Xu <peterx@redhat.com>
Thu, 6 May 2021 16:05:47 +0000 (6 12:05 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 May 2021 12:49:45 +0000 (26 14:49 +0200)
treecae70dfaa60a895ad56b19c6af2514537dfb6e0a
parent563d32ba9bb92df6170a53826a174e59ae73412f
KVM: Add dirty-ring-size property

Add a parameter for dirty gfn count for dirty rings.  If zero, dirty ring is
disabled.  Otherwise dirty ring will be enabled with the per-vcpu gfn count as
specified.  If dirty ring cannot be enabled due to unsupported kernel or
illegal parameter, it'll fallback to dirty logging.

By default, dirty ring is not enabled (dirty-gfn-count default to 0).

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210506160549.130416-9-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c
qemu-options.hx