xen_pvh: Support grub-install for xen_pvh
Add xen_pvh support to grub-install. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Tested-by: Hans van Kranenburg <hans@knorrie.org>
This commit is contained in:
parent
78899c42d7
commit
90b7b14fa5
3 changed files with 9 additions and 0 deletions
|
@ -100,6 +100,7 @@ enum grub_install_plat
|
||||||
GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS,
|
GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS,
|
||||||
GRUB_INSTALL_PLATFORM_I386_XEN,
|
GRUB_INSTALL_PLATFORM_I386_XEN,
|
||||||
GRUB_INSTALL_PLATFORM_X86_64_XEN,
|
GRUB_INSTALL_PLATFORM_X86_64_XEN,
|
||||||
|
GRUB_INSTALL_PLATFORM_I386_XEN_PVH,
|
||||||
GRUB_INSTALL_PLATFORM_ARM64_EFI,
|
GRUB_INSTALL_PLATFORM_ARM64_EFI,
|
||||||
GRUB_INSTALL_PLATFORM_ARM_COREBOOT,
|
GRUB_INSTALL_PLATFORM_ARM_COREBOOT,
|
||||||
GRUB_INSTALL_PLATFORM_MAX
|
GRUB_INSTALL_PLATFORM_MAX
|
||||||
|
|
|
@ -716,6 +716,7 @@ static struct
|
||||||
[GRUB_INSTALL_PLATFORM_X86_64_EFI] = { "x86_64", "efi" },
|
[GRUB_INSTALL_PLATFORM_X86_64_EFI] = { "x86_64", "efi" },
|
||||||
[GRUB_INSTALL_PLATFORM_I386_XEN] = { "i386", "xen" },
|
[GRUB_INSTALL_PLATFORM_I386_XEN] = { "i386", "xen" },
|
||||||
[GRUB_INSTALL_PLATFORM_X86_64_XEN] = { "x86_64", "xen" },
|
[GRUB_INSTALL_PLATFORM_X86_64_XEN] = { "x86_64", "xen" },
|
||||||
|
[GRUB_INSTALL_PLATFORM_I386_XEN_PVH] = { "i386", "xen_pvh" },
|
||||||
[GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON] = { "mipsel", "loongson" },
|
[GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON] = { "mipsel", "loongson" },
|
||||||
[GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS] = { "mipsel", "qemu_mips" },
|
[GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS] = { "mipsel", "qemu_mips" },
|
||||||
[GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS] = { "mips", "qemu_mips" },
|
[GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS] = { "mips", "qemu_mips" },
|
||||||
|
|
|
@ -496,6 +496,7 @@ have_bootdev (enum grub_install_plat pl)
|
||||||
|
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* pacify warning. */
|
/* pacify warning. */
|
||||||
|
@ -908,6 +909,7 @@ main (int argc, char *argv[])
|
||||||
case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
|
case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GRUB_INSTALL_PLATFORM_I386_QEMU:
|
case GRUB_INSTALL_PLATFORM_I386_QEMU:
|
||||||
|
@ -955,6 +957,7 @@ main (int argc, char *argv[])
|
||||||
case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS:
|
case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS:
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
free (install_device);
|
free (install_device);
|
||||||
install_device = NULL;
|
install_device = NULL;
|
||||||
break;
|
break;
|
||||||
|
@ -1462,6 +1465,7 @@ main (int argc, char *argv[])
|
||||||
case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
|
case GRUB_INSTALL_PLATFORM_ARM_UBOOT:
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
grub_util_warn ("%s", _("no hints available for your platform. Expect reduced performance"));
|
grub_util_warn ("%s", _("no hints available for your platform. Expect reduced performance"));
|
||||||
break;
|
break;
|
||||||
/* pacify warning. */
|
/* pacify warning. */
|
||||||
|
@ -1553,6 +1557,7 @@ main (int argc, char *argv[])
|
||||||
case GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275:
|
case GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275:
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
core_name = "core.elf";
|
core_name = "core.elf";
|
||||||
snprintf (mkimage_target, sizeof (mkimage_target),
|
snprintf (mkimage_target, sizeof (mkimage_target),
|
||||||
"%s-%s",
|
"%s-%s",
|
||||||
|
@ -1645,6 +1650,7 @@ main (int argc, char *argv[])
|
||||||
case GRUB_INSTALL_PLATFORM_SPARC64_IEEE1275:
|
case GRUB_INSTALL_PLATFORM_SPARC64_IEEE1275:
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
break;
|
break;
|
||||||
/* pacify warning. */
|
/* pacify warning. */
|
||||||
case GRUB_INSTALL_PLATFORM_MAX:
|
case GRUB_INSTALL_PLATFORM_MAX:
|
||||||
|
@ -1911,6 +1917,7 @@ main (int argc, char *argv[])
|
||||||
case GRUB_INSTALL_PLATFORM_I386_QEMU:
|
case GRUB_INSTALL_PLATFORM_I386_QEMU:
|
||||||
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
case GRUB_INSTALL_PLATFORM_I386_XEN:
|
||||||
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
case GRUB_INSTALL_PLATFORM_X86_64_XEN:
|
||||||
|
case GRUB_INSTALL_PLATFORM_I386_XEN_PVH:
|
||||||
grub_util_warn ("%s",
|
grub_util_warn ("%s",
|
||||||
_("WARNING: no platform-specific install was performed"));
|
_("WARNING: no platform-specific install was performed"));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue