]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: message related sizes enlarged
authorDaniel Hansel <daniel.hansel@linux.vnet.ibm.com>
Tue, 7 May 2013 11:22:00 +0000 (13:22 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 7 May 2013 11:29:58 +0000 (13:29 +0200)
commite914dcfdaa8b382bc4831b622d9686ade924520f
tree8275b04e5d32b54d13490be8b6171ad7d4ad72e7
parent5e7b0e8757112f17ea616beb8d171bcc94a0f9c3
rpc: message related sizes enlarged

We have seen an issue on s390x platform where domain XMLs larger than 1MB
were used. The define command was finished successfully. The dumpxml command
was not successful (i.e. could not encode message payload).

Enlarged message related sizes (e.g. maximum string size, message size, etc.)
to handle larger system configurations used on s390x platform.

To improve handling of the RPC message size the allocation during encode process
is changed to a dynamic one (i.e. starting with 64kB initial size and increasing
that size in steps up to 16MB if the payload data is larger).

Signed-off-by: Daniel Hansel <daniel.hansel@linux.vnet.ibm.com>
Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/libvirt.c
src/remote/remote_protocol.x
src/rpc/virnetmessage.c
src/rpc/virnetmessage.h
src/rpc/virnetprotocol.x
tests/virnetmessagetest.c