[pve-devel] [PATCH] since qemu 1.7 xbzrle is AUTOMATICALLY enabled in the end of transfer - we need to explicit disable all feature we do not want

Stefan Priebe s.priebe at profihost.ag
Sat Feb 8 20:20:55 CET 2014


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 PVE/QemuServer.pm |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 8e2184e..3bb9820 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3162,12 +3162,10 @@ sub set_migration_caps {
     my $supported_capabilities = vm_mon_cmd_nocheck($vmid, "query-migrate-capabilities");
 
     for my $supported_capability (@$supported_capabilities) {
-	if ($enabled_cap->{$supported_capability->{capability}} eq 1) {
-	    push @$cap_ref, {
-		capability => $supported_capability->{capability},
-		state => JSON::true,
+	push @$cap_ref, {
+	    capability => $supported_capability->{capability},
+	    state => ($enabled_cap->{$supported_capability->{capability}}) ? JSON::true : JSON::false,
 	    };
-        }
     }
 
     vm_mon_cmd_nocheck($vmid, "migrate-set-capabilities", capabilities => $cap_ref);
-- 
1.7.10.4




More information about the pve-devel mailing list