projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
146786b
)
x86: allow EFI reboot method neither on non-EFI platforms...
author
Daniel Kiper
<daniel.kiper@oracle.com>
Wed, 7 Dec 2016 13:37:11 +0000
(14:37 +0100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/xen/arch/x86/shutdown.c
b/xen/arch/x86/shutdown.c
index 7a1a73a223561833e688924d56a18d5425fce623..55f68403f4635018a3267108f9920711e3a55ad5 100644
(file)
--- a/
xen/arch/x86/shutdown.c
+++ b/
xen/arch/x86/shutdown.c
@@
-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);