From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Keir Fraser <keir@xen.org>, Jan Beulich <jbeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH 1/2] x86: Don't apply reboot quirks if reboot set by user
Date: Wed, 11 Mar 2015 10:36:53 -0400 [thread overview]
Message-ID: <20150311143653.GD27525@l.oracle.com> (raw)
In-Reply-To: <1426074292-32624-1-git-send-email-ross.lagerwall@citrix.com>
On Wed, Mar 11, 2015 at 11:44:51AM +0000, Ross Lagerwall wrote:
> 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>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> ---
> xen/arch/x86/shutdown.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/xen/arch/x86/shutdown.c b/xen/arch/x86/shutdown.c
> index 21f6cf5..236b4a1 100644
> --- a/xen/arch/x86/shutdown.c
> +++ b/xen/arch/x86/shutdown.c
> @@ -35,6 +35,7 @@ enum reboot_type {
> };
>
> static int reboot_mode;
> +static bool_t reboot_default = 1;
>
> /*
> * reboot=t[riple] | k[bd] | a[cpi] | p[ci] | n[o] [, [w]arm | [c]old]
> @@ -51,6 +52,8 @@ static void __init set_reboot_type(char *str)
> {
> for ( ; ; )
> {
> + reboot_default = 0;
> +
> switch ( *str )
> {
> case 'n': /* no reboot */
> @@ -452,6 +455,13 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = {
>
> static int __init reboot_init(void)
> {
> + /*
> + * Only do the DMI check if reboot_type hasn't been overridden
> + * on the command line
> + */
> + if ( !reboot_default )
> + return 0;
> +
> dmi_check_system(reboot_dmi_table);
> return 0;
> }
> --
> 2.1.0
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
prev parent reply other threads:[~2015-03-11 14:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 11:44 [PATCH 1/2] x86: Don't apply reboot quirks if reboot set by user Ross Lagerwall
2015-03-11 11:44 ` [PATCH 2/2] CA-162192: Fix rebooting on some EFI-booted systems Ross Lagerwall
2015-03-11 12:26 ` Andrew Cooper
2015-03-11 14:08 ` Jan Beulich
2015-03-11 14:36 ` Konrad Rzeszutek Wilk
2015-03-11 15:19 ` Jan Beulich
2015-03-11 18:49 ` Konrad Rzeszutek Wilk
2015-03-12 11:44 ` Jan Beulich
2015-03-12 13:43 ` Konrad Rzeszutek Wilk
2015-03-12 14:07 ` Andrew Cooper
2015-03-12 14:39 ` Jan Beulich
2015-03-11 12:13 ` [PATCH 1/2] x86: Don't apply reboot quirks if reboot set by user Andrew Cooper
2015-03-11 14:05 ` Jan Beulich
2015-03-11 14:36 ` Konrad Rzeszutek Wilk [this message]
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=20150311143653.GD27525@l.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xen.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.