xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] xenguest: Alter xsa-25 decompression limit prototypes
@ 2013-01-28 11:44 Andrew Cooper
  2013-01-28 11:50 ` Ian Campbell
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2013-01-28 11:44 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Ian Campbell

To allow xenguest consumers to make use of the extra protection added as a
result of xsa-25.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

---
Changes since v1:
 * Remove prototypes from xc_dom.h to remove duplication

diff -r 5af4f2ab06f3 -r 75aafcd809a7 tools/libxc/xc_dom.h
--- a/tools/libxc/xc_dom.h
+++ b/tools/libxc/xc_dom.h
@@ -209,10 +209,7 @@ int xc_dom_mem_init(struct xc_dom_image 
 #endif
 
 int xc_dom_kernel_check_size(struct xc_dom_image *dom, size_t sz);
-int xc_dom_kernel_max_size(struct xc_dom_image *dom, size_t sz);
-
 int xc_dom_ramdisk_check_size(struct xc_dom_image *dom, size_t sz);
-int xc_dom_ramdisk_max_size(struct xc_dom_image *dom, size_t sz);
 
 size_t xc_dom_check_gzip(xc_interface *xch,
                      void *blob, size_t ziplen);
diff -r 5af4f2ab06f3 -r 75aafcd809a7 tools/libxc/xenguest.h
--- a/tools/libxc/xenguest.h
+++ b/tools/libxc/xenguest.h
@@ -177,6 +177,10 @@ int xc_dom_linux_build(xc_interface *xch
 		       unsigned int console_evtchn,
 		       unsigned long *console_mfn);
 
+#define XENCTRL_HAS_DECOMPRESS_LIMITS
+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);
+
 /**
  * This function will create a domain for a paravirtualized Linux
  * using buffers for kernel and initrd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-28 12:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 11:44 [PATCH v2] xenguest: Alter xsa-25 decompression limit prototypes Andrew Cooper
2013-01-28 11:50 ` Ian Campbell
2013-01-28 11:57   ` Andrew Cooper
2013-01-28 12:05     ` Ian Campbell
2013-01-28 12:52       ` Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).