Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595354 - app-emulation/xen-pvgrub-4.7.0 fails to boot certain guest kernels
Summary: app-emulation/xen-pvgrub-4.7.0 fails to boot certain guest kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-28 12:03 UTC by Sven
Modified: 2016-10-11 07:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch that fixes the issue (0001-pvgrub-fix-crash-when-booting-kernel-with-p2m-list-o.patch,1.39 KB, patch)
2016-09-28 12:04 UTC, Sven
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2016-09-28 12:03:13 UTC
pvgrub 4.7.0 fails to boot certain guest kernels. In my case, it's a 4.4.21 kernel compiled from the sources at kernel.org. The boot process fails with the following error (output of xl create -c):

  Booting 'Gentoo'

root (hd0)
 Filesystem type is ext2fs, using whole disk
kernel /boot/vmlinuz ro root=/dev/xvda1 rootfstype=ext4

============= Init TPM Front ================
Tpmfront:Error Unable to read device/vtpm/0/backend-id during tpmfront
initialization! error = ENOENT
Tpmfront:Info Shutting down tpmfront
pin_table(x) returned 28993

Error 9: Unknown boot failure

Press any key to continue...
Comment 1 Sven 2016-09-28 12:04:22 UTC
Created attachment 448204 [details, diff]
patch that fixes the issue

Patch that fixed the issue provided by Juergen Gross on xen-devel
Comment 3 Yixun Lan archtester gentoo-dev 2016-10-11 07:48:16 UTC
hi sven & Peter Große, many thanks for reporting this and tracking this down
also, sorry for my late response and the fix ..

commit 732369cdddba45a22cc9cb6a124bd523f12aa05c
Author: Yixun Lan <dlan@gentoo.org>
Date:   Tue Oct 11 15:42:53 2016 +0800

    app-emulation/xen-pvgrub: fix boot certain guest kernel
    
    pvgrub: fix crash when booting kernel with p2m list outside kernel mapping
    https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=9714f6b87e19b32d3a6663a20df6610265c4bfe5
    
    Gentoo-Bug: 595354
    
    Package-Manager: portage-2.3.1

:000000 100644 00000000.. e9c8040... A  app-emulation/xen-pvgrub/files/xen-pvgrub-4.7.0-fix-boot-p2m.patch
:000000 100644 00000000.. 0f9ab30... A  app-emulation/xen-pvgrub/xen-pvgrub-4.7.0-r1.ebuild