options.c (ec6f9f135d5e5596ab0258da2ddd048f1fd8c359) | options.c (d869f6297522894ef6c184dbe47b923360faf9e5) |
---|---|
1/* 2 * QEMU migration capabilities 3 * 4 * Copyright (c) 2012-2023 Red Hat Inc 5 * 6 * Authors: 7 * Orit Wasserman <owasserm@redhat.com> 8 * Juan Quintela <quintela@redhat.com> --- 604 unchanged lines hidden (view full) --- 613 614 if (!kvm_enabled() || !kvm_dirty_ring_enabled()) { 615 error_setg(errp, "dirty-limit requires KVM with accelerator" 616 " property 'dirty-ring-size' set"); 617 return false; 618 } 619 } 620 | 1/* 2 * QEMU migration capabilities 3 * 4 * Copyright (c) 2012-2023 Red Hat Inc 5 * 6 * Authors: 7 * Orit Wasserman <owasserm@redhat.com> 8 * Juan Quintela <quintela@redhat.com> --- 604 unchanged lines hidden (view full) --- 613 614 if (!kvm_enabled() || !kvm_dirty_ring_enabled()) { 615 error_setg(errp, "dirty-limit requires KVM with accelerator" 616 " property 'dirty-ring-size' set"); 617 return false; 618 } 619 } 620 |
621 if (new_caps[MIGRATION_CAPABILITY_MULTIFD]) { 622 if (new_caps[MIGRATION_CAPABILITY_XBZRLE]) { 623 error_setg(errp, "Multifd is not compatible with xbzrle"); 624 return false; 625 } 626 } 627 |
|
621 return true; 622} 623 624bool migrate_cap_set(int cap, bool value, Error **errp) 625{ 626 MigrationState *s = migrate_get_current(); 627 bool new_caps[MIGRATION_CAPABILITY__MAX]; 628 --- 846 unchanged lines hidden --- | 628 return true; 629} 630 631bool migrate_cap_set(int cap, bool value, Error **errp) 632{ 633 MigrationState *s = migrate_get_current(); 634 bool new_caps[MIGRATION_CAPABILITY__MAX]; 635 --- 846 unchanged lines hidden --- |