]> xenbits.xensource.com Git - libvirt.git/commitdiff
Increase the size of REMOTE_MIGRATE_COOKIE_MAX to REMOTE_STRING_MAX
authorShivaprasad G Bhat <shivaprasadbhat@gmail.com>
Wed, 28 May 2014 12:42:55 +0000 (08:42 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 16 Jun 2014 16:10:48 +0000 (18:10 +0200)
During guest migration, if the domain xml is bigger than 16384 which is
easily possible for a guest with good number of disks, message encode fails
for xdr_remote_domain_migrate_perform3_ret().
So, Increase the COOKIE_MAX to STRING_MAX value.

Signed-off-by: Shivaprasad G Bhat <shivaprasadbhat@gmail.com>
src/remote/remote_protocol.x

index 1f9d58307df67627a4e553d8636945fdd0f096d8..ab9b83dc48048a02698c9c3b4476b765a3a67a5b 100644 (file)
@@ -86,7 +86,7 @@ const REMOTE_VCPUINFO_MAX = 16384;
 const REMOTE_CPUMAPS_MAX = 8388608;
 
 /* Upper limit on migrate cookie. */
-const REMOTE_MIGRATE_COOKIE_MAX = 16384;
+const REMOTE_MIGRATE_COOKIE_MAX = 4194304;
 
 /* Upper limit on lists of networks. */
 const REMOTE_NETWORK_LIST_MAX = 16384;