Skip to contentSkip to conversation

docs: rSTify ppc-spapr-hcalls.txt

PATCH Applied [email protected] 5 participants 11 messages Dec 8, 2021 – Dec 15, 2021 PowerPC

lore
Share & tools
lore
#6 lore raw

PATCH 2/3 docs: Rename ppc-spapr-hcalls.txt to ppc-spapr-hcalls.rst.

In reply to [email protected]

From: Leonardo Garcia <[email protected]>

---
 docs/specs/{ppc-spapr-hcalls.txt => ppc-spapr-hcalls.rst} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename docs/specs/{ppc-spapr-hcalls.txt => ppc-spapr-hcalls.rst} (100%)
docs/specs/ppc-spapr-hcalls.rst renamed from docs/specs/ppc-spapr-hcalls.txt +0 -0
similarity index 100%
rename from docs/specs/ppc-spapr-hcalls.txt
rename to docs/specs/ppc-spapr-hcalls.rst
Signature · 1 line
2.33.1
#8 lore raw

PATCH 3/3 Link new ppc-spapr-hcalls.rst file to pseries.rst.

In reply to [email protected]

From: Leonardo Garcia <[email protected]>

---
 docs/system/ppc/pseries.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/ppc/pseries.rst +1 -1
index e46f09d4c8..56f5942e13 100644
@@ -113,12 +113,12 @@ can  also be found in QEMU documentation:
 .. toctree::
    :maxdepth: 1
 
+   ../../specs/ppc-spapr-hcalls.rst
    ../../specs/ppc-spapr-numa.rst
    ../../specs/ppc-spapr-xive.rst
 
 Other documentation available in QEMU docs directory:
 
-* Hypervisor calls (a.k.a. hcalls) (``docs/specs/ppc-spapr-hcalls.txt``).
 * Hot plug (``/docs/specs/ppc-spapr-hotplug.txt``).
 * Hypervisor calls needed by the Ultravisor
   (``/docs/specs/ppc-spapr-uv-hcalls.txt``).
Signature · 1 line
2.33.1
#0 lore raw

cover docs: rSTify ppc-spapr-hcalls.txt

From: Leonardo Garcia <[email protected]>

Along with this change, hook the new rst file into the pseries documentation.

Leonardo Garcia (3):
docs: rSTify ppc-spapr-hcalls.txt
docs: Rename ppc-spapr-hcalls.txt to ppc-spapr-hcalls.rst. Link new ppc-spapr-hcalls.rst file to pseries.rst.

 docs/specs/ppc-spapr-hcalls.rst | 100 ++++++++++++++++++++++++++++++++
 docs/specs/ppc-spapr-hcalls.txt |  78 -------------------------
 docs/system/ppc/pseries.rst     |   2 +-
 3 files changed, 101 insertions(+), 79 deletions(-)
 create mode 100644 docs/specs/ppc-spapr-hcalls.rst
 delete mode 100644 docs/specs/ppc-spapr-hcalls.txt
Signature · 1 line
2.33.1
#1 lore raw

PATCH 1/3 docs: rSTify ppc-spapr-hcalls.txt

From: Leonardo Garcia <[email protected]>

---
 docs/specs/ppc-spapr-hcalls.txt | 92 ++++++++++++++++++++-------------
 1 file changed, 57 insertions(+), 35 deletions(-)
docs/specs/ppc-spapr-hcalls.txt +57 -35
index 93fe3da91b..c69dae535b 100644
@@ -1,9 +1,15 @@
-When used with the "pseries" machine type, QEMU-system-ppc64 implements
-a set of hypervisor calls using a subset of the server "PAPR" specification
-(IBM internal at this point), which is also what IBM's proprietary hypervisor
-adheres too.
+sPAPR hypervisor calls
+----------------------
 
-The subset is selected based on the requirements of Linux as a guest.
+When used with the ``pseries`` machine type, ``qemu-system-ppc64`` implements
+a set of hypervisor calls (a.k.a. hcalls) defined in the `Linux on Power
+Architecture Reference document (LoPAR)
+<https://cdn.openpowerfoundation.org/wp-content/uploads/2020/07/LoPAR-20200812.pdf>`_.
+This document is a subset of the Power Architecture Platform Reference (PAPR+)
+specification (IBM internal only), which is what PowerVM, the IBM proprietary
+hypervisor, adheres to.
+
+The subset in LoPAR is selected based on the requirements of Linux as a guest.
 
 In addition to those calls, we have added our own private hypervisor
 calls which are mostly used as a private interface between the firmware
@@ -12,13 +18,14 @@ running in the guest and QEMU.
 All those hypercalls start at hcall number 0xf000 which correspond
 to an implementation specific range in PAPR.
 
-- H_RTAS (0xf000)
+H_RTAS (0xf000)
+^^^^^^^^^^^^^^^
 
-RTAS is a set of runtime services generally provided by the firmware
-inside the guest to the operating system. It predates the existence
-of hypervisors (it was originally an extension to Open Firmware) and
-is still used by PAPR to provide various services that aren't performance
-sensitive.
+RTAS stands for Run-Time Abstraction Sercies and is a set of runtime services
+generally provided by the firmware inside the guest to the operating system. It
+predates the existence of hypervisors (it was originally an extension to Open
+Firmware) and is still used by PAPR and LoPAR to provide various services that
+are not performance sensitive.
 
 We currently implement the RTAS services in QEMU itself. The actual RTAS
 "firmware" blob in the guest is a small stub of a few instructions which
@@ -26,22 +33,25 @@ calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU.
 
 Arguments:
 
-  r3 : H_RTAS (0xf000)
-  r4 : Guest physical address of RTAS parameter block
+  ``r3``: ``H_RTAS (0xf000)``
+
+  ``r4``: Guest physical address of RTAS parameter block.
 
 Returns:
 
-  H_SUCCESS   : Successfully called the RTAS function (RTAS result
-                will have been stored in the parameter block)
-  H_PARAMETER : Unknown token
+  ``H_SUCCESS``: Successfully called the RTAS function (RTAS result will have
+  been stored in the parameter block).
 
-- H_LOGICAL_MEMOP (0xf001)
+  ``H_PARAMETER``: Unknown token.
 
-When the guest runs in "real mode" (in powerpc lingua this means
-with MMU disabled, ie guest effective == guest physical), it only
-has access to a subset of memory and no IOs.
+H_LOGICAL_MEMOP (0xf001)
+^^^^^^^^^^^^^^^^^^^^^^^^
 
-PAPR provides a set of hypervisor calls to perform cacheable or
+When the guest runs in "real mode" (in powerpc lingua this means with MMU
+disabled, i.e. guest effective address equals to guest physical address), it
+only has access to a subset of memory and no I/Os.
+
+PAPR and LoPAR provides a set of hypervisor calls to perform cacheable or
 non-cacheable accesses to any guest physical addresses that the
 guest can use in order to access IO devices while in real mode.
 
@@ -58,21 +68,33 @@ is used by our SLOF firmware to invert the screen.
 
 Arguments:
 
-  r3: H_LOGICAL_MEMOP (0xf001)
-  r4: Guest physical address of destination
-  r5: Guest physical address of source
-  r6: Individual element size
-        0 = 1 byte
-        1 = 2 bytes
-        2 = 4 bytes
-        3 = 8 bytes
-  r7: Number of elements
-  r8: Operation
-        0 = copy
-        1 = xor
+  ``r3 ``: ``H_LOGICAL_MEMOP (0xf001)``
+
+  ``r4``: Guest physical address of destination.
+
+  ``r5``: Guest physical address of source.
+
+  ``r6``: Individual element size, defined by the binary logarithm of the
+  desired size. Supported values are:
+
+    ``0`` = 1 byte
+
+    ``1`` = 2 bytes
+
+    ``2`` = 4 bytes
+
+    ``3`` = 8 bytes
+
+  ``r7``: Number of elements.
+
+  ``r8``: Operation. Supported values are:
+
+    ``0``: copy
+
+    ``1``: xor
 
 Returns:
 
-  H_SUCCESS   : Success
-  H_PARAMETER : Invalid argument
+  ``H_SUCCESS``: Success.
 
+  ``H_PARAMETER``: Invalid argument.
\ No newline at end of file
Signature · 1 line
2.33.1
Reviewed-by on v1 1/3
#2 lore raw
Quoted 72 lines · On 12/8/21 13:59, [email protected] wrote:

From: Leonardo Garcia <[email protected]>

---
  docs/specs/ppc-spapr-hcalls.txt | 92 ++++++++++++++++++++-------------
  1 file changed, 57 insertions(+), 35 deletions(-)
docs/specs/ppc-spapr-hcalls.txt +23 -17
index 93fe3da91b..c69dae535b 100644
@@ -1,9 +1,15 @@
-When used with the "pseries" machine type, QEMU-system-ppc64 implements
-a set of hypervisor calls using a subset of the server "PAPR" specification
-(IBM internal at this point), which is also what IBM's proprietary hypervisor
-adheres too.
+sPAPR hypervisor calls
+----------------------
 
-The subset is selected based on the requirements of Linux as a guest.
+When used with the ``pseries`` machine type, ``qemu-system-ppc64`` implements
+a set of hypervisor calls (a.k.a. hcalls) defined in the `Linux on Power
+Architecture Reference document (LoPAR)
+<https://cdn.openpowerfoundation.org/wp-content/uploads/2020/07/LoPAR-20200812.pdf>`_.
+This document is a subset of the Power Architecture Platform Reference (PAPR+)
+specification (IBM internal only), which is what PowerVM, the IBM proprietary
+hypervisor, adheres to.
+
+The subset in LoPAR is selected based on the requirements of Linux as a guest.
 
  In addition to those calls, we have added our own private hypervisor
  calls which are mostly used as a private interface between the firmware
@@ -12,13 +18,14 @@ running in the guest and QEMU.
  All those hypercalls start at hcall number 0xf000 which correspond
  to an implementation specific range in PAPR.
 
-- H_RTAS (0xf000)
+H_RTAS (0xf000)
+^^^^^^^^^^^^^^^
 
-RTAS is a set of runtime services generally provided by the firmware
-inside the guest to the operating system. It predates the existence
-of hypervisors (it was originally an extension to Open Firmware) and
-is still used by PAPR to provide various services that aren't performance
-sensitive.
+RTAS stands for Run-Time Abstraction Sercies and is a set of runtime services
+generally provided by the firmware inside the guest to the operating system. It
+predates the existence of hypervisors (it was originally an extension to Open
+Firmware) and is still used by PAPR and LoPAR to provide various services that
+are not performance sensitive.
 
  We currently implement the RTAS services in QEMU itself. The actual RTAS
  "firmware" blob in the guest is a small stub of a few instructions which
@@ -26,22 +33,25 @@ calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU.
 
  Arguments:
 
-  r3 : H_RTAS (0xf000)
-  r4 : Guest physical address of RTAS parameter block
+  ``r3``: ``H_RTAS (0xf000)``
+
+  ``r4``: Guest physical address of RTAS parameter block.
 
  Returns:
 
-  H_SUCCESS   : Successfully called the RTAS function (RTAS result
-                will have been stored in the parameter block)
-  H_PARAMETER : Unknown token
+  ``H_SUCCESS``: Successfully called the RTAS function (RTAS result will have
+  been stored in the parameter block).
 
-- H_LOGICAL_MEMOP (0xf001)

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU. · line 50

Quoted 10 lines
docs/specs/ppc-spapr-hcalls.txt +4 -4
+  ``H_PARAMETER``: Unknown token.
 
-When the guest runs in "real mode" (in powerpc lingua this means
-with MMU disabled, ie guest effective == guest physical), it only
-has access to a subset of memory and no IOs.
+H_LOGICAL_MEMOP (0xf001)
+^^^^^^^^^^^^^^^^^^^^^^^^
 
-PAPR provides a set of hypervisor calls to perform cacheable or
+When the guest runs in "real mode" (in powerpc lingua this means with MMU

What's up with 'lingua'? As you already know "lingua" is Brazilian portuguese for "tongue" and it's so weird to be used in this context.

The one English word that I can think of that is closer to "lingua" and would make sense here is 'lingo'. But that is a slang for 'jargon' and not appropriate for a technical document either. "langua" as a short form of "language" seems weird as well. I really believe 'jargon' is a more suitable word here.

This was added by c73e3771ea79ab and I really believe this is an unintended typo/mistake. If you're feeling generous feel free to send an extra patch (you can send an independent patch, or another patch on top of this series, your call) changing this 'lingua' instance to something more appropriate.

Since this is not this patch fault:

Quoted 57 lines
docs/specs/ppc-spapr-hcalls.txt +30 -14
+disabled, i.e. guest effective address equals to guest physical address), it
+only has access to a subset of memory and no I/Os.
+
+PAPR and LoPAR provides a set of hypervisor calls to perform cacheable or
  non-cacheable accesses to any guest physical addresses that the
  guest can use in order to access IO devices while in real mode.
 
@@ -58,21 +68,33 @@ is used by our SLOF firmware to invert the screen.
 
  Arguments:
 
-  r3: H_LOGICAL_MEMOP (0xf001)
-  r4: Guest physical address of destination
-  r5: Guest physical address of source
-  r6: Individual element size
-        0 = 1 byte
-        1 = 2 bytes
-        2 = 4 bytes
-        3 = 8 bytes
-  r7: Number of elements
-  r8: Operation
-        0 = copy
-        1 = xor
+  ``r3 ``: ``H_LOGICAL_MEMOP (0xf001)``
+
+  ``r4``: Guest physical address of destination.
+
+  ``r5``: Guest physical address of source.
+
+  ``r6``: Individual element size, defined by the binary logarithm of the
+  desired size. Supported values are:
+
+    ``0`` = 1 byte
+
+    ``1`` = 2 bytes
+
+    ``2`` = 4 bytes
+
+    ``3`` = 8 bytes
+
+  ``r7``: Number of elements.
+
+  ``r8``: Operation. Supported values are:
+
+    ``0``: copy
+
+    ``1``: xor
 
  Returns:
 
-  H_SUCCESS   : Success
-  H_PARAMETER : Invalid argument
+  ``H_SUCCESS``: Success.
 
+  ``H_PARAMETER``: Invalid argument.
\ No newline at end of file
Reviewed-by on v1 2/3
#7 lore raw

Re: [PATCH 2/3] docs: Rename ppc-spapr-hcalls.txt to ppc-spapr-hcalls.rst.

In reply to [email protected]
Quoted 4 lines · On 12/8/21 13:59, [email protected] wrote:

From: Leonardo Garcia <[email protected]>

---

Quoted 9 lines
  docs/specs/{ppc-spapr-hcalls.txt => ppc-spapr-hcalls.rst} | 0
  1 file changed, 0 insertions(+), 0 deletions(-)

rename docs/specs/{ppc-spapr-hcalls.txt => ppc-spapr-hcalls.rst} (100%)

docs/specs/ppc-spapr-hcalls.rst renamed from docs/specs/ppc-spapr-hcalls.txt +0 -0
similarity index 100%
rename from docs/specs/ppc-spapr-hcalls.txt
rename to docs/specs/ppc-spapr-hcalls.rst
Reviewed-by on v1 3/3
#9 lore raw

Re: [PATCH 3/3] Link new ppc-spapr-hcalls.rst file to pseries.rst.

In reply to [email protected]
Quoted 4 lines · On 12/8/21 13:59, [email protected] wrote:

From: Leonardo Garcia <[email protected]>

---

Quoted 22 lines
  docs/system/ppc/pseries.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/ppc/pseries.rst +1 -1
index e46f09d4c8..56f5942e13 100644
@@ -113,12 +113,12 @@ can  also be found in QEMU documentation:
  .. toctree::
     :maxdepth: 1
 
+   ../../specs/ppc-spapr-hcalls.rst
     ../../specs/ppc-spapr-numa.rst
     ../../specs/ppc-spapr-xive.rst
 
  Other documentation available in QEMU docs directory:
 
-* Hypervisor calls (a.k.a. hcalls) (``docs/specs/ppc-spapr-hcalls.txt``).
  * Hot plug (``/docs/specs/ppc-spapr-hotplug.txt``).
  * Hypervisor calls needed by the Ultravisor
    (``/docs/specs/ppc-spapr-uv-hcalls.txt``).
#3 lore raw
In reply to Daniel Henrique Barboza
Quoted 77 lines · Daniel Henrique Barboza
Quoted 60 lines · On 12/8/21 13:59, [email protected] wrote:

From: Leonardo Garcia <[email protected]>

---
  docs/specs/ppc-spapr-hcalls.txt | 92 ++++++++++++++++++++-------------
  1 file changed, 57 insertions(+), 35 deletions(-)
docs/specs/ppc-spapr-hcalls.txt +22 -16
index 93fe3da91b..c69dae535b 100644
@@ -1,9 +1,15 @@
-When used with the "pseries" machine type, QEMU-system-ppc64 implements
-a set of hypervisor calls using a subset of the server "PAPR" specification
-(IBM internal at this point), which is also what IBM's proprietary hypervisor
-adheres too.
+sPAPR hypervisor calls
+----------------------
-The subset is selected based on the requirements of Linux as a guest.
+When used with the ``pseries`` machine type, ``qemu-system-ppc64`` implements
+a set of hypervisor calls (a.k.a. hcalls) defined in the `Linux on Power
+Architecture Reference document (LoPAR)
+<https://cdn.openpowerfoundation.org/wp-content/uploads/2020/07/LoPAR-20200812.pdf>`_.
+This document is a subset of the Power Architecture Platform Reference (PAPR+)
+specification (IBM internal only), which is what PowerVM, the IBM proprietary
+hypervisor, adheres to.
+
+The subset in LoPAR is selected based on the requirements of Linux as a guest.
  In addition to those calls, we have added our own private hypervisor
  calls which are mostly used as a private interface between the firmware
@@ -12,13 +18,14 @@ running in the guest and QEMU.
  All those hypercalls start at hcall number 0xf000 which correspond
  to an implementation specific range in PAPR.
-- H_RTAS (0xf000)
+H_RTAS (0xf000)
+^^^^^^^^^^^^^^^
-RTAS is a set of runtime services generally provided by the firmware
-inside the guest to the operating system. It predates the existence
-of hypervisors (it was originally an extension to Open Firmware) and
-is still used by PAPR to provide various services that aren't performance
-sensitive.
+RTAS stands for Run-Time Abstraction Sercies and is a set of runtime services
+generally provided by the firmware inside the guest to the operating system. It
+predates the existence of hypervisors (it was originally an extension to Open
+Firmware) and is still used by PAPR and LoPAR to provide various services that
+are not performance sensitive.
  We currently implement the RTAS services in QEMU itself. The actual RTAS
  "firmware" blob in the guest is a small stub of a few instructions which
@@ -26,22 +33,25 @@ calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU.
  Arguments:
-  r3 : H_RTAS (0xf000)
-  r4 : Guest physical address of RTAS parameter block
+  ``r3``: ``H_RTAS (0xf000)``
+
+  ``r4``: Guest physical address of RTAS parameter block.
  Returns:
-  H_SUCCESS   : Successfully called the RTAS function (RTAS result
-                will have been stored in the parameter block)
-  H_PARAMETER : Unknown token
+  ``H_SUCCESS``: Successfully called the RTAS function (RTAS result will have

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU. · line 43

Quoted 10 lines
docs/specs/ppc-spapr-hcalls.txt +5 -5
+  been stored in the parameter block).
-- H_LOGICAL_MEMOP (0xf001)
+  ``H_PARAMETER``: Unknown token.
-When the guest runs in "real mode" (in powerpc lingua this means
-with MMU disabled, ie guest effective == guest physical), it only
-has access to a subset of memory and no IOs.
+H_LOGICAL_MEMOP (0xf001)
+^^^^^^^^^^^^^^^^^^^^^^^^
-PAPR provides a set of hypervisor calls to perform cacheable or
+When the guest runs in "real mode" (in powerpc lingua this means with MMU

What's up with 'lingua'? As you already know "lingua" is Brazilian portuguese for "tongue" and it's so weird to be used in this context.

Quoted 4 lines

The one English word that I can think of that is closer to "lingua" and would make sense here is 'lingo'. But that is a slang for 'jargon' and not appropriate for a technical document either. "langua" as a short form of "language" seems weird as well. I really believe 'jargon' is a more suitable word here.

As a native speaker: "lingo" would make sense here, though its tone is a little informal. "jargon" could also work, but "terminology" would probably better match the tone of the document.

I expect this hasn't been noticed before, because I think most English speakers would read "lingua" as a typo for "lingo", maybe only barely registering that it was not the standard spelling. ("lingo" is, of course, cognate with lingua and similar words from romance langauges).

Quoted 65 lines

This was added by c73e3771ea79ab and I really believe this is an unintended typo/mistake. If you're feeling generous feel free to send an extra patch (you can send an independent patch, or another patch on top of this series, your call) changing this 'lingua' instance to something more appropriate.

Since this is not this patch fault:

Quoted 51 lines
docs/specs/ppc-spapr-hcalls.txt +30 -14
+disabled, i.e. guest effective address equals to guest physical address), it
+only has access to a subset of memory and no I/Os.
+
+PAPR and LoPAR provides a set of hypervisor calls to perform cacheable or
  non-cacheable accesses to any guest physical addresses that the
  guest can use in order to access IO devices while in real mode.
@@ -58,21 +68,33 @@ is used by our SLOF firmware to invert the screen.
  Arguments:
-  r3: H_LOGICAL_MEMOP (0xf001)
-  r4: Guest physical address of destination
-  r5: Guest physical address of source
-  r6: Individual element size
-        0 = 1 byte
-        1 = 2 bytes
-        2 = 4 bytes
-        3 = 8 bytes
-  r7: Number of elements
-  r8: Operation
-        0 = copy
-        1 = xor
+  ``r3 ``: ``H_LOGICAL_MEMOP (0xf001)``
+
+  ``r4``: Guest physical address of destination.
+
+  ``r5``: Guest physical address of source.
+
+  ``r6``: Individual element size, defined by the binary logarithm of the
+  desired size. Supported values are:
+
+    ``0`` = 1 byte
+
+    ``1`` = 2 bytes
+
+    ``2`` = 4 bytes
+
+    ``3`` = 8 bytes
+
+  ``r7``: Number of elements.
+
+  ``r8``: Operation. Supported values are:
+
+    ``0``: copy
+
+    ``1``: xor
  Returns:
-  H_SUCCESS   : Success
-  H_PARAMETER : Invalid argument
+  ``H_SUCCESS``: Success.
+  ``H_PARAMETER``: Invalid argument.
\ No newline at end of file
 
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#4 lore raw
Quoted 110 lines · David Gibson
Quoted 8 lines · Daniel Henrique Barboza
Quoted 5 lines · On 12/8/21 13:59, [email protected] wrote:

From: Leonardo Garcia <[email protected]>

---
  docs/specs/ppc-spapr-hcalls.txt | 92

++++++++++++++++++++-------------

Quoted 3 lines

Review

Quoted 3 lines
  1 file changed, 57 insertions(+), 35 deletions(-)
(quoted diff) +0 -0

b/docs/specs/ppc-spapr-hcalls.txt

Quoted 5 lines

docs/specs/ppc-spapr-hcalls.txt line 1

Quoted 5 lines

index 93fe3da91b..c69dae535b 100644

docs/specs/ppc-spapr-hcalls.txt +0 -1
@@ -1,9 +1,15 @@
-When used with the "pseries" machine type, QEMU-system-ppc64

implements

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt line 2

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +0 -1
-a set of hypervisor calls using a subset of the server "PAPR"

specification

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt line 3

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +0 -1
-(IBM internal at this point), which is also what IBM's proprietary

hypervisor

Quoted 5 lines

docs/specs/ppc-spapr-hcalls.txt

Quoted 5 lines
docs/specs/ppc-spapr-hcalls.txt +3 -2
-adheres too.
+sPAPR hypervisor calls
+----------------------
-The subset is selected based on the requirements of Linux as a guest.
+When used with the ``pseries`` machine type, ``qemu-system-ppc64``

implements

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt line 4

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+a set of hypervisor calls (a.k.a. hcalls) defined in the `Linux on

Power

Quoted 2 lines

docs/specs/ppc-spapr-hcalls.txt line 6

Quoted 2 lines
docs/specs/ppc-spapr-hcalls.txt +2 -0
+Architecture Reference document (LoPAR)
+<

https://cdn.openpowerfoundation.org/wp-content/uploads/2020/07/LoPAR-20200812.pdf

Quoted 2 lines

`_.

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+This document is a subset of the Power Architecture Platform

Reference (PAPR+)

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt line 8

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+specification (IBM internal only), which is what PowerVM, the IBM

proprietary

Quoted 3 lines

docs/specs/ppc-spapr-hcalls.txt

Quoted 3 lines
docs/specs/ppc-spapr-hcalls.txt +3 -0
+hypervisor, adheres to.
+
+The subset in LoPAR is selected based on the requirements of Linux as

a guest.

Quoted 2 lines

docs/specs/ppc-spapr-hcalls.txt line 13

Quoted 2 lines
docs/specs/ppc-spapr-hcalls.txt +0 -0
  In addition to those calls, we have added our own private hypervisor
  calls which are mostly used as a private interface between the

firmware

Quoted 10 lines

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 18

Quoted 10 lines
docs/specs/ppc-spapr-hcalls.txt +2 -5
@@ -12,13 +18,14 @@ running in the guest and QEMU.
  All those hypercalls start at hcall number 0xf000 which correspond
  to an implementation specific range in PAPR.
-- H_RTAS (0xf000)
+H_RTAS (0xf000)
+^^^^^^^^^^^^^^^
-RTAS is a set of runtime services generally provided by the firmware
-inside the guest to the operating system. It predates the existence
-of hypervisors (it was originally an extension to Open Firmware) and
-is still used by PAPR to provide various services that aren't

performance

Quoted 2 lines

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 22

Quoted 2 lines
docs/specs/ppc-spapr-hcalls.txt +1 -1
-sensitive.
+RTAS stands for Run-Time Abstraction Sercies and is a set of runtime

services

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 23

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+generally provided by the firmware inside the guest to the operating

system. It

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 24

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+predates the existence of hypervisors (it was originally an extension

to Open

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 25

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+Firmware) and is still used by PAPR and LoPAR to provide various

services that

Quoted 2 lines

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 27

Quoted 2 lines
docs/specs/ppc-spapr-hcalls.txt +1 -0
+are not performance sensitive.
  We currently implement the RTAS services in QEMU itself. The actual

RTAS

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt running in the guest and QEMU. · line 28

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +0 -0
  "firmware" blob in the guest is a small stub of a few instructions

which

Quoted 1 line

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +0 -0
@@ -26,22 +33,25 @@ calls our private H_RTAS hypervisor call to pass

the RTAS calls to QEMU.

Quoted 11 lines

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU.

Quoted 11 lines
docs/specs/ppc-spapr-hcalls.txt +4 -5
  Arguments:
-  r3 : H_RTAS (0xf000)
-  r4 : Guest physical address of RTAS parameter block
+  ``r3``: ``H_RTAS (0xf000)``
+
+  ``r4``: Guest physical address of RTAS parameter block.
  Returns:
-  H_SUCCESS   : Successfully called the RTAS function (RTAS result
-                will have been stored in the parameter block)
-  H_PARAMETER : Unknown token
+  ``H_SUCCESS``: Successfully called the RTAS function (RTAS result

will have

Quoted 10 lines

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU.

Quoted 10 lines
docs/specs/ppc-spapr-hcalls.txt +5 -5
+  been stored in the parameter block).
-- H_LOGICAL_MEMOP (0xf001)
+  ``H_PARAMETER``: Unknown token.
-When the guest runs in "real mode" (in powerpc lingua this means
-with MMU disabled, ie guest effective == guest physical), it only
-has access to a subset of memory and no IOs.
+H_LOGICAL_MEMOP (0xf001)
+^^^^^^^^^^^^^^^^^^^^^^^^
-PAPR provides a set of hypervisor calls to perform cacheable or
+When the guest runs in "real mode" (in powerpc lingua this means with

MMU

Quoted 2 lines

What's up with 'lingua'? As you already know "lingua" is Brazilian

portuguese for "tongue"

Quoted 3 lines

and it's so weird to be used in this context.

The one English word that I can think of that is closer to "lingua" and

would make sense here

Quoted 1 line

is 'lingo'. But that is a slang for 'jargon' and not appropriate for a

technical document

Quoted 1 line

either. "langua" as a short form of "language" seems weird as well. I

really believe 'jargon'

Quoted 1 line

is a more suitable word here.

Quoted 9 lines

As a native speaker: "lingo" would make sense here, though its tone is a little informal. "jargon" could also work, but "terminology" would probably better match the tone of the document.

I expect this hasn't been noticed before, because I think most English speakers would read "lingua" as a typo for "lingo", maybe only barely registering that it was not the standard spelling. ("lingo" is, of course, cognate with lingua and similar words from romance langauges).

My google search turns up exactly 1 other hit for 'powerpc lingua' so it's not a wide spread thing.
In fact, it is in our archives when this commit was made to the text file as near as I can tell.

As such, the phrase should be 'in powerpc terminology' or 'in powerpc jargon' to make
sense to a native English speaker. 'linga' doesn't make sense in English (though we
do have the loan phrase 'lingua franca' meaning 'the common language' derived from the
common language of the Levant made up of a hodge-podge of other languages. Another
phrase that would make sense, but is a bit of an uncommon usage, is 'powerpc parlance'
which might capture the right nuance of meaning here better than the other suggestions.

Quoted 8 lines
Quoted 1 line

This was added by c73e3771ea79ab and I really believe this is an

unintended typo/mistake. If

Quoted 1 line

you're feeling generous feel free to send an extra patch (you can send

an independent patch,

Quoted 1 line

or another patch on top of this series, your call) changing this

'lingua' instance to something

Quoted 1 line

more appropriate.

Yes. The original review for that was the only other place google can find this turn of phrase.
I'd thought it might be a pun on lingua franca (eg 'lingua powerpc' was an in joke in that
community, but google says no).

Warner

Quoted 70 lines
Quoted 8 lines

Since this is not this patch fault:

Quoted 1 line
docs/specs/ppc-spapr-hcalls.txt +1 -0
+disabled, i.e. guest effective address equals to guest physical

address), it

Quoted 3 lines

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU.

Quoted 3 lines
docs/specs/ppc-spapr-hcalls.txt +3 -0
+only has access to a subset of memory and no I/Os.
+
+PAPR and LoPAR provides a set of hypervisor calls to perform

cacheable or

Quoted 15 lines
Quoted 15 lines
docs/specs/ppc-spapr-hcalls.txt +0 -11
  non-cacheable accesses to any guest physical addresses that the
  guest can use in order to access IO devices while in real mode.
@@ -58,21 +68,33 @@ is used by our SLOF firmware to invert the screen.
  Arguments:
-  r3: H_LOGICAL_MEMOP (0xf001)
-  r4: Guest physical address of destination
-  r5: Guest physical address of source
-  r6: Individual element size
-        0 = 1 byte
-        1 = 2 bytes
-        2 = 4 bytes
-        3 = 8 bytes
-  r7: Number of elements
-  r8: Operation
-        0 = copy
Quoted 8 lines

docs/specs/ppc-spapr-hcalls.txt is used by our SLOF firmware to invert the screen.

Quoted 8 lines
docs/specs/ppc-spapr-hcalls.txt +7 -1
-        1 = xor
+  ``r3 ``: ``H_LOGICAL_MEMOP (0xf001)``
+
+  ``r4``: Guest physical address of destination.
+
+  ``r5``: Guest physical address of source.
+
+  ``r6``: Individual element size, defined by the binary logarithm of

the

Quoted 16 lines
Quoted 16 lines
docs/specs/ppc-spapr-hcalls.txt +16 -0
+  desired size. Supported values are:
+
+    ``0`` = 1 byte
+
+    ``1`` = 2 bytes
+
+    ``2`` = 4 bytes
+
+    ``3`` = 8 bytes
+
+  ``r7``: Number of elements.
+
+  ``r8``: Operation. Supported values are:
+
+    ``0``: copy
+
Quoted 9 lines

docs/specs/ppc-spapr-hcalls.txt is used by our SLOF firmware to invert the screen.

Quoted 8 lines
docs/specs/ppc-spapr-hcalls.txt +3 -2
+    ``1``: xor
  Returns:
-  H_SUCCESS   : Success
-  H_PARAMETER : Invalid argument
+  ``H_SUCCESS``: Success.
+  ``H_PARAMETER``: Invalid argument.
\ No newline at end of file
 

--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

                                | _way_ _around_!

http://www.ozlabs.org/~dgibson

#5 lore raw
In reply to David Gibson
Quoted 11 lines
Quoted 11 lines

docs/specs/ppc-spapr-hcalls.txt calls our private H_RTAS hypervisor call to pass the RTAS calls to QEMU. · line 50

Quoted 7 lines
docs/specs/ppc-spapr-hcalls.txt +3 -4
-When the guest runs in "real mode" (in powerpc lingua this means
-with MMU disabled, ie guest effective == guest physical), it only
-has access to a subset of memory and no IOs.
+H_LOGICAL_MEMOP (0xf001)
+^^^^^^^^^^^^^^^^^^^^^^^^
-PAPR provides a set of hypervisor calls to perform cacheable or
+When the guest runs in "real mode" (in powerpc lingua this means with MMU

What's up with 'lingua'? As you already know "lingua" is Brazilian portuguese for "tongue" and it's so weird to be used in this context.

Quoted 8 lines
Quoted 4 lines

The one English word that I can think of that is closer to "lingua" and would make sense here is 'lingo'. But that is a slang for 'jargon' and not appropriate for a technical document either. "langua" as a short form of "language" seems weird as well. I really believe 'jargon' is a more suitable word here.

As a native speaker: "lingo" would make sense here, though its tone is a little informal. "jargon" could also work, but "terminology" would probably better match the tone of the document.

I changed it to terminology. No need to resend !

Thanks,

C.