From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xenguest: Add xsa-25 decompression limit prototypes
Date: Mon, 28 Jan 2013 10:25:52 +0000 [thread overview]
Message-ID: <51065230.2050003@citrix.com> (raw)
In-Reply-To: <1359365136.6559.4.camel@zakaz.uk.xensource.com>
On 28/01/13 09:25, Ian Campbell wrote:
> On Fri, 2013-01-25 at 18:04 +0000, Andrew Cooper wrote:
>> To allow xenguest consumers to also make use of the extra protection added as
>> a result of xsa-25.
>>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>
>> diff -r 5af4f2ab06f3 -r daec50a41570 tools/libxc/xenguest.h
>> --- a/tools/libxc/xenguest.h
>> +++ b/tools/libxc/xenguest.h
>> @@ -177,6 +177,13 @@ int xc_dom_linux_build(xc_interface *xch
>> unsigned int console_evtchn,
>> unsigned long *console_mfn);
>>
>> +#ifndef XC_HAVE_DECOMPRESS_LIMITS
>> +#define XC_HAVE_DECOMPRESS_LIMITS
>> +#endif
> This sort of thing isn't in general needed for the libxc interface,
> which already makes very little in the way of API stability guarantees.
> The only existing example uses XENCTRL_HAS_* so if this is really felt
> to be useful it should match.
>
> Also this file has multiple inclusion guards so the ifndef really isn't
> necessary.
>
>> +int xc_dom_kernel_max_size(struct xc_dom_image *dom, size_t sz);
>> +int xc_dom_ramdisk_max_size(struct xc_dom_image *dom, size_t sz);
> These duplicate the ones in xc_dom.h, if the prototypes there aren't
> sufficient then they should be moved not repeated.
xenguest.h includes no files whatsoever, and every single prototype in
it is a duplicate of other functions in xc_*.h header files. This
appears to be the point. Furthermore, it is the only file referenced by
the ocaml subs for libxc, and the xenguest helper utility for Xapi.
~Andrew
>
>> +
>> /**
>> * This function will create a domain for a paravirtualized Linux
>> * using buffers for kernel and initrd
>
next prev parent reply other threads:[~2013-01-28 10:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-25 18:04 [PATCH] xenguest: Add xsa-25 decompression limit prototypes Andrew Cooper
2013-01-28 9:25 ` Ian Campbell
2013-01-28 10:25 ` Andrew Cooper [this message]
2013-01-28 10:46 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51065230.2050003@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.