add Dom0 xz kernel decompression
PATCH 1/3 add Dom0 xz kernel decompression
Largely taken from Linux 2.6.38 and made build/work for Xen.
xen/common/Makefile +1 -1
@@ -43,7 +43,7 @@ obj-y += radix-tree.o obj-y += rbtree.o obj-y += lzo.o -obj-$(CONFIG_X86) += decompress.o bunzip2.o unlzma.o unlzo.o +obj-$(CONFIG_X86) += decompress.o bunzip2.o unxz.o unlzma.o unlzo.o obj-$(perfc) += perfc.o obj-$(crash_debug) += gdbstub.o
xen/common/decompress.c +3 -0
@@ -20,6 +20,9 @@ int __init decompress(void *inbuf, unsigif ( len >=3 && !memcmp (inbuf,"\x42\x5a\x68" ,3 ) )return bunzip2 (inbuf, len,NULL ,NULL , outbuf,NULL , error); +if ( len >=6 && !memcmp (inbuf,"\3757zXZ" ,6 ) ) +return unxz (inbuf, len,NULL ,NULL , outbuf,NULL , error); +if ( len >=2 && !memcmp (inbuf,"\135\000" ,2 ) )return unlzma (inbuf, len,NULL ,NULL , outbuf,NULL , error);
xen/common/decompress.h +1 -0
@@ -8,6 +8,7 @@#define STATIC #define INIT __init +#define INITDATA __initdatastatic void (*__initdata error)(const char *);#define set_error_fn (x) error = x;
xen/common/unxz.c new file +306 -0
306 lines not on this page · raw message
xen/common/xz/crc32.c new file +51 -0
51 lines not on this page · raw message
xen/common/xz/dec_bcj.c new file +562 -0
562 lines not on this page · raw message
xen/common/xz/dec_lzma2.c new file +1171 -0
1,171 lines not on this page · raw message
xen/common/xz/dec_stream.c new file +821 -0
821 lines not on this page · raw message
xen/common/xz/lzma2.h new file +204 -0
65 lines not on this page · raw message
xen/common/xz/private.h new file +271 -0
271 lines not on this page · raw message
xen/common/xz/stream.h new file +55 -0
55 lines not on this page · raw message
xen/include/xen/decompress.h +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Largely taken from Linux 2.6.38 and made build/work for Xen.
xen/common/Makefile +1 -1
Lines of this file are not shown. View the raw message.
xen/common/decompress.c +3 -0
Lines of this file are not shown. View the raw message.
xen/common/decompress.h +1 -0
Lines of this file are not shown. View the raw message.
xen/common/unxz.c new file +306 -0
306 lines not on this page · raw message
xen/common/xz/crc32.c new file +51 -0
51 lines not on this page · raw message
xen/common/xz/dec_bcj.c new file +562 -0
562 lines not on this page · raw message
xen/common/xz/dec_lzma2.c new file +1171 -0
1,171 lines not on this page · raw message
xen/common/xz/dec_stream.c new file +821 -0
821 lines not on this page · raw message
xen/common/xz/lzma2.h new file +204 -0
204 lines not on this page · raw message
xen/common/xz/private.h new file +271 -0
271 lines not on this page · raw message
xen/common/xz/stream.h new file +55 -0
55 lines not on this page · raw message
xen/include/xen/decompress.h +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Part of the diff is not shown here. View the raw message.