[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zstd compressed kernels


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Michael Young <m.a.young@xxxxxxxxxxxx>
  • Date: Mon, 23 Nov 2020 23:01:09 +0000 (GMT)
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=durham.ac.uk; dmarc=pass action=none header.from=durham.ac.uk; dkim=pass header.d=durham.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VF7SJocNMcMORPgv9hgiFHHhrj/jwlJ4yyENtKUR5/c=; b=FeZ3iVUF6fNt/UCEUbDvZ7CFuaujbOvjbRF0xGIsN36nfDQEyyCcCkYXZobi7uO8SWEoZn4Ui1Wp+Vq+Xj1GkO8bUbpzlJCmOu3HwxEIjxZ6EMiDKOQqbaMo8nC3Os+jfF8/QIBxpEFXgJ5fN3ME2hFXFY8INT1B73kgeC5dvad0jx05IvZC9SuHW0SBuXy9tIWPd/XKFwRU36bHMoLSQlhbJqRdhVfO2FIfBdzScFg2d5CfqIceYstoQSkfvq7glbX7vL3zN2MY6Vk6BHrgRETgCFonLPHC4QU9NR2t0baK8HKjRNj2pMwGmV8Q/VYDRuWaDAd6L5ZGyEb7tUIQzA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jz19VYN69Qkrn9d+NDqkEjtSWSOKMzD9CXnbZUKElSYCEhXOolN//Fsc3ManATZld7AscbdHedHXX72cD0/61+06OH84PWXJDxen7Vk9+avsGe5FrpsN6WoSLd/AIgp0PtgraBl1GEUsVwREqV6UTw8JasKkBcPJg/KV5NIzej5FHJTrPpb5B1kISgtSCaVLQtswbnFsIcSDV6rDYpLWiSnNcb3ypfDN4JqoKJjuV8uCGDG9aFNmLRN3GSYsDYx3qxJ+XMMz0fckLEABCCGjXj2ntl/EjZfCP5/1QZO8wd6AIJ/HQDJ995GDWgGY7I4AYA0gZrD7fGlP4enAJcOnAw==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=durham.ac.uk;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 24 Nov 2020 05:37:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, 17 Nov 2020, Andrew Cooper wrote:

If you're willing to have a go:

For dom0 support, port Linux's decompressor into xen/common/ and plumb
it into xen/common/decompress.c

For domU's, tools/libs/guest/xg_dom_bzimageloader.c and
xc_dom_probe_bzimage_kernel()

Here is what I have so far. It works for me with a dom0 boot, though only after I reduced the the setting of the maximum decompressed size (out_len) from LONG_MAX to INT_MAX. The patches aren't intended to be final, and I suspect there may need to be adjustments for guest support.

        Michael Young

Attachment: 0001-import-zstd-decompress-code-from-fedora-kernel-kerne.patch
Description: Text document

Attachment: 0002-adapt-kernel-code-for-use-in-xen-dom0-only-so-far.patch
Description: Text document


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.