[libvirt] [PATCH 2/3] qemu: Check for drop-cache capability

Eric Blake eblake at redhat.com
Tue Aug 13 16:33:08 UTC 2019


On 8/13/19 11:08 AM, Jiri Denemark wrote:
> QEMU 4.0.0 and newer automatically drops caches at the end of migration.
> Let's check for this capability so that we can allow migration when disk
> cache is turned on.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/qemu/qemu_capabilities.c                      | 2 ++

> +++ b/src/qemu/qemu_capabilities.h
> @@ -517,6 +517,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
>  
>      /* 335 */
>      QEMU_CAPS_DEVICE_BOCHS_DISPLAY, /* -device bochs-display */
> +    QEMU_CAPS_MIGRATION_FILE_DROP_CACHE, /* migration with disk cache on is safe for typ='file' disks */

s/typ/type/
long line, is that a problem?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190813/3a958e89/attachment-0001.sig>


More information about the libvir-list mailing list