Re: [PATCHv2] rpc: message related sizes enlarged

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/26/2013 05:59 AM, Viktor Mihajlovski wrote:
> From: Daniel Hansel <daniel.hansel@xxxxxxxxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Viktor Mihajlovski <mihajlov@xxxxxxxxxxxxxxxxxx>
> ---
>  src/libvirt.c                |    4 ++++
>  src/remote/remote_protocol.x |    6 +++---
>  src/rpc/virnetmessage.c      |   46 ++++++++++++++++++++++++++++++++++--------
>  src/rpc/virnetmessage.h      |    3 ++-
>  src/rpc/virnetprotocol.x     |   16 +++++++++++----
>  tests/virnetmessagetest.c    |    2 +-
>  6 files changed, 60 insertions(+), 17 deletions(-)

I think this patch is safe for 1.0.5, but want to give anyone else
another day to raise any objections before I apply it.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]