Bug 683437 - backport xz compression for domU kernel images
Summary: backport xz compression for domU kernel images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen
Version: 5.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Novotny
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 514500
TreeView+ depends on / blocked
 
Reported: 2011-03-09 12:20 UTC by Paolo Bonzini
Modified: 2014-02-02 22:38 UTC (History)
11 users (show)

Fixed In Version: xen-3.0.3-129.el5
Doc Type: Bug Fix
Doc Text:
Previously, version 2.6.38 or newer kernels, which are compressed using the xz compression utility, could not be properly booted with the xen package. With this update, xz decompression support has been added, thus fixing this bug.
Clone Of:
Environment:
Last Closed: 2011-07-21 09:13:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Implement xz decompression for domU kernels (8.96 KB, patch)
2011-03-24 11:19 UTC, Michal Novotny
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1070 0 normal SHIPPED_LIVE xen bug fix and enhancement update 2011-07-21 09:12:56 UTC

Description Paolo Bonzini 2011-03-09 12:20:12 UTC
xz kernel compression is being added to Linux for 2.6.38.  I'm not sure whether Fedora will adopt it, but since it is easy to add it to libxc, we should do that sooner rather than later.

Upstream patch at http://permalink.gmane.org/gmane.comp.emulators.xen.devel/100351

Comment 28 Michal Novotny 2011-03-24 11:19:18 UTC
Created attachment 487283 [details]
Implement xz decompression for domU kernels

Hi,
this is the patch to implement xz decompression for domU kernels.

Michal

Comment 34 Qixiang Wan 2011-05-24 03:18:23 UTC
VERIFIED with xen-3.0.3-131.el5.

[1] boot up LZMA kernel successfully (compile RHEL6.1 kernel with LZMA compress option)
[2] boot up XZ kernel successfully (compile Fedora 15 kernel with XZ compress option), log as following:
---------------------------------------------------------------------------
xc_dom_allocate: cmdline=" ro root=UUID=856d91bb-55c1-400e-9df0-8460718a415b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us console=tty0 console=hvc0", features=""
xc_dom_kernel_file: filename="/var/lib/xen/boot_kernel.14p_rH"
xc_dom_malloc_filemap    : 2995 kB
xc_dom_ramdisk_file: filename="/var/lib/xen/boot_ramdisk.v2jY4Z"
xc_dom_malloc_filemap    : 13290 kB
xc_dom_boot_xen_init: ver 3.1, caps xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 
xc_dom_parse_image: called
xc_dom_find_loader: trying ELF-generic loader ... failed
xc_dom_find_loader: trying Linux bzImage loader ... XZ: Saw data stream end
_xc_try_lzma_decode: XZ decompress OK, 0x2e489c -> 0x7e29d0
OK
elf_parse_binary: phdr: paddr=0x400000 memsz=0x5d3000
elf_parse_binary: phdr: paddr=0x9d3000 memsz=0x4a0000
elf_parse_binary: memory: 0x400000 -> 0xe73000
elf_xen_parse_note: GUEST_OS = "linux"
elf_xen_parse_note: GUEST_VERSION = "2.6"
elf_xen_parse_note: XEN_VERSION = "xen-3.0"
---------------------------------------------------------------------------

Comment 35 Tomas Capek 2011-07-13 13:31:51 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, version 2.6.38 or newer kernels, which are compressed using the xz compression utility, could not be properly booted with the xen package. With this update, xz decompression  support has been added, thus fixing this bug.

Comment 36 errata-xmlrpc 2011-07-21 09:13:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1070.html

Comment 37 errata-xmlrpc 2011-07-21 12:08:05 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1070.html


Note You need to log in before you can comment on or make changes to this bug.