On Fri, Nov 11, 2016 at 09:00:09AM +0100, Juergen Gross wrote:
> Instead of always allocating a data buffer for incoming or outgoing
> xenstore wire data add a small buffer to the buffered_data structure
> of xenstored. This has the advantage that especially sending simple
> response messages like errors or "OK" will no longer need allocating
> a data buffer. This requires adding a memory context where the
> allocated buffer was used for that purpose.
> 
> In order to avoid allocating a new buffered_data structure for each
> response reuse the structure of the original request. This in turn
> will avoid any new memory allocations for sending e.g. an ENOMEM
> response making it possible to send it at all. To do this the
> allocation of the buffered_data structure for the incoming request
> must be done when a new request is recognized instead of doing it
> when accepting a new connect.
> 
> Signed-off-by: Juergen Gross <jgr...@suse.com>

Acked-by: Wei Liu <wei.l...@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to