]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
x86: allow EFI reboot method neither on non-EFI platforms...
authorDaniel Kiper <daniel.kiper@oracle.com>
Wed, 7 Dec 2016 13:37:11 +0000 (14:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 13:37:11 +0000 (14:37 +0100)
... nor EFI platforms with runtime services enabled.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/shutdown.c

index 7a1a73a223561833e688924d56a18d5425fce623..55f68403f4635018a3267108f9920711e3a55ad5 100644 (file)
@@ -80,6 +80,9 @@ static void __init set_reboot_type(char *str)
             break;
         str++;
     }
+
+    if ( reboot_type == BOOT_EFI && !efi_enabled(EFI_RS) )
+        reboot_type = BOOT_INVALID;
 }
 custom_param("reboot", set_reboot_type);