Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 448204 Details for
Bug 595354
app-emulation/xen-pvgrub-4.7.0 fails to boot certain guest kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch that fixes the issue
0001-pvgrub-fix-crash-when-booting-kernel-with-p2m-list-o.patch (text/plain), 1.39 KB, created by
Sven
on 2016-09-28 12:04:22 UTC
(
hide
)
Description:
patch that fixes the issue
Filename:
MIME Type:
Creator:
Sven
Created:
2016-09-28 12:04:22 UTC
Size:
1.39 KB
patch
obsolete
>From 62a69c20e2184a630efdaff87ddbb768d75c73be Mon Sep 17 00:00:00 2001 >From: Juergen Gross <jgross@suse.com> >Date: Tue, 27 Sep 2016 14:03:09 +0200 >Subject: [PATCH] pvgrub: fix crash when booting kernel with p2m list outside > kernel mapping > >When trying to boot a kernel with the p2m list not mapped by the >initial kernel mapping it can happen that pvgrub is failing as it is >keeping some page tables mapped. > >Unmap the additional page tables created for the special p2m mapping >will avoid this failure. > >Reported-by: Sven Koehler <sven.koehler@gmail.com> >Signed-off-by: Juergen Gross <jgross@suse.com> >--- >This is a backport candidate for 4.7 >--- > stubdom/grub/kexec.c | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/stubdom/grub/kexec.c b/stubdom/grub/kexec.c >index 2ed4f6c..437a0a9 100644 >--- a/stubdom/grub/kexec.c >+++ b/stubdom/grub/kexec.c >@@ -347,6 +347,8 @@ void kexec(void *kernel, long kernel_size, void *module, long module_size, char > /* Unmap libxc's projection of the boot page table */ > seg = xc_dom_seg_to_ptr(dom, &dom->pgtables_seg); > munmap(seg, dom->pgtables_seg.vend - dom->pgtables_seg.vstart); >+ seg = xc_dom_seg_to_ptr(dom, &dom->p2m_seg); >+ munmap(seg, dom->p2m_seg.vend - dom->p2m_seg.vstart); > > /* Unmap day0 pages to avoid having a r/w mapping of the future page table */ > for (pfn = 0; pfn < allocated; pfn++) >-- >2.6.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 595354
: 448204