Re: [PATCH] x86/reboot: Avoid EFI reboot when not running on EFI

2019-09-13 Thread Ard Biesheuvel
On Thu, 29 Aug 2019 at 07:34, Bradford, Robert wrote: > > On Thu, 2019-08-29 at 14:18 +0200, Thomas Gleixner wrote: > > On Thu, 29 Aug 2019, Rob Bradford wrote: > > > > CC+ Ard > > > > > Replace the check using efi_runtime_disabled() which only checks if > > > EFI > > > runtime was disabled on

Re: [PATCH] x86/reboot: Avoid EFI reboot when not running on EFI

2019-09-12 Thread Bradford, Robert
On Thu, 2019-08-29 at 15:34 +0100, Bradford, Robert wrote: > On Thu, 2019-08-29 at 14:18 +0200, Thomas Gleixner wrote: > > On Thu, 29 Aug 2019, Rob Bradford wrote: > > > > CC+ Ard > > > > > Replace the check using efi_runtime_disabled() which only checks > > > if > > > EFI > > > runtime was

Re: [PATCH] x86/reboot: Avoid EFI reboot when not running on EFI

2019-08-29 Thread Bradford, Robert
On Thu, 2019-08-29 at 14:18 +0200, Thomas Gleixner wrote: > On Thu, 29 Aug 2019, Rob Bradford wrote: > > CC+ Ard > > > Replace the check using efi_runtime_disabled() which only checks if > > EFI > > runtime was disabled on the kernel command line with a call to > >

Re: [PATCH] x86/reboot: Avoid EFI reboot when not running on EFI

2019-08-29 Thread Thomas Gleixner
On Thu, 29 Aug 2019, Rob Bradford wrote: CC+ Ard > Replace the check using efi_runtime_disabled() which only checks if EFI > runtime was disabled on the kernel command line with a call to > efi_enabled(EFI_RUNTIME_SERVICES) to check if EFI runtime services are > available. > > In the situation

[PATCH] x86/reboot: Avoid EFI reboot when not running on EFI

2019-08-29 Thread Rob Bradford
Replace the check using efi_runtime_disabled() which only checks if EFI runtime was disabled on the kernel command line with a call to efi_enabled(EFI_RUNTIME_SERVICES) to check if EFI runtime services are available. In the situation where the kernel was booted without an EFI environment then