* [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
@ 2016-11-03 12:19 Roger Pau Monne
2016-11-03 12:22 ` Andrew Cooper
2016-11-03 13:06 ` Jan Beulich
0 siblings, 2 replies; 8+ messages in thread
From: Roger Pau Monne @ 2016-11-03 12:19 UTC (permalink / raw)
To: xen-devel
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, Jan Beulich, Boris Ostrovsky,
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é <roger.pau@citrix.com>
---
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Tim Deegan <tim@xen.org>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
docs/misc/hvmlite.markdown | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/misc/hvmlite.markdown b/docs/misc/hvmlite.markdown
index 09051ee..946908e 100644
--- a/docs/misc/hvmlite.markdown
+++ b/docs/misc/hvmlite.markdown
@@ -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.
--
2.7.4 (Apple Git-66)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 12:19 [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests Roger Pau Monne
@ 2016-11-03 12:22 ` Andrew Cooper
2016-11-03 12:34 ` Wei Liu
2016-11-03 13:06 ` Jan Beulich
1 sibling, 1 reply; 8+ messages in thread
From: Andrew Cooper @ 2016-11-03 12:22 UTC (permalink / raw)
To: Roger Pau Monne, xen-devel
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Ian Jackson,
Tim Deegan, Jan Beulich, Boris Ostrovsky
On 03/11/16 12:19, Roger Pau Monne wrote:
> 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é <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 12:22 ` Andrew Cooper
@ 2016-11-03 12:34 ` Wei Liu
0 siblings, 0 replies; 8+ messages in thread
From: Wei Liu @ 2016-11-03 12:34 UTC (permalink / raw)
To: Andrew Cooper
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Tim Deegan,
Ian Jackson, Jan Beulich, xen-devel, Boris Ostrovsky,
Roger Pau Monne
On Thu, Nov 03, 2016 at 12:22:57PM +0000, Andrew Cooper wrote:
> On 03/11/16 12:19, Roger Pau Monne wrote:
> > 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é <roger.pau@citrix.com>
>
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Applied.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 12:19 [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests Roger Pau Monne
2016-11-03 12:22 ` Andrew Cooper
@ 2016-11-03 13:06 ` Jan Beulich
2016-11-03 15:38 ` Roger Pau Monne
1 sibling, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2016-11-03 13:06 UTC (permalink / raw)
To: Roger Pau Monne
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, xen-devel, Boris Ostrovsky
>>> On 03.11.16 at 13:19, <roger.pau@citrix.com> wrote:
> --- a/docs/misc/hvmlite.markdown
> +++ b/docs/misc/hvmlite.markdown
> @@ -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).
Why "hint"?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 13:06 ` Jan Beulich
@ 2016-11-03 15:38 ` Roger Pau Monne
2016-11-03 15:55 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Roger Pau Monne @ 2016-11-03 15:38 UTC (permalink / raw)
To: Jan Beulich
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, xen-devel, Boris Ostrovsky
On Thu, Nov 03, 2016 at 07:06:14AM -0600, Jan Beulich wrote:
> >>> On 03.11.16 at 13:19, <roger.pau@citrix.com> wrote:
> > --- a/docs/misc/hvmlite.markdown
> > +++ b/docs/misc/hvmlite.markdown
> > @@ -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).
>
> 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 15:38 ` Roger Pau Monne
@ 2016-11-03 15:55 ` Jan Beulich
2016-11-03 16:00 ` George Dunlap
2016-11-03 16:06 ` George Dunlap
0 siblings, 2 replies; 8+ messages in thread
From: Jan Beulich @ 2016-11-03 15:55 UTC (permalink / raw)
To: Roger Pau Monne
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, xen-devel, Boris Ostrovsky
>>> On 03.11.16 at 16:38, <roger.pau@citrix.com> wrote:
> On Thu, Nov 03, 2016 at 07:06:14AM -0600, Jan Beulich wrote:
>> >>> On 03.11.16 at 13:19, <roger.pau@citrix.com> wrote:
>> > --- a/docs/misc/hvmlite.markdown
>> > +++ b/docs/misc/hvmlite.markdown
>> > @@ -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).
>>
>> 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.
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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 15:55 ` Jan Beulich
@ 2016-11-03 16:00 ` George Dunlap
2016-11-03 16:06 ` George Dunlap
1 sibling, 0 replies; 8+ messages in thread
From: George Dunlap @ 2016-11-03 16:00 UTC (permalink / raw)
To: Jan Beulich, Roger Pau Monne
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, xen-devel, Boris Ostrovsky
On 03/11/16 15:55, Jan Beulich wrote:
>>>> On 03.11.16 at 16:38, <roger.pau@citrix.com> wrote:
>> On Thu, Nov 03, 2016 at 07:06:14AM -0600, Jan Beulich wrote:
>>>>>> On 03.11.16 at 13:19, <roger.pau@citrix.com> wrote:
>>>> --- a/docs/misc/hvmlite.markdown
>>>> +++ b/docs/misc/hvmlite.markdown
>>>> @@ -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).
>>>
>>> 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.
>
> 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests
2016-11-03 15:55 ` Jan Beulich
2016-11-03 16:00 ` George Dunlap
@ 2016-11-03 16:06 ` George Dunlap
1 sibling, 0 replies; 8+ messages in thread
From: George Dunlap @ 2016-11-03 16:06 UTC (permalink / raw)
To: Jan Beulich, Roger Pau Monne
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, xen-devel, Boris Ostrovsky
On 03/11/16 15:55, Jan Beulich wrote:
>>>> On 03.11.16 at 16:38, <roger.pau@citrix.com> wrote:
>> On Thu, Nov 03, 2016 at 07:06:14AM -0600, Jan Beulich wrote:
>>>>>> On 03.11.16 at 13:19, <roger.pau@citrix.com> wrote:
>>>> --- a/docs/misc/hvmlite.markdown
>>>> +++ b/docs/misc/hvmlite.markdown
>>>> @@ -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).
>>>
>>> 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.
>
> 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-11-03 16:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-03 12:19 [PATCH for-4.8] docs: document ACPI usage in PVHv2 guests Roger Pau Monne
2016-11-03 12:22 ` Andrew Cooper
2016-11-03 12:34 ` Wei Liu
2016-11-03 13:06 ` Jan Beulich
2016-11-03 15:38 ` Roger Pau Monne
2016-11-03 15:55 ` Jan Beulich
2016-11-03 16:00 ` George Dunlap
2016-11-03 16:06 ` George Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).