From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
Ross Lagerwall <ross.lagerwall@citrix.com>,
xen-devel <xen-devel@lists.xenproject.org>
Cc: Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2] x86/EFI: allow reboot= overrides when running under EFI
Date: Fri, 13 Mar 2015 11:23:40 +0000 [thread overview]
Message-ID: <5502C8BC.3050608@citrix.com> (raw)
In-Reply-To: <5502CBE40200007800069AF2@mail.emea.novell.com>
On 13/03/15 10:37, Jan Beulich wrote:
>>>> On 12.03.15 at 17:43, <andrew.cooper3@citrix.com> wrote:
>> On 12/03/15 16:32, Jan Beulich wrote:
>>> By default we will always use EFI reboot mechanism when
>>> running under EFI platforms. However some EFI platforms
>>> are buggy and need to use the ACPI mechanism to
>>> reboot (such as Lenovo ThinkCentre M57). As such
>>> respect the 'reboot=' override and DMI overrides
>>> for EFI platforms.
>>>
>>> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>>>
>>> - BOOT_INVALID is just zero
>>> - also consider acpi_disabled in BOOT_INVALID resolution
>>> - duplicate BOOT_INVALID resolution in machine_restart()
>>> - don't fall back from BOOT_ACPI to BOOT_EFI (if it was overridden, it
>>> surely was for a reason)
>>> - adjust doc change formatting
>>>
>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>>> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>
>> Are you happy merging this with Ross's v2 patch (my review still
>> withstanding), with which this conflicts?
> And which allows this to become even less of a change:
>
> x86: don't apply reboot quirks if reboot set by user
>
> If reboot= is specified on the command-line, don't apply reboot quirks
> to allow the command-line option to take precedence.
>
> This is a port of Linux commit 5955633e91bf ("x86/reboot: Skip DMI
> checks if reboot set by user").
>
> Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
>
> Leverage (and make apply on top of) c643fb110a ("x86/EFI: allow
> reboot= overrides when running under EFI").
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
>
> --- a/xen/arch/x86/shutdown.c
> +++ b/xen/arch/x86/shutdown.c
> @@ -464,6 +464,13 @@ static struct dmi_system_id __initdata r
>
> static int __init reboot_init(void)
> {
> + /*
> + * Only do the DMI check if reboot_type hasn't been overridden
> + * on the command line
> + */
> + if ( reboot_type != BOOT_INVALID )
> + return 0;
> +
> default_reboot_type();
> dmi_check_system(reboot_dmi_table);
> return 0;
>
>
>
next prev parent reply other threads:[~2015-03-13 11:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 16:32 [PATCH v2] x86/EFI: allow reboot= overrides when running under EFI Jan Beulich
2015-03-12 16:43 ` Andrew Cooper
2015-03-13 10:37 ` Jan Beulich
2015-03-13 11:23 ` Andrew Cooper [this message]
2015-03-13 13:12 ` Konrad Rzeszutek Wilk
2015-03-23 9:21 ` Ross Lagerwall
2015-03-23 13:13 ` Konrad Rzeszutek Wilk
2015-03-23 16:06 ` Ross Lagerwall
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=5502C8BC.3050608@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.