[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 1/2] Add a kexec_crash_loaded() function
- To: Petr Tesarik <ptesarik@xxxxxxxx>
- From: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2016 05:52:33 -0700
- Cc: Juergen Gross <jgross@xxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" <x86@xxxxxxxxxx>, "open list:KEXEC" <kexec@xxxxxxxxxxxxxxxxxxx>, open list <linux-kernel@xxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Eric Biederman <ebiederm@xxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, "moderated list:XEN HYPERVISOR INTERFACE" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx>, Dave Young <dyoung@xxxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, David Vrabel <david.vrabel@xxxxxxxxxx>
- Delivery-date: Wed, 13 Jul 2016 12:52:55 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
On Wed, Jul 13, 2016 at 02:19:55PM +0200, Petr Tesarik wrote:
> --- a/kernel/kexec_core.c
> +++ b/kernel/kexec_core.c
> @@ -95,6 +95,12 @@ int kexec_should_crash(struct task_struct *p)
> return 0;
> }
>
> +int kexec_crash_loaded(void)
> +{
> + return !!kexec_crash_image;
> +}
Nit: this function should return bool rather than int, since it
effectively returns true/false.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|