xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: msw@amazon.com, aliguori@amazon.com, amesserl@rackspace.com,
	rick.harris@rackspace.com, paul.voccio@rackspace.com,
	steven.wilson@rackspace.com, major.hayden@rackspace.com,
	josh.kearney@rackspace.com, jinsong.liu@alibaba-inc.com,
	xiantao.zxt@alibaba-inc.com, daniel.kiper@oracle.com,
	Elena Ufimtseva <elena.ufimtseva@oracle.com>,
	"bob.liu@oracle.com" <bob.liu@oracle.com>,
	"hanweidong@huawei.com" <hanweidong@huawei.com>,
	"peter.huangpeng@huawei.com" <peter.huangpeng@huawei.com>,
	"fanhenglong@huawei.com" <fanhenglong@huawei.com>,
	"liuyingdong@huawei.com" <liuyingdong@huawei.com>,
	"john.liuqiming@huawei.com" <john.liuqiming@huawei.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"jbeulich@suse.com" <jbeulich@suse.com>,
	Andrew Cooper <Andrew.Cooper3@citrix.com>,
	"jeremy@goop.org" <jeremy@goop.org>,
	dslutz@verizon.com, mpohlack@amazon.com
Subject: Re: [RFC v3] xSplice design
Date: Fri, 10 Jul 2015 16:30:50 -0400	[thread overview]
Message-ID: <20150710203050.GA32625@l.oracle.com> (raw)
In-Reply-To: <20150706202656.GA10642@l.oracle.com>

On Mon, Jul 06, 2015 at 04:26:56PM -0400, Konrad Rzeszutek Wilk wrote:
> Since RFC v2 [http://lists.xen.org/archives/html/xen-devel/2015-05/msg02142.html]
>  - Ingested every review comment in.
> 
> For those who prefer an diff of what changed between v2 and this
> I am attaching an diff to help easy reviewing.

I made a bit of mess with the #define. Attached is a diff against
this file which fixes some of the numbering issues.

diff --git a/docs/misc/xsplice.markdown b/docs/misc/xsplice.markdown
index 29cd238..576debd 100644
--- a/docs/misc/xsplice.markdown
+++ b/docs/misc/xsplice.markdown
@@ -747,11 +747,11 @@ The `summary` structure contains an summary of payload which includes:
 
  * `id` the unique id.
  * `status` - whether it has been:
- 1. *XSPLICE_STATUS_LOADED* (0) has been loaded.
- 2. *XSPLICE_STATUS_PROGRESS* (1) acting on the **XEN_SYSCTL_XSPLICE_ACTION** command.
- 3. *XSPLICE_STATUS_CHECKED*  (2) the ELF payload safety checks passed.
- 4. *XSPLICE_STATUS_APPLIED* (3) loaded, checked, and applied.
- 5. *XSPLICE_STATUS_REVERTED* (4) loaded, checked, applied and then also reverted.
+ 1. *XSPLICE_STATUS_LOADED* (1) has been loaded.
+ 2. *XSPLICE_STATUS_PROGRESS* (2) acting on the **XEN_SYSCTL_XSPLICE_ACTION** command.
+ 3. *XSPLICE_STATUS_CHECKED*  (3) the ELF payload safety checks passed.
+ 4. *XSPLICE_STATUS_APPLIED* (4) loaded, checked, and applied.
+ 5. *XSPLICE_STATUS_REVERTED* (5) loaded, checked, applied and then also reverted.
  6. Negative values is an error. The error would be of EXX format.
 
 The return value is zero on success and EXX on failure. This operation
@@ -760,11 +760,11 @@ is synchronous and does not require preemption.
 The structure is as follow:
 
 <pre>
-#define XSPLICE_STATUS_LOADED    0  
-#define XSPLICE_STATUS_PROGRESS  1  
-#define XSPLICE_STATUS_CHECKED   2  
-#define XSPLICE_STATUS_APPLIED   3  
-#define XSPLICE_STATUS_REVERTED  4  
+#define XSPLICE_STATUS_LOADED    1  
+#define XSPLICE_STATUS_PROGRESS  2  
+#define XSPLICE_STATUS_CHECKED   3  
+#define XSPLICE_STATUS_APPLIED   4  
+#define XSPLICE_STATUS_REVERTED  5  
 
 struct xen_sysctl_xsplice_summary {  
     char id[40];  /* IN/OUT, name of the patch. */  
@@ -805,11 +805,11 @@ The `summary` structure contains an summary of payload which includes:
  * `version` version of the data.
  * `id` unique id.
  * `status` - whether it has been:
- 1. *XSPLICE_STATUS_LOADED* (0) has been loaded.
- 2. *XSPLICE_STATUS_PROGRESS* (1) acting on the **XEN_SYSCTL_XSPLICE_ACTION** command.
- 3. *XSPLICE_STATUS_CHECKED*  (2) the ELF payload safety checks passed.
- 4. *XSPLICE_STATUS_APPLIED* (3) loaded, checked, and applied.
- 5. *XSPLICE_STATUS_REVERTED* (4) loaded, checked, applied and then also reverted.
+ 1. *XSPLICE_STATUS_LOADED* (1) has been loaded.
+ 2. *XSPLICE_STATUS_PROGRESS* (2) acting on the **XEN_SYSCTL_XSPLICE_ACTION** command.
+ 3. *XSPLICE_STATUS_CHECKED*  (3) the ELF payload safety checks passed.
+ 4. *XSPLICE_STATUS_APPLIED* (4) loaded, checked, and applied.
+ 5. *XSPLICE_STATUS_REVERTED* (5) loaded, checked, applied and then also reverted.
  6. Any negative values means there has been error. The value is in EXX format.
 
 The structure is as follow:
@@ -867,7 +867,6 @@ The return value will be zero unless the provided fields are incorrect.
 The structure is as follow:
 
 <pre>
-#define XSPLICE_ACTION_LOADED 0  
 #define XSPLICE_ACTION_CHECK  1  
 #define XSPLICE_ACTION_UNLOAD 2  
 #define XSPLICE_ACTION_REVERT 3  

  reply	other threads:[~2015-07-10 20:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06 20:26 [RFC v3] xSplice design Konrad Rzeszutek Wilk
2015-07-10 20:30 ` Konrad Rzeszutek Wilk [this message]
2015-07-13  7:34 ` Martin Pohlack
2015-07-16  1:59   ` Konrad Rzeszutek Wilk

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=20150710203050.GA32625@l.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=aliguori@amazon.com \
    --cc=amesserl@rackspace.com \
    --cc=bob.liu@oracle.com \
    --cc=daniel.kiper@oracle.com \
    --cc=dslutz@verizon.com \
    --cc=elena.ufimtseva@oracle.com \
    --cc=fanhenglong@huawei.com \
    --cc=hanweidong@huawei.com \
    --cc=jbeulich@suse.com \
    --cc=jeremy@goop.org \
    --cc=jinsong.liu@alibaba-inc.com \
    --cc=john.liuqiming@huawei.com \
    --cc=josh.kearney@rackspace.com \
    --cc=liuyingdong@huawei.com \
    --cc=major.hayden@rackspace.com \
    --cc=mpohlack@amazon.com \
    --cc=msw@amazon.com \
    --cc=paul.voccio@rackspace.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=rick.harris@rackspace.com \
    --cc=steven.wilson@rackspace.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xiantao.zxt@alibaba-inc.com \
    /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).