[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/5] Clean up of gzip decompressor
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 11 Apr 2024 11:25:13 -0400
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1712849130; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=VWwVf1+eBCnfe5TG053/5wkNSqTRJgj9CDOPhhAc5gw=; b=aC3BQdEypK4FVlvbeY+TrjF/XZhaoZI0z6Hy5Z8h5HfUKfVqYsyQizp+6e3rZHAVlFNiuSm+ofySLa8R/T2C7mj3iz60Vid8Dm71Kl3M6Bu1raucQ6IwyiWXTXdXTeO1SdofDokrxgfY5eIoQd+JQdmxwPzApMuHXjbLUHby5Nw=
- Arc-seal: i=1; a=rsa-sha256; t=1712849130; cv=none; d=zohomail.com; s=zohoarc; b=fnzqQ2LoEx1ehz8bNykrsmhdsNIa7uAg6qZQx8nEtEAuDkwydu+wEh5FGmch8D6pP+8R0ZfQgC/Rf6p39MoHm3EI2AxnfM+hTbaVbl0OPT9Ufx1iSq0DKaFgIY05W6GfKYpwKvjMz9fwXEJbRIWFUZDVVuJKcbCZ8+VZI3gaokM=
- Cc: Jason Andryuk <jason.andryuk@xxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivered-to: dpsmith@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 11 Apr 2024 15:25:39 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
An issue ran into by hyperlaunch was the need to use the gzip decompressor
multiple times. The current implementation fails when reused due to tainting of
decompressor state from a previous usage. This series seeks to colocate the
gzip unit files under a single directory similar to the other decompression
algorithms. To enable the refactoring of the state tracking, the code is then
cleaned up in line with Xen coding style.
Daniel P. Smith (5):
gzip: colocate gunzip code files
gzip: clean up comments and fix code alignment
gzip: refactor state tracking
gzip: move crc state into consilidated gzip state
gzip: move huffman code table tracking into gzip state
xen/common/Makefile | 2 +-
xen/common/gzip/Makefile | 1 +
xen/common/{ => gzip}/gunzip.c | 73 ++-
xen/common/{ => gzip}/inflate.c | 912 ++++++++++++++++----------------
4 files changed, 504 insertions(+), 484 deletions(-)
create mode 100644 xen/common/gzip/Makefile
rename xen/common/{ => gzip}/gunzip.c (64%)
rename xen/common/{ => gzip}/inflate.c (57%)
--
2.30.2
|