xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	WeiLiu <wei.liu2@citrix.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Tim Deegan <tim@xen.org>, Julien Grall <julien.grall@arm.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Ian Jackson <ian.jackson@citrix.com>
Subject: Re: [Xen-devel] [PATCH v2 2/2] docs: Introduce some hypercall page documentation
Date: Wed, 29 May 2019 04:50:53 -0700	[thread overview]
Message-ID: <c339648b-b6a8-147d-47be-c8ac35351f3d@citrix.com> (raw)
Message-ID: <20190529115053.aEK3-r4g4mIE44g0U2yOXbLmWSLnUR6jiEhaVnJzX9g@z> (raw)
In-Reply-To: <5CEE469802000078002334FE@prv1-mh.provo.novell.com>

On 29/05/2019 09:45, Jan Beulich wrote:
>>>> On 29.05.19 at 06:10, <andrew.cooper3@citrix.com> wrote:
>> This also introduced the top-level Guest Documentation section.
>>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Acked-by: Jan Beulich <jbeulich@suse.com>

Thanks.

> with one further remark / question:
>
>> +Hypercall Page
>> +==============
>> +
>> +The hypercall page is a page of guest RAM into which Xen will write suitable
>> +transfer stubs.
>> +
>> +Creating a hypercall page is an isolated operation from Xen's point of view.
>> +It is the guests responsibility to ensure that the hypercall page, once
>> +written by Xen, is mapped with executable permissions so it may be used.
>> +Multiple hypercall pages may be created by the guest, if it wishes.
>> +
>> +The stubs are arranged by hypercall index, and start on 32-byte boundaries.
>> +To invoke a specific hypercall, ``call`` the relevant stub [3]_:
>> +
>> +.. code-block:: none
>> +
>> +  call hypercall_page + index * 32
>> +
>> +There result is an ABI which is invariant of the exact operating mode or
>> +hardware vendor.  This is intended to simplify guest kernel interfaces by
>> +abstracting away the details of how it is currently running.
> Is it worth mentioning here that certain aspects of the hypervisor interface
> (shared data structures) are influenced by the mode the guest is in at the
> time the most recent hypercall page registration (oddly enough alternatively
> the most recent setting of HVM_PARAM_CALLBACK_IRQ) has occurred?

That aspect had crossed my mind, but I decided to leave it for now.

Details on the format of the shared_info page should live primarily in
the shared_info documentation, but I do intend to cross reference
appropriate documentation when both sides are in place.  I'd prefer that
any addition to this document happens when the main shared_info
documentation is done, rather than having an unqualified fraction of the
end result.

Note however that I am taking this opportunity to evaluate the current
behaviour of the areas being documented (hence the cleanup patches), and
I make no guarantees that the details of shared_info latching will be
identical to how they currently are, when the documentation is
eventually complete.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2019-05-29 11:51 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23 10:20 [PATCH 0/2] Hypercall page docs and code cleanup Andrew Cooper
2019-05-23 10:20 ` [Xen-devel] " Andrew Cooper
2019-05-23 10:20 ` [PATCH 1/2] x86: init_hypercall_page() cleanup Andrew Cooper
2019-05-23 10:20   ` [Xen-devel] " Andrew Cooper
2019-05-23 10:23   ` Wei Liu
2019-05-23 10:23     ` [Xen-devel] " Wei Liu
2019-05-23 10:49     ` Jan Beulich
2019-05-23 10:49       ` [Xen-devel] " Jan Beulich
2019-05-28  5:31   ` Tian, Kevin
2019-05-28  5:31     ` [Xen-devel] " Tian, Kevin
2019-06-19 16:17   ` Woods, Brian
2019-05-23 10:20 ` [PATCH 2/2] docs: Introduce some hypercall page documentation Andrew Cooper
2019-05-23 10:20   ` [Xen-devel] " Andrew Cooper
2019-05-23 10:23   ` Wei Liu
2019-05-23 10:23     ` [Xen-devel] " Wei Liu
2019-05-23 10:56   ` Jan Beulich
2019-05-23 10:56     ` [Xen-devel] " Jan Beulich
2019-05-23 11:01     ` Andrew Cooper
2019-05-23 11:01       ` [Xen-devel] " Andrew Cooper
2019-05-23 11:41       ` Jan Beulich
2019-05-23 11:41         ` [Xen-devel] " Jan Beulich
2019-05-23 12:02         ` Andrew Cooper
2019-05-23 12:02           ` [Xen-devel] " Andrew Cooper
2019-05-23 12:14           ` Jan Beulich
2019-05-23 12:14             ` [Xen-devel] " Jan Beulich
2019-05-29  4:10   ` [PATCH v2 " Andrew Cooper
2019-05-29  4:10     ` [Xen-devel] " Andrew Cooper
     [not found]     ` <EF573A6C020000F58E2C01CD@prv1-mh.provo.novell.com>
2019-05-29  8:45       ` Jan Beulich
2019-05-29  8:45         ` [Xen-devel] " Jan Beulich
2019-05-29 11:50         ` Andrew Cooper [this message]
2019-05-29 11:50           ` Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c339648b-b6a8-147d-47be-c8ac35351f3d@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ian.jackson@citrix.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).