Skip to contentSkip to conversation

docs: fix superpage default value

PATCH In review Wei Liu 4 participants 10 messages Jul 20, 2017 – Jul 21, 2017

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 docs: fix superpage default value

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
 docs/misc/xen-command-line.markdown | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
 ### allowsuperpage
 > `= <boolean>`
 
-> Default: `true`
+> Default: `false`
 
 Permit Xen to use superpages when performing memory management.
 
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 21 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
 docs/misc/xen-command-line.markdown | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/xen-command-line.markdown +0 -0
index 3f90c3b7a8..f524294aa6 100644

docs/misc/xen-command-line.markdown mode during S3 resume. · line 141

Quoted 7 lines
docs/misc/xen-command-line.markdown +1 -1
@@ -136,7 +136,7 @@ mode during S3 resume.
 ### allowsuperpage
 > `= <boolean>`
 
-> Default: `true`
+> Default: `false`
 
 Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

Roger.

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

author
#2 lore raw
Quoted 28 lines · Roger Pau Monné
Quoted 27 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
 docs/misc/xen-command-line.markdown | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
 ### allowsuperpage
 > `= <boolean>`
 
-> Default: `true`
+> Default: `false`
 
Quoted 7 lines

docs/misc/xen-command-line.markdown mode during S3 resume. · line 141

Quoted 1 line
docs/misc/xen-command-line.markdown +0 -0
 Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

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

#3 lore raw
Quoted 35 lines · Wei Liu
Quoted 28 lines · Roger Pau Monné
Quoted 27 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
  docs/misc/xen-command-line.markdown | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
  ### allowsuperpage
  > `= <boolean>`
 
-> Default: `true`
+> Default: `false`
 
Quoted 6 lines

docs/misc/xen-command-line.markdown mode during S3 resume. · line 141

Quoted 1 line
docs/misc/xen-command-line.markdown +0 -0
  Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

Quoted 3 lines

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

~Andrew

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

author
#4 lore raw
Quoted 34 lines · Andrew Cooper
Quoted 33 lines · Wei Liu
Quoted 32 lines · Roger Pau Monné
Quoted 21 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
  docs/misc/xen-command-line.markdown | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/xen-command-line.markdown +0 -0
index 3f90c3b7a8..f524294aa6 100644

docs/misc/xen-command-line.markdown mode during S3 resume. · line 139

Quoted 5 lines
docs/misc/xen-command-line.markdown +1 -1
@@ -136,7 +136,7 @@ mode during S3 resume.
  ### allowsuperpage
  > `= <boolean>`
-> Default: `true`
+> Default: `false`
  Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

Quoted 9 lines
Quoted 3 lines

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

So we can just delete this option and make Xen always use superpage? That would be fine by me, too.

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

#5 lore raw
Quoted 37 lines · Wei Liu
Quoted 36 lines · Andrew Cooper
Quoted 35 lines · Wei Liu
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
   docs/misc/xen-command-line.markdown | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

docs/misc/xen-command-line.markdown mode during S3 resume. · line 139

Quoted 10 lines
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
   ### allowsuperpage
   > `= <boolean>`
-> Default: `true`
+> Default: `false`
   Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

I believe it is PV only, but I'm not 100% sure.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

I would love to fix the text as well if possible.

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

So we can just delete this option and make Xen always use superpage? That would be fine by me, too.

No - my point was that this option now exclusively controls PV superpages, IIRC.

~Andrew

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

author
#6 lore raw
Quoted 44 lines · Andrew Cooper
Quoted 43 lines · Wei Liu
Quoted 42 lines · Andrew Cooper
Quoted 33 lines · Wei Liu
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
   docs/misc/xen-command-line.markdown | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

docs/misc/xen-command-line.markdown mode during S3 resume. · line 139

Quoted 10 lines
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
   ### allowsuperpage
   > `= <boolean>`
-> Default: `true`
+> Default: `false`
   Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

Quoted 3 lines

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

Quoted 6 lines
Quoted 2 lines

So we can just delete this option and make Xen always use superpage? That would be fine by me, too.

No - my point was that this option now exclusively controls PV superpages, IIRC.

OK. I misunderstood.

In that case. We can change the text to:

Permit PV guests to use suerpages.

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

#7 lore raw
In reply to Wei Liu
Quoted 39 lines · Wei Liu
Quoted 38 lines · Andrew Cooper
Quoted 36 lines · Wei Liu
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
  docs/misc/xen-command-line.markdown | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

docs/misc/xen-command-line.markdown mode during S3 resume. · line 139

Quoted 10 lines
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
  ### allowsuperpage
  > `= <boolean>`
-> Default: `true`
+> Default: `false`
  Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

Quoted 8 lines
Quoted 5 lines

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

So we can just delete this option and make Xen always use superpage? That would be fine by me, too.

Can we just nuke the code altogther?

Oracle is not using it anymore.

Quoted 5 lines

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

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

author
#8 lore raw
Quoted 46 lines · Konrad Rzeszutek Wilk
Quoted 45 lines · Wei Liu
Quoted 43 lines · Andrew Cooper
Quoted 33 lines · Wei Liu
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
  docs/misc/xen-command-line.markdown | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

docs/misc/xen-command-line.markdown mode during S3 resume. · line 139

Quoted 10 lines
docs/misc/xen-command-line.markdown +1 -1
index 3f90c3b7a8..f524294aa6 100644
@@ -136,7 +136,7 @@ mode during S3 resume.
  ### allowsuperpage
  > `= <boolean>`
-> Default: `true`
+> Default: `false`
  Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

Quoted 3 lines

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

Quoted 6 lines
Quoted 2 lines

So we can just delete this option and make Xen always use superpage? That would be fine by me, too.

Can we just nuke the code altogther?

Oracle is not using it anymore.

Sure! I was about to ask you about that.

I'm happy to submit patches to nuke it from both the hypervisor and toolstack.

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

#9 lore raw
Quoted 50 lines · Wei Liu
Quoted 49 lines · Konrad Rzeszutek Wilk
Quoted 47 lines · Wei Liu
Quoted 34 lines · Andrew Cooper
Quoted 33 lines · Wei Liu
Quoted 32 lines · Roger Pau Monné
Quoted 21 lines · Wei Liu

The code says it defaults to false.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
  docs/misc/xen-command-line.markdown | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/xen-command-line.markdown +0 -0
index 3f90c3b7a8..f524294aa6 100644

docs/misc/xen-command-line.markdown mode during S3 resume. · line 139

Quoted 5 lines
docs/misc/xen-command-line.markdown +1 -1
@@ -136,7 +136,7 @@ mode during S3 resume.
  ### allowsuperpage
  > `= <boolean>`
-> Default: `true`
+> Default: `false`
  Permit Xen to use superpages when performing memory management.

I'm not an expert on Xen MM code, but isn't this intended for PV guests? The description above makes it look like this is for Xen itself, but AFAICT from skimming over the code this seems to be a PV feature, in which case the text above should be fixed to prevent confusion.

Quoted 9 lines
Quoted 3 lines

I believe it is PV only, but I'm not 100% sure.

I would love to fix the text as well if possible.

I'm fairly sure this option applies exclusively to PV superpages. Double check the logic through the code, but I think (since dropping 32bit support), we have no configuration where Xen might not be able to use superpages.

So we can just delete this option and make Xen always use superpage? That would be fine by me, too.

Quoted 7 lines
Quoted 3 lines

Can we just nuke the code altogther?

Oracle is not using it anymore.

Sure! I was about to ask you about that.

I'm happy to submit patches to nuke it from both the hypervisor and toolstack.

Feel free to add Acked-by: Konrad Rzeszutek Wilk <[email protected]> on them :-)

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