kexec.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Varad Gautam <vrd@amazon.de>
Cc: kexec@lists.infradead.org, David Woodhouse <dwmw@amazon.co.uk>
Subject: Re: [PATCH 2/3] kexec: Introduce --load-live-update for xen
Date: Wed, 1 Apr 2020 14:47:38 +0200	[thread overview]
Message-ID: <20200401124738.GE29376@vergenet.net> (raw)
In-Reply-To: <1581066033-25120-2-git-send-email-vrd@amazon.de>

On Fri, Feb 07, 2020 at 10:00:32AM +0100, Varad Gautam wrote:
> Xen is intended to expose a KEXEC_TYPE_LIVE_UPDATE operation which
> implies a stateful-kexec into a new xen image - or a "live update".
> Make kexec-tools capable of triggering a live update.
> 
> For a multiboot2 xen image, this will:
> - load a xen Elf into into KEXEC_RANGE_MA_XEN
> - load purgatory and modules into KEXEC_RANGE_MA_LIVEUPDATE
> - append Elf cmdline with " liveupdate=<size>@<addr>
> 
> Signed-off-by: Varad Gautam <vrd@amazon.de>
> CC: David Woodhouse <dwmw@amazon.co.uk>

Sorry for the long delay.

This patch does not appear to compile.

gcc -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wformat -O2 -fomit-frame-pointer -pipe -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/  -I./kexec/arch/x86_64/include  -c -MD -o kexec/kexec.o kexec/kexec.c
kexec/kexec.c: In function ‘my_shutdown’:
kexec/kexec.c:889:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   "shutdown",
   ^~~~~~~~~~
kexec/kexec.c:890:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   "-r",
   ^~~~
kexec/kexec.c:891:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   "now",
   ^~~~~
kexec/kexec.c: In function ‘cmdline_add_liveupdate’:
kexec/kexec.c:1187:2: warning: implicit declaration of function ‘xen_get_kexec_range’; did you mean ‘xen_kexec_status’? [-Wimplicit-function-declaration]
  xen_get_kexec_range(KEXEC_RANGE_MA_LIVEUPDATE, &lu_start, &lu_end);
  ^~~~~~~~~~~~~~~~~~~
  xen_kexec_status
kexec/kexec.c:1187:22: error: ‘KEXEC_RANGE_MA_LIVEUPDATE’ undeclared (first use in this function)
  xen_get_kexec_range(KEXEC_RANGE_MA_LIVEUPDATE, &lu_start, &lu_end);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
kexec/kexec.c:1187:22: note: each undeclared identifier is reported only once for each function it appears in
kexec/kexec.c: In function ‘main’:
kexec/kexec.c:1433:37: error: ‘KEXEC_LIVE_UPDATE’ undeclared (first use in this function); did you mean ‘KEXEC_LOADED_PATH’?
            KEXEC_PRESERVE_CONTEXT : KEXEC_LIVE_UPDATE;
                                     ^~~~~~~~~~~~~~~~~
                                     KEXEC_LOADED_PATH
kexec/kexec.c:1374:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
    kexec_debug = 1;
    ~~~~~~~~~~~~^~~
kexec/kexec.c:1375:3: note: here
   case OPT_NOIFDOWN:
   ^~~~
make: *** [Makefile:114: kexec/kexec.o] Error 1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

       reply	other threads:[~2020-04-01 12:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1581066033-25120-1-git-send-email-vrd@amazon.de>
     [not found] ` <1581066033-25120-2-git-send-email-vrd@amazon.de>
2020-04-01 12:47   ` Simon Horman [this message]
2020-04-01 14:05     ` [PATCH 2/3] kexec: Introduce --load-live-update for xen vrd

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=20200401124738.GE29376@vergenet.net \
    --to=horms@verge.net.au \
    --cc=dwmw@amazon.co.uk \
    --cc=kexec@lists.infradead.org \
    --cc=vrd@amazon.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).