]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: support dirty ring feature
authorHyman Huang(黄勇) <huangy81@chinatelecom.cn>
Tue, 23 Nov 2021 14:36:58 +0000 (09:36 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Dec 2021 12:17:41 +0000 (13:17 +0100)
commit5d18d740d889a71701c1e584a7c54c4ad838b2be
tree305d62f4357c8c4fd6501cb1084a1ba1269d7e86
parenta8e0f9c682143c63897de5c379d3ac3791c51970
qemu: support dirty ring feature

Dirty ring feature was introduced in qemu-6.1.0, this patch
add the corresponding feature named 'dirty-ring', which enable
dirty ring feature when starting VM.

To enable the feature, the following XML needs to be added to
the guest's domain description:

<features>
   <kvm>
     <dirty-ring state='on' size='xxx'>
   </kvm>
</features>

If property "state=on", property "size" must be specified, which
should be power of 2 and range in [1024, 65526].

Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.rst
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/kvm-features-off.xml
tests/qemuxml2argvdata/kvm-features.xml
tests/qemuxml2xmloutdata/kvm-features-off.xml
tests/qemuxml2xmloutdata/kvm-features.xml