docs: document ACPI usage in PVHv2 guests
PATCH 1/1 docs: document ACPI usage in PVHv2 guests
It is possible for PVHv2 guests to get the hardware description from ACPI tables, add this to the documentation also.
---
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]>
Cc: Boris Ostrovsky <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
--- docs/misc/hvmlite.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+)
docs/misc/hvmlite.markdown +11 -0
@@ -64,3 +64,14 @@ The following VCPU hypercalls can be used in order to bring up secondary vCPUs: * `VCPUOP_down` is used to bring down a vCPU. * `VCPUOP_is_up` is used to scan the number of available vCPUs. + +## Hardware description ## + +PVHv2 guests that have access to hardware (either emulated or real) will also +have ACPI tables with the description of the hardware that's available to the +guest. This applies to both privileged and unprivileged guests. A hint of +the position of the RSDP in memory (if present) can be fetched from the start +info structure that's passed at boot time (field rsdp_paddr). + +Description of paravirtualized devices will come from XenStore, just as it's +done for HVM guests.
Signature · 7 lines
2.7.4 (Apple Git-66) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines · Roger Pau Monne
It is possible for PVHv2 guests to get the hardware description from ACPI tables, add this to the documentation also.
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Wei Liu
AppliedQuoted 7 lines · Andrew Cooper
Quoted 4 lines · Roger Pau Monne
It is possible for PVHv2 guests to get the hardware description from ACPI tables, add this to the documentation also.
Signed-off-by Roger Pau Monné <[email protected]>Reviewed-by Andrew Cooper <[email protected]>
Applied.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 13:19, <[email protected]> wrote:
docs/misc/hvmlite.markdown +0
-0@@ -64,3 +64,14 @@ The following VCPU hypercalls can be used in order to bring up secondary vCPUs: * `VCPUOP_down` is used to bring down a vCPU.
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to bring up secondary vCPUs: · line 74
Quoted 10 lines
docs/misc/hvmlite.markdown +8
-0* `VCPUOP_is_up` is used to scan the number of available vCPUs. + +## Hardware description ## + +PVHv2 guests that have access to hardware (either emulated or real) will also +have ACPI tables with the description of the hardware that's available to the +guest. This applies to both privileged and unprivileged guests. A hint of +the position of the RSDP in memory (if present) can be fetched from the start +info structure that's passed at boot time (field rsdp_paddr).
Why "hint"?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 13:19, <[email protected]> wrote:
docs/misc/hvmlite.markdown +0
-0@@ -64,3 +64,14 @@ The following VCPU hypercalls can be used in order to bring up secondary vCPUs: * `VCPUOP_down` is used to bring down a vCPU.
Quoted 11 lines
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to bring up secondary vCPUs: · line 74
Quoted 9 lines
docs/misc/hvmlite.markdown +8
-0* `VCPUOP_is_up` is used to scan the number of available vCPUs. + +## Hardware description ## + +PVHv2 guests that have access to hardware (either emulated or real) will also +have ACPI tables with the description of the hardware that's available to the +guest. This applies to both privileged and unprivileged guests. A hint of +the position of the RSDP in memory (if present) can be fetched from the start +info structure that's passed at boot time (field rsdp_paddr).Why "hint"?
Hm, maybe that's not the best word? (my English is clearly lacking sometimes). What I meant is that this is a pointer to the RSDP. I've probably used "hint" here because in FreeBSD the position of the RSDP is passed from the loader to the kernel as "hint.acpi.0.rsdp". Let me know if you would like me to rephrase this.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 16:38, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 13:19, <[email protected]> wrote:
docs/misc/hvmlite.markdown +0
-0@@ -64,3 +64,14 @@ The following VCPU hypercalls can be used in order tobring up secondary vCPUs:
Quoted 13 lines
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to bring up secondary vCPUs: · line 74
Quoted 11 lines
docs/misc/hvmlite.markdown +8
-0* `VCPUOP_down` is used to bring down a vCPU. * `VCPUOP_is_up` is used to scan the number of available vCPUs. + +## Hardware description ## + +PVHv2 guests that have access to hardware (either emulated or real) will also +have ACPI tables with the description of the hardware that's available to the +guest. This applies to both privileged and unprivileged guests. A hint of +the position of the RSDP in memory (if present) can be fetched from the start +info structure that's passed at boot time (field rsdp_paddr).Why "hint"?
Quoted 5 lines
Hm, maybe that's not the best word? (my English is clearly lacking sometimes). What I meant is that this is a pointer to the RSDP. I've probably used "hint" here because in FreeBSD the position of the RSDP is passed from the loader to the kernel as "hint.acpi.0.rsdp". Let me know if you would like me to rephrase this.
I indeed think this should be re-worded. After all that start info field is iirc the _only_ way to get the pointer.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 16:38, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 13:19, <[email protected]> wrote:
docs/misc/hvmlite.markdown +0
-0@@ -64,3 +64,14 @@ The following VCPU hypercalls can be used in order tobring up secondary vCPUs:
Quoted 13 lines
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to bring up secondary vCPUs: · line 74
Quoted 11 lines
docs/misc/hvmlite.markdown +8
-0* `VCPUOP_down` is used to bring down a vCPU. * `VCPUOP_is_up` is used to scan the number of available vCPUs. + +## Hardware description ## + +PVHv2 guests that have access to hardware (either emulated or real) will also +have ACPI tables with the description of the hardware that's available to the +guest. This applies to both privileged and unprivileged guests. A hint of +the position of the RSDP in memory (if present) can be fetched from the start +info structure that's passed at boot time (field rsdp_paddr).Why "hint"?
Quoted 8 lines
Quoted 5 lines
Hm, maybe that's not the best word? (my English is clearly lacking sometimes). What I meant is that this is a pointer to the RSDP. I've probably used "hint" here because in FreeBSD the position of the RSDP is passed from the loader to the kernel as "hint.acpi.0.rsdp". Let me know if you would like me to rephrase this.
I indeed think this should be re-worded. After all that start info field is iirc the _only_ way to get the pointer.
Yes, a hint, particularly in computer science, is a bit of information which 1) isn't strictly needed, and 2) may not actually be correct; a hint may be ignored with no change in functionality (only performance). You might hint to the OS that a bit of memory is going to be very hot and should therefore not be paged out; but the OS can ignore that hint if it wants. SCHEDOP_yield in Xen is a hint.
Since as Jan says, the information *is* strictly needed, and must always be correct, you should probably just call it a pointer.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 16:38, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 13:19, <[email protected]> wrote:
docs/misc/hvmlite.markdown +0
-0@@ -64,3 +64,14 @@ The following VCPU hypercalls can be used in order tobring up secondary vCPUs:
Quoted 13 lines
docs/misc/hvmlite.markdown The following VCPU hypercalls can be used in order to bring up secondary vCPUs: · line 74
Quoted 11 lines
docs/misc/hvmlite.markdown +8
-0* `VCPUOP_down` is used to bring down a vCPU. * `VCPUOP_is_up` is used to scan the number of available vCPUs. + +## Hardware description ## + +PVHv2 guests that have access to hardware (either emulated or real) will also +have ACPI tables with the description of the hardware that's available to the +guest. This applies to both privileged and unprivileged guests. A hint of +the position of the RSDP in memory (if present) can be fetched from the start +info structure that's passed at boot time (field rsdp_paddr).Why "hint"?
Quoted 8 lines
Quoted 5 lines
Hm, maybe that's not the best word? (my English is clearly lacking sometimes). What I meant is that this is a pointer to the RSDP. I've probably used "hint" here because in FreeBSD the position of the RSDP is passed from the loader to the kernel as "hint.acpi.0.rsdp". Let me know if you would like me to rephrase this.
I indeed think this should be re-worded. After all that start info field is iirc the _only_ way to get the pointer.
In plain English, a "hint" is a bit of information that is meant to help you reach the answer to a puzzle more quickly; but without which you should (in theory) be able to solve it yourself. If a student was struggling with a mathematical proof, the teacher might say something like, "Here's a hint: x is never negative." (Or whatever.) Or if you had hidden something for someone to find, you might say, "Here's a hint:
It's near something blue."
But if you wanted to come visit me, I couldn't say, "Here's a hint: My address is 123 Easy St", because I certainly wasn't expecting you to figure out what my address was by doing a brute-force search. :-)
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel