Skip to contentSkip to conversation

docs/arm64: update the documention for loading XSM support

PATCH In review [email protected] 7 participants 23 messages Apr 21, 2016 – Apr 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs/arm64: update the documention for loading XSM support

From: Fu Wei <[email protected]>

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.
This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b.

---
v2: Improve the doc, according to the suggestion from Julien Grall.

v1: http://lists.xen.org/archives/html/xen-devel/2016-04/msg02070.html
The first upstream version submitted in xen-devel mailing list.

 docs/misc/arm/device-tree/booting.txt | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
docs/misc/arm/device-tree/booting.txt +18 -4
index ad98bf3..254ba77 100644
@@ -24,10 +24,24 @@ Each node contains the following properties:
 	string (which must always be present).
 
 	Xen will assume that the first module which lacks a more
-	specific compatible string is a "multiboot,kernel" and that
-	the second such is a "multiboot,ramdisk". Any subsequent
-	modules which lack a specific compatiblity string will not
-	receive any special treatment.
+	specific compatible string is a "multiboot,kernel".
+
+	Xen will check all the modules for the XSM Magic from the second
+	module that lacks a specific compatible string. According to the
+	result of the detection:
+	- if it's a XSM, Xen will assume its compatible string is a
+	  "xen,xsm-policy";
+	- if it's not a XSM, for the second module that lacks a specific
+	  compatible string, Xen will assume its compatible string is a
+	  "multiboot,ramdisk"; for the third and subsequent modules those
+	  lacks a specific compatible string will not receive any special
+	  treatment.
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
+	Xen 4.6 (and downwards) still requires the XSM module to have the
+	compatible string "xen,xsm-policy".
 
 	Xen 4.4 supported a different set of legacy compatible strings
 	which remain supported such that systems supporting both 4.4
Signature · 7 lines
2.5.5


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line · On 21.04.16 at 13:07, <[email protected]> wrote:

Please follow the patch submission rules: Mail them _to_ the list, _cc_-ing relevant people. Cc-ing the list twice makes little sense. And please also apply some common sense when deciding who to Cc - I don't think there's much point in Cc-ing other than ARM maintainers on ARM specific doc patches (arguably that should be reflected in ./MAINTAINERS).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

author
#2 lore raw

Hi Jan,

Quoted 8 lines · Jan Beulich
Quoted 1 line
Quoted 1 line
Quoted 1 line · On 21.04.16 at 13:07, <[email protected]> wrote:

Please follow the patch submission rules: Mail them _to_ the list, _cc_-ing relevant people. Cc-ing the list twice makes little sense. And please also apply some common sense when deciding who to Cc - I don't think there's much point in Cc-ing other than ARM maintainers on ARM specific doc patches (arguably that should be reflected in ./MAINTAINERS).

Sorry for late response,
Thanks for your help, will fix my script :-)

Quoted 3 lines

Jan

Signature · 15 lines
Best regards,

Fu Wei
Software Engineer
Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch
Ph: +86 21 61221326(direct)
Ph: +86 186 2020 4684 (mobile)
Room 1512, Regus One Corporate Avenue,Level 15,
One Corporate Avenue,222 Hubin Road,Huangpu District,
Shanghai,China 200021

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v2 1/1
#3 lore raw
In reply to [email protected]

(CC Wei for the release-ack)

Hi Fu Wei,

Quoted 8 lines · On 21/04/16 12:07, [email protected] wrote:

From: Fu Wei <[email protected]>

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.
This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b.

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

Wei, this patch only update the doc. I am not sure whether we need your release-ack.

Regards,

Quoted 43 lines

---
v2: Improve the doc, according to the suggestion from Julien Grall.

v1: http://lists.xen.org/archives/html/xen-devel/2016-04/msg02070.html
The first upstream version submitted in xen-devel mailing list.

  docs/misc/arm/device-tree/booting.txt | 22 ++++++++++++++++++----
  1 file changed, 18 insertions(+), 4 deletions(-)
docs/misc/arm/device-tree/booting.txt +18 -4
index ad98bf3..254ba77 100644
@@ -24,10 +24,24 @@ Each node contains the following properties:
  	string (which must always be present).
 
  	Xen will assume that the first module which lacks a more
-	specific compatible string is a "multiboot,kernel" and that
-	the second such is a "multiboot,ramdisk". Any subsequent
-	modules which lack a specific compatiblity string will not
-	receive any special treatment.
+	specific compatible string is a "multiboot,kernel".
+
+	Xen will check all the modules for the XSM Magic from the second
+	module that lacks a specific compatible string. According to the
+	result of the detection:
+	- if it's a XSM, Xen will assume its compatible string is a
+	  "xen,xsm-policy";
+	- if it's not a XSM, for the second module that lacks a specific
+	  compatible string, Xen will assume its compatible string is a
+	  "multiboot,ramdisk"; for the third and subsequent modules those
+	  lacks a specific compatible string will not receive any special
+	  treatment.
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
+	Xen 4.6 (and downwards) still requires the XSM module to have the
+	compatible string "xen,xsm-policy".
 
  	Xen 4.4 supported a different set of legacy compatible strings
  	which remain supported such that systems supporting both 4.4
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#4 lore raw

Sorry, I forgot to mention the typo in the title:

s/documention/documentation/

Quoted 70 lines · Julien Grall

(CC Wei for the release-ack)

Hi Fu Wei,

Quoted 8 lines · On 21/04/16 12:07, [email protected] wrote:

From: Fu Wei <[email protected]>

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.
This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b.

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

Wei, this patch only update the doc. I am not sure whether we need your release-ack.

Regards,

Quoted 44 lines

---
v2: Improve the doc, according to the suggestion from Julien Grall.

v1: http://lists.xen.org/archives/html/xen-devel/2016-04/msg02070.html
The first upstream version submitted in xen-devel mailing list.

  docs/misc/arm/device-tree/booting.txt | 22 ++++++++++++++++++----
  1 file changed, 18 insertions(+), 4 deletions(-)
docs/misc/arm/device-tree/booting.txt +18 -4
index ad98bf3..254ba77 100644
@@ -24,10 +24,24 @@ Each node contains the following properties:
      string (which must always be present).
 
      Xen will assume that the first module which lacks a more
-    specific compatible string is a "multiboot,kernel" and that
-    the second such is a "multiboot,ramdisk". Any subsequent
-    modules which lack a specific compatiblity string will not
-    receive any special treatment.
+    specific compatible string is a "multiboot,kernel".
+
+    Xen will check all the modules for the XSM Magic from the second
+    module that lacks a specific compatible string. According to the
+    result of the detection:
+    - if it's a XSM, Xen will assume its compatible string is a
+      "xen,xsm-policy";
+    - if it's not a XSM, for the second module that lacks a specific
+      compatible string, Xen will assume its compatible string is a
+      "multiboot,ramdisk"; for the third and subsequent modules those
+      lacks a specific compatible string will not receive any special
+      treatment.
+    This means if the ramdisk module is present and does not have the
+    compatible string "multiboot,ramdisk", then it must always be the
+    second module.
+    Note: This XSM Magic detection behavior was introduced by Xen 4.7.
+    Xen 4.6 (and downwards) still requires the XSM module to have the
+    compatible string "xen,xsm-policy".
 
      Xen 4.4 supported a different set of legacy compatible strings
      which remain supported such that systems supporting both 4.4
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#5 lore raw
In reply to Julien Grall
Quoted 14 lines · Julien Grall

(CC Wei for the release-ack)

Hi Fu Wei,

Quoted 8 lines · On 21/04/16 12:07, [email protected] wrote:

From: Fu Wei <[email protected]>

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.
This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b.

Quoted 9 lines

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

Wei, this patch only update the doc. I am not sure whether we need your release-ack.

FAOD:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 21 lines · Wei Liu
Quoted 20 lines · Julien Grall

(CC Wei for the release-ack)

Hi Fu Wei,

Quoted 8 lines · On 21/04/16 12:07, [email protected] wrote:

From: Fu Wei <[email protected]>

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.
This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b.

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

Quoted 7 lines
Quoted 3 lines

Wei, this patch only update the doc. I am not sure whether we need your release-ack.

FAOD:

Improved the wording and committed

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#7 lore raw

Stefano Stabellini writes ("Re: [PATCH v2] docs/arm64: update the documention for loading XSM support"):

Quoted 1 line

Improved the wording and committed

I see my mail proposing a new version crossed with yours.

Also, I seem to be racing in committing with you.

Can you come onto IRC so we can coordinate ?

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#8 lore raw

PATCH v3 1/1 docs/arm64: update the documention for loading XSM support

In reply to Julien Grall

Julien Grall writes ("Re: [PATCH v2] docs/arm64: update the documention for loading XSM support"):

Quoted 4 lines

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

I found it rather difficult to read. See updated version, attached.

I dropped your ack because I want to be sure that the new version still describes the actual behaviour. I kept Wei's release-ack.

Thanks,
Ian.

From bd8f24667d353a4c90203d51c1fdb42a66b79973 Mon Sep 17 00:00:00 2001
From: Fu Wei <[email protected]>
Date: Thu, 21 Apr 2016 19:07:09 +0800
Subject: [PATCH] docs/arm64: update the documention for loading XSM support

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.

(This mechanism was added in commit ca32012341f3,
"xen/arm64: check XSM Magic from the second unknown module.")

---
 docs/misc/arm/device-tree/booting.txt |   27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)
docs/misc/arm/device-tree/booting.txt +23 -4
index ad98bf3..f3179d6 100644
@@ -24,10 +24,29 @@ Each node contains the following properties:
 	string (which must always be present).
 
 	Xen will assume that the first module which lacks a more
-	specific compatible string is a "multiboot,kernel" and that
-	the second such is a "multiboot,ramdisk". Any subsequent
-	modules which lack a specific compatiblity string will not
-	receive any special treatment.
+	specific compatible string is a "multiboot,kernel".
+
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will
+        check each such module for the XSM Magic number:
+
+	- For a module which has the XSM Magic number: it will be
+          treated by Xen as if its compatible string was
+          "xen,xsm-policy";
+
+	- For a module which does not have the XSM Magic: the second
+          module lacking a compatible string will be treated by Xen as
+          if its compatible string was "multiboot,ramdisk"; for the
+          third and subsequent modules which lack a specific
+          compatible string, Xen will not apply any special treatment.
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
+	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
+	Xen 4.6 (and downwards) still requires the XSM module to have the
+	compatible string "xen,xsm-policy".
 
 	Xen 4.4 supported a different set of legacy compatible strings
 	which remain supported such that systems supporting both 4.4
Signature · 7 lines
1.7.10.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v3 1/1
#9 lore raw
Quoted 39 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH v2] docs/arm64: update the documention for loading XSM support"):

Quoted 4 lines

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

I found it rather difficult to read. See updated version, attached.

I dropped your ack because I want to be sure that the new version still describes the actual behaviour. I kept Wei's release-ack.

Thanks,
Ian.

Quoted 1 line

From bd8f24667d353a4c90203d51c1fdb42a66b79973 Mon Sep 17 00:00:00 2001

From: Fu Wei <[email protected]>
Date: Thu, 21 Apr 2016 19:07:09 +0800
Subject: [PATCH] docs/arm64: update the documention for loading XSM support

This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string.

(This mechanism was added in commit ca32012341f3,
"xen/arm64: check XSM Magic from the second unknown module.")

---
 docs/misc/arm/device-tree/booting.txt |   27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)
docs/misc/arm/device-tree/booting.txt +0 -0
index ad98bf3..f3179d6 100644
@@ -24,10 +24,29 @@ Each node contains the following properties:
 	string (which must always be present).
 

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 31

Quoted 10 lines
docs/misc/arm/device-tree/booting.txt +5 -4
 	Xen will assume that the first module which lacks a more
-	specific compatible string is a "multiboot,kernel" and that
-	the second such is a "multiboot,ramdisk". Any subsequent
-	modules which lack a specific compatiblity string will not
-	receive any special treatment.
+	specific compatible string is a "multiboot,kernel".
+
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will
+        check each such module for the XSM Magic number:

Not sure why you have the extra spaces before 'check'?

Quoted 6 lines
docs/misc/arm/device-tree/booting.txt +6 -0
+
+	- For a module which has the XSM Magic number: it will be
+          treated by Xen as if its compatible string was
+          "xen,xsm-policy";
+
+	- For a module which does not have the XSM Magic: the second

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 47

Quoted 10 lines
docs/misc/arm/device-tree/booting.txt +10 -0
+          module lacking a compatible string will be treated by Xen as
+          if its compatible string was "multiboot,ramdisk"; for the
+          third and subsequent modules which lack a specific
+          compatible string, Xen will not apply any special treatment.
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
+	Note: This XSM Magic detection behavior was introduced by Xen 4.7.

in Xen 4.7?

Either way - those are really nitpicks and free free to ignore them.

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 52

Quoted 5 lines
docs/misc/arm/device-tree/booting.txt +2 -0
+	Xen 4.6 (and downwards) still requires the XSM module to have the
+	compatible string "xen,xsm-policy".
 
 	Xen 4.4 supported a different set of legacy compatible strings
 	which remain supported such that systems supporting both 4.4

Y

Quoted 3 lines
Signature · 1 line
1.7.10.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#10 lore raw
In reply to Ian Jackson

Hi Ian,

Quoted 7 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH v2] docs/arm64: update the documention for loading XSM support"):

Quoted 4 lines

The new version looks good to me:

Can a native speaker (Ian, Konrad, George) double-check the wording)?

I found it rather difficult to read. See updated version, attached.

Stefano has committed the previous version with some modifications. Is it better to read?

Regards,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#11 lore raw

Julien Grall writes ("Re: [PATCH v3] docs/arm64: update the documention for loading XSM support"):

Quoted 2 lines

Stefano has committed the previous version with some modifications. Is it better to read?

IMO it is better than the original but I still think my proposed wording is an improvement over Stefano's.

Should I "rebase" it and resubmit ?

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#12 lore raw
Quoted 8 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH v3] docs/arm64: update the documention for loading XSM support"):

Quoted 2 lines

Stefano has committed the previous version with some modifications. Is it better to read?

IMO it is better than the original but I still think my proposed wording is an improvement over Stefano's.

Should I "rebase" it and resubmit ?

Sure, thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#13 lore raw

PATCH 1/1 docs/arm64: clarify the documention for loading XSM support

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

CC Fu Wei <[email protected]>
CC Julien Grall <[email protected]>,
CC Stefano Stabellini <[email protected]>
---
 docs/misc/arm/device-tree/booting.txt |   31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)
docs/misc/arm/device-tree/booting.txt +18 -13
index cae46eda..f3179d6 100644
@@ -26,19 +26,24 @@ Each node contains the following properties:
 	Xen will assume that the first module which lacks a more
 	specific compatible string is a "multiboot,kernel".
 
-	Xen will check all the modules for the XSM Magic from the second
-	module that lacks a specific compatible string. According to the
-	result of the detection:
-	- if it's an XSM, Xen will assume its compatible string is
-	  "xen,xsm-policy";
-	- if it's not an XSM, for the second module that lacks a specific
-	  compatible string, Xen will assume its compatible string is
-	  "multiboot,ramdisk"; the third and subsequent modules that
-	  lack a specific compatible string will not receive any special
-	  treatment.
-	This means that if the ramdisk module is present and does not have
-	the compatible string "multiboot,ramdisk", then it must always be
-	the second module.
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will
+        check each such module for the XSM Magic number:
+
+	- For a module which has the XSM Magic number: it will be
+          treated by Xen as if its compatible string was
+          "xen,xsm-policy";
+
+	- For a module which does not have the XSM Magic: the second
+          module lacking a compatible string will be treated by Xen as
+          if its compatible string was "multiboot,ramdisk"; for the
+          third and subsequent modules which lack a specific
+          compatible string, Xen will not apply any special treatment.
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
 	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
 	Xen 4.6 (and downwards) still requires the XSM module to have the
 	compatible string "xen,xsm-policy".
Signature · 7 lines
1.7.10.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#14 lore raw

Re: [PATCH] docs/arm64: clarify the documention for loading XSM support

Hi Ian,

Quoted 8 lines · Ian Jackson

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

Somehow, I am not in the mail CC. Maybe because of the "," at the end?

Otherwise, the text looks good to me. I have some questions about the formatting, see below.

Quoted 18 lines
CC Stefano Stabellini <[email protected]>
---
  docs/misc/arm/device-tree/booting.txt |   31 ++++++++++++++++++-------------
  1 file changed, 18 insertions(+), 13 deletions(-)
docs/misc/arm/device-tree/booting.txt +0 -5
index cae46eda..f3179d6 100644
@@ -26,19 +26,24 @@ Each node contains the following properties:
  	Xen will assume that the first module which lacks a more
  	specific compatible string is a "multiboot,kernel".
 
-	Xen will check all the modules for the XSM Magic from the second
-	module that lacks a specific compatible string. According to the
-	result of the detection:
-	- if it's an XSM, Xen will assume its compatible string is
-	  "xen,xsm-policy";

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 30

Quoted 10 lines
docs/misc/arm/device-tree/booting.txt +2 -8
-	- if it's not an XSM, for the second module that lacks a specific
-	  compatible string, Xen will assume its compatible string is
-	  "multiboot,ramdisk"; the third and subsequent modules that
-	  lack a specific compatible string will not receive any special
-	  treatment.
-	This means that if the ramdisk module is present and does not have
-	the compatible string "multiboot,ramdisk", then it must always be
-	the second module.
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will

NIT: there is 2 spaces rather than 1 before "Xen".

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 31

Quoted 1 line
docs/misc/arm/device-tree/booting.txt +1 -0
+        check each such module for the XSM Magic number:

I am not sure sure why the extra spaces before "check"?

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 35

Quoted 4 lines
docs/misc/arm/device-tree/booting.txt +4 -0
+
+	- For a module which has the XSM Magic number: it will be
+          treated by Xen as if its compatible string was
+          "xen,xsm-policy";

Ditto

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 41

Quoted 6 lines
docs/misc/arm/device-tree/booting.txt +6 -0
+
+	- For a module which does not have the XSM Magic: the second
+          module lacking a compatible string will be treated by Xen as
+          if its compatible string was "multiboot,ramdisk"; for the
+          third and subsequent modules which lack a specific
+          compatible string, Xen will not apply any special treatment.

Ditto

docs/misc/arm/device-tree/booting.txt Each node contains the following properties: · line 49

Quoted 9 lines
docs/misc/arm/device-tree/booting.txt +5 -0
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
  	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
  	Xen 4.6 (and downwards) still requires the XSM module to have the
  	compatible string "xen,xsm-policy".

Regards,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#15 lore raw

Re: [PATCH] docs/arm64: clarify the documention for loading XSM support

Julien Grall writes ("Re: [Xen-devel] [PATCH] docs/arm64: clarify the

Quoted 1 line

Somehow, I am not in the mail CC. Maybe because of the "," at the end?

How odd.

Quoted 2 lines

Otherwise, the text looks good to me. I have some questions about the formatting, see below.

I think there has been some damage from repeated tab<->space conversions.

I will resend.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#16 lore raw

PATCH v2 1/1 docs/arm64: clarify the documention for loading XSM support

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

CC Fu Wei <[email protected]>
CC Julien Grall <[email protected]>
CC Stefano Stabellini <[email protected]>

---
v2: Tabify (to conform to the rest of the file)

---
 docs/misc/arm/device-tree/booting.txt |   29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)
docs/misc/arm/device-tree/booting.txt +17 -12
index cae46eda..ce2d0dc 100644
@@ -26,19 +26,24 @@ Each node contains the following properties:
 	Xen will assume that the first module which lacks a more
 	specific compatible string is a "multiboot,kernel".
 
-	Xen will check all the modules for the XSM Magic from the second
-	module that lacks a specific compatible string. According to the
-	result of the detection:
-	- if it's an XSM, Xen will assume its compatible string is
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will
+	check each such module for the XSM Magic number:
+
+	- For a module which has the XSM Magic number: it will be
+	  treated by Xen as if its compatible string was
 	  "xen,xsm-policy";
-	- if it's not an XSM, for the second module that lacks a specific
-	  compatible string, Xen will assume its compatible string is
-	  "multiboot,ramdisk"; the third and subsequent modules that
-	  lack a specific compatible string will not receive any special
-	  treatment.
-	This means that if the ramdisk module is present and does not have
-	the compatible string "multiboot,ramdisk", then it must always be
-	the second module.
+
+	- For a module which does not have the XSM Magic: the second
+	  module lacking a compatible string will be treated by Xen as
+	  if its compatible string was "multiboot,ramdisk"; for the
+	  third and subsequent modules which lack a specific
+	  compatible string, Xen will not apply any special treatment.
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
 	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
 	Xen 4.6 (and downwards) still requires the XSM module to have the
 	compatible string "xen,xsm-policy".
Signature · 7 lines
1.7.10.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v2 1/1
#17 lore raw

Re: [PATCH v2] docs/arm64: clarify the documention for loading XSM support

Hi Ian,

Quoted 8 lines · Ian Jackson

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

Regards,

Quoted 49 lines
CC Stefano Stabellini <[email protected]>

---
v2: Tabify (to conform to the rest of the file)

---
  docs/misc/arm/device-tree/booting.txt |   29 +++++++++++++++++------------
  1 file changed, 17 insertions(+), 12 deletions(-)
docs/misc/arm/device-tree/booting.txt +17 -12
index cae46eda..ce2d0dc 100644
@@ -26,19 +26,24 @@ Each node contains the following properties:
  	Xen will assume that the first module which lacks a more
  	specific compatible string is a "multiboot,kernel".
 
-	Xen will check all the modules for the XSM Magic from the second
-	module that lacks a specific compatible string. According to the
-	result of the detection:
-	- if it's an XSM, Xen will assume its compatible string is
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will
+	check each such module for the XSM Magic number:
+
+	- For a module which has the XSM Magic number: it will be
+	  treated by Xen as if its compatible string was
  	  "xen,xsm-policy";
-	- if it's not an XSM, for the second module that lacks a specific
-	  compatible string, Xen will assume its compatible string is
-	  "multiboot,ramdisk"; the third and subsequent modules that
-	  lack a specific compatible string will not receive any special
-	  treatment.
-	This means that if the ramdisk module is present and does not have
-	the compatible string "multiboot,ramdisk", then it must always be
-	the second module.
+
+	- For a module which does not have the XSM Magic: the second
+	  module lacking a compatible string will be treated by Xen as
+	  if its compatible string was "multiboot,ramdisk"; for the
+	  third and subsequent modules which lack a specific
+	  compatible string, Xen will not apply any special treatment.
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
  	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
  	Xen 4.6 (and downwards) still requires the XSM module to have the
  	compatible string "xen,xsm-policy".
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Applied
#18 lore raw

Re: [PATCH v2] docs/arm64: clarify the documention for loading XSM support

Quoted 5 lines · Julien Grall

Hi Ian,

Quoted 2 lines · Ian Jackson

From: Fu Wei <[email protected]>

Quoted 9 lines
Quoted 6 lines

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

Queued. Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v1 1/1
#19 lore raw

Re: [PATCH] docs/arm64: clarify the documention for loading XSM support

In reply to Ian Jackson
Quoted 9 lines · Ian Jackson

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

CC Fu Wei <[email protected]>
CC Julien Grall <[email protected]>,
CC Stefano Stabellini <[email protected]>

Added to my queue.

Quoted 48 lines
 docs/misc/arm/device-tree/booting.txt |   31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)
docs/misc/arm/device-tree/booting.txt +18 -13
index cae46eda..f3179d6 100644
@@ -26,19 +26,24 @@ Each node contains the following properties:
 	Xen will assume that the first module which lacks a more
 	specific compatible string is a "multiboot,kernel".
 
-	Xen will check all the modules for the XSM Magic from the second
-	module that lacks a specific compatible string. According to the
-	result of the detection:
-	- if it's an XSM, Xen will assume its compatible string is
-	  "xen,xsm-policy";
-	- if it's not an XSM, for the second module that lacks a specific
-	  compatible string, Xen will assume its compatible string is
-	  "multiboot,ramdisk"; the third and subsequent modules that
-	  lack a specific compatible string will not receive any special
-	  treatment.
-	This means that if the ramdisk module is present and does not have
-	the compatible string "multiboot,ramdisk", then it must always be
-	the second module.
+	Xen will examine each module, starting from the second
+	module that lacks a specific compatible string.  Xen will
+        check each such module for the XSM Magic number:
+
+	- For a module which has the XSM Magic number: it will be
+          treated by Xen as if its compatible string was
+          "xen,xsm-policy";
+
+	- For a module which does not have the XSM Magic: the second
+          module lacking a compatible string will be treated by Xen as
+          if its compatible string was "multiboot,ramdisk"; for the
+          third and subsequent modules which lack a specific
+          compatible string, Xen will not apply any special treatment.
+
+	This means if the ramdisk module is present and does not have the
+	compatible string "multiboot,ramdisk", then it must always be the
+	second module.
+
 	Note: This XSM Magic detection behavior was introduced by Xen 4.7.
 	Xen 4.6 (and downwards) still requires the XSM module to have the
 	compatible string "xen,xsm-policy".
Signature · 1 line
1.7.10.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#20 lore raw

Re: [PATCH] docs/arm64: clarify the documention for loading XSM support

Quoted 6 lines · Stefano Stabellini
Quoted 5 lines · Ian Jackson

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

Quoted 9 lines
Quoted 4 lines
CC Fu Wei <[email protected]>
CC Julien Grall <[email protected]>,
CC Stefano Stabellini <[email protected]>

Added to my queue.

FYI this patch is already applied last night. I picked this up too when I committed my queue.

I will leave all the ARM patches to you in the future if they aren't urgent. That should avoid us racing with each other.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#21 lore raw

Re: [PATCH] docs/arm64: clarify the documention for loading XSM support

Quoted 14 lines · Wei Liu
Quoted 13 lines · Stefano Stabellini
Quoted 9 lines · Ian Jackson

From: Fu Wei <[email protected]>

Improve the clarity of the wording introduced in 67831c4c "docs/arm64: update the documentation for loading XSM support"

CC Fu Wei <[email protected]>
CC Julien Grall <[email protected]>,
CC Stefano Stabellini <[email protected]>
Quoted 8 lines
Quoted 2 lines

Added to my queue.

FYI this patch is already applied last night. I picked this up too when I committed my queue.

I will leave all the ARM patches to you in the future if they aren't urgent. That should avoid us racing with each other.

All right, thanks

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

author
#22 lore raw
In reply to Stefano Stabellini

Hi All,

Great thanks for all your help :-)

Quoted 11 lines · Stefano Stabellini
Quoted 8 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH v3] docs/arm64: update the documention for loading XSM support"):

Quoted 2 lines

Stefano has committed the previous version with some modifications. Is it better to read?

IMO it is better than the original but I still think my proposed wording is an improvement over Stefano's.

Should I "rebase" it and resubmit ?

Sure, thanks.

Signature · 15 lines
Best regards,

Fu Wei
Software Engineer
Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch
Ph: +86 21 61221326(direct)
Ph: +86 186 2020 4684 (mobile)
Room 1512, Regus One Corporate Avenue,Level 15,
One Corporate Avenue,222 Hubin Road,Huangpu District,
Shanghai,China 200021

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel