From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Daniel Kiper <daniel.kiper@oracle.com>
Cc: Juergen Gross <JGross@suse.com>,
sstabellini@kernel.org, ning.sun@intel.com,
andrew.cooper3@citrix.com, Doug Goldstein <cardoe@cardoe.com>,
pgnet.dev@gmail.com, julien.grall@arm.com,
Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xenproject.org, qiaowei.ren@intel.com,
gang.wei@intel.com, fu.wei@linaro.org
Subject: Re: [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms
Date: Wed, 8 Mar 2017 11:46:37 -0500 [thread overview]
Message-ID: <20170308164637.GC7367@char.us.oracle.com> (raw)
In-Reply-To: <20170308141729.GC31053@olila.local.net-space.pl>
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
..snip..
> > Now in the process I discovered that my patch for grub-mkconfig to
> > detect multiboot2 payloads and use those instead of multiboot never
> > made it upstream, so I had to modify my grub.cfg by hand (see below).
>
> It will be nice if you post it after GRUB2 2.02 release.
OK, I will wait (but attaching it here).
[-- Attachment #2: 0001-Use-grub-file-to-figure-out-whether-multiboot2-shoul.patch --]
[-- Type: text/plain, Size: 1981 bytes --]
>From 89a85f31602f6d5f7355ffe6e246059e63cab973 Mon Sep 17 00:00:00 2001
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Date: Wed, 8 Mar 2017 11:42:43 -0500
Subject: [PATCH] Use grub-file to figure out whether multiboot2 should be used
for Xen.gz
The multiboot2 is much more preferable than multiboot. Especially
if booting under EFI where multiboot does not have the functionality
to pass ImageHandler.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
util/grub.d/20_linux_xen.in | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
index c48af94..7aae59f 100644
--- a/util/grub.d/20_linux_xen.in
+++ b/util/grub.d/20_linux_xen.in
@@ -85,6 +85,10 @@ linux_entry ()
type="$4"
args="$5"
xen_args="$6"
+ ver=""
+ if $($grub_file --is-x86-multiboot2 ${xen_dirname}/${xen_basename}); then
+ ver="2"
+ fi
if [ -z "$boot_device_id" ]; then
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
fi
@@ -122,16 +126,16 @@ linux_entry ()
else
xen_rm_opts="no-real-mode edd=off"
fi
- multiboot ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
+ multiboot${ver} ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
echo '$(echo "$lmessage" | grub_quote)'
- module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
+ module${ver} ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
EOF
if test -n "${initrd}" ; then
# TRANSLATORS: ramdisk isn't identifier. Should be translated.
message="$(gettext_printf "Loading initial ramdisk ...")"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
- module --nounzip ${rel_dirname}/${initrd}
+ module${ver} --nounzip ${rel_dirname}/${initrd}
EOF
fi
sed "s/^/$submenu_indentation/" << EOF
--
2.9.3
[-- Attachment #3: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-03-08 16:46 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 19:19 [PATCH v16 0/9] x86: multiboot2 protocol support Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 1/9] x86: add " Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 2/9] efi: build xen.gz with EFI code Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 3/9] efi: create new early memory allocator Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms Daniel Kiper
2017-02-21 19:24 ` Daniel Kiper
2017-02-22 13:42 ` Jan Beulich
2017-02-22 13:46 ` Doug Goldstein
2017-02-22 15:34 ` Daniel Kiper
2017-02-22 17:04 ` Doug Goldstein
2017-03-06 23:39 ` Daniel Kiper
2017-03-08 3:44 ` Konrad Rzeszutek Wilk
2017-03-08 14:17 ` Daniel Kiper
2017-03-08 16:46 ` Konrad Rzeszutek Wilk [this message]
2017-03-09 20:02 ` Doug Goldstein
2017-03-09 22:20 ` Konrad Rzeszutek Wilk
2017-03-15 11:35 ` Daniel Kiper
2017-03-15 14:27 ` Doug Goldstein
2017-03-15 14:38 ` Daniel Kiper
2017-03-15 14:42 ` Doug Goldstein
2017-03-15 15:02 ` Daniel Kiper
2017-03-16 12:12 ` Daniel Kiper
2017-03-16 13:12 ` Jan Beulich
2017-03-16 13:35 ` Daniel Kiper
2017-03-16 13:43 ` Jan Beulich
2017-03-21 13:05 ` Daniel Kiper
2017-03-21 13:48 ` Jan Beulich
2017-03-09 15:24 ` Daniel Kiper
2017-03-09 15:41 ` Andrew Cooper
2017-03-09 15:45 ` Jan Beulich
2017-02-21 19:19 ` [PATCH v16 5/9] x86: change default load address from 1 MiB to 2 MiB Daniel Kiper
2017-03-01 9:05 ` Jan Beulich
2017-03-01 10:13 ` Daniel Kiper
2017-03-01 10:34 ` Jan Beulich
2017-03-01 10:51 ` Daniel Kiper
2017-03-01 11:21 ` Jan Beulich
2017-03-06 14:51 ` Daniel Kiper
2017-03-06 14:59 ` Jan Beulich
2017-02-21 19:19 ` [PATCH v16 6/9] x86/setup: use XEN_IMG_OFFSET instead of Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 7/9] x86: make Xen early boot code relocatable Daniel Kiper
2017-04-07 11:23 ` Jan Beulich
2017-04-13 14:11 ` Daniel Kiper
2017-04-13 19:43 ` Doug Goldstein
2017-04-14 10:46 ` Daniel Kiper
2017-04-14 1:44 ` Konrad Rzeszutek Wilk
2017-04-14 10:50 ` Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 8/9] x86/boot: rename sym_phys() to sym_offs() Daniel Kiper
2017-02-21 19:19 ` [PATCH v16 9/9] x86: add multiboot2 protocol support for relocatable images Daniel Kiper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170308164637.GC7367@char.us.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=JGross@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=daniel.kiper@oracle.com \
--cc=fu.wei@linaro.org \
--cc=gang.wei@intel.com \
--cc=julien.grall@arm.com \
--cc=ning.sun@intel.com \
--cc=pgnet.dev@gmail.com \
--cc=qiaowei.ren@intel.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).