From: Juergen Gross <jgross@suse.com>
To: grub-devel@gnu.org
Cc: Juergen Gross <jgross@suse.com>,
phcoder@gmail.com, daniel.kiper@oracle.com,
xen-devel@lists.xen.org
Subject: [PATCH 7/8] xenpvh: support grub-install for xenpvh
Date: Wed, 29 Nov 2017 14:46:49 +0100 [thread overview]
Message-ID: <20171129134650.20102-8-jgross@suse.com> (raw)
In-Reply-To: <20171129134650.20102-1-jgross@suse.com>
Add xenpvh support to grub-install.
Signed-off-by: Juergen Gross <jgross@suse.com>
---
include/grub/util/install.h | 1 +
util/grub-install-common.c | 1 +
util/grub-install.c | 7 +++++++
3 files changed, 9 insertions(+)
diff --git a/include/grub/util/install.h b/include/grub/util/install.h
index 5910b0c09..faddbacc6 100644
--- a/include/grub/util/install.h
+++ b/include/grub/util/install.h
@@ -100,6 +100,7 @@ enum grub_install_plat
GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS,
GRUB_INSTALL_PLATFORM_I386_XEN,
GRUB_INSTALL_PLATFORM_X86_64_XEN,
+ GRUB_INSTALL_PLATFORM_I386_XENPVH,
GRUB_INSTALL_PLATFORM_ARM64_EFI,
GRUB_INSTALL_PLATFORM_ARM_COREBOOT,
GRUB_INSTALL_PLATFORM_MAX
diff --git a/util/grub-install-common.c b/util/grub-install-common.c
index 9e3e358c9..12b7aec6a 100644
--- a/util/grub-install-common.c
+++ b/util/grub-install-common.c
@@ -662,6 +662,7 @@ static struct
[GRUB_INSTALL_PLATFORM_X86_64_EFI] = { "x86_64", "efi" },
[GRUB_INSTALL_PLATFORM_I386_XEN] = { "i386", "xen" },
[GRUB_INSTALL_PLATFORM_X86_64_XEN] = { "x86_64", "xen" },
+ [GRUB_INSTALL_PLATFORM_I386_XENPVH] = { "i386", "xenpvh" },
[GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON] = { "mipsel", "loongson" },
[GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS] = { "mipsel", "qemu_mips" },
[GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS] = { "mips", "qemu_mips" },
diff --git a/util/grub-install.c b/util/grub-install.c
index ef912f5dd..212bc1f38 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -496,6 +496,7 @@ have_bootdev (enum grub_install_plat pl)
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
return 0;
/* pacify warning. */
@@ -913,6 +914,7 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
break;
case GRUB_INSTALL_PLATFORM_I386_QEMU:
@@ -960,6 +962,7 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS:
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
free (install_device);
install_device = NULL;
break;
@@ -1477,6 +1480,7 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
grub_util_warn ("%s", _("no hints available for your platform. Expect reduced performance"));
break;
/* pacify warning. */
@@ -1568,6 +1572,7 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275:
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
core_name = "core.elf";
snprintf (mkimage_target, sizeof (mkimage_target),
"%s-%s",
@@ -1660,6 +1665,7 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_SPARC64_IEEE1275:
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
break;
/* pacify warning. */
case GRUB_INSTALL_PLATFORM_MAX:
@@ -1918,6 +1924,7 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_I386_QEMU:
case GRUB_INSTALL_PLATFORM_I386_XEN:
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
+ case GRUB_INSTALL_PLATFORM_I386_XENPVH:
grub_util_warn ("%s",
_("WARNING: no platform-specific install was performed"));
break;
--
2.12.3
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2017-11-29 13:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20171129134650.20102-1-jgross@suse.com>
2017-11-29 13:46 ` [PATCH 1/8] xen: add some xen headers Juergen Gross
2018-02-15 11:12 ` Daniel Kiper
2017-11-29 13:46 ` [PATCH 2/8] loader/linux: support passing rsdp address via boot params Juergen Gross
2018-02-15 11:17 ` Daniel Kiper
2017-11-29 13:46 ` [PATCH 3/8] xen: carve out grant tab initialization into dedicated function Juergen Gross
2017-11-29 13:46 ` [PATCH 4/8] xen: add xen pvh guest support to grub-core Juergen Gross
2017-11-29 13:46 ` [PATCH 5/8] xenpvh: add build runes for grub-core Juergen Gross
2018-02-15 11:39 ` Daniel Kiper
2017-11-29 13:46 ` [PATCH 6/8] xenpvh: support building a standalone image Juergen Gross
2018-02-15 11:47 ` Daniel Kiper
2017-11-29 13:46 ` Juergen Gross [this message]
2018-02-15 11:49 ` [PATCH 7/8] xenpvh: support grub-install for xenpvh Daniel Kiper
2017-11-29 13:46 ` [PATCH 8/8] xenpvh: add support to configure Juergen Gross
2018-02-15 11:51 ` Daniel Kiper
2017-11-30 21:03 ` [PATCH 0/8] xen: add pvh guest support Daniel Kiper
2017-12-01 5:37 ` Juergen Gross
2017-12-01 11:12 ` Daniel Kiper
2017-12-14 11:19 ` Daniel Kiper
[not found] ` <20171214111952.GH4531@olila.local.net-space.pl>
2017-12-14 11:26 ` Juergen Gross
[not found] ` <3e5282dd-c819-5963-52a9-77bc18832ea5@suse.com>
2017-12-14 11:32 ` Daniel Kiper
[not found] ` <20171214113237.GJ4531@olila.local.net-space.pl>
2017-12-14 11:44 ` Juergen Gross
[not found] ` <f18b85e9-5bfd-8e6a-f939-46f20cf25d95@suse.com>
2018-01-29 12:15 ` Daniel Kiper
2018-01-29 13:33 ` Juergen Gross
[not found] ` <20171129134650.20102-4-jgross@suse.com>
2018-02-15 11:26 ` [PATCH 3/8] xen: carve out grant tab initialization into dedicated function Daniel Kiper
[not found] ` <20171129134650.20102-5-jgross@suse.com>
2018-02-15 11:31 ` [PATCH 4/8] xen: add xen pvh guest support to grub-core Daniel Kiper
2018-02-15 12:02 ` [PATCH 0/8] xen: add pvh guest support Daniel Kiper
[not found] ` <20180215120250.GB19041@olila.local.net-space.pl>
2018-10-09 9:35 ` Juergen Gross
[not found] ` <99628ba5-f300-0d0a-0484-c357b38058c7@suse.com>
2018-10-09 12:54 ` 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=20171129134650.20102-8-jgross@suse.com \
--to=jgross@suse.com \
--cc=daniel.kiper@oracle.com \
--cc=grub-devel@gnu.org \
--cc=phcoder@gmail.com \
--cc=xen-devel@lists.xen.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).