From: Juergen Gross <jgross@suse.com>
To: quizyjones <quizy_jones@outlook.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: what's inside hypercall page?
Date: Thu, 3 Mar 2016 06:28:06 +0100 [thread overview]
Message-ID: <56D7CB66.2050701@suse.com> (raw)
In-Reply-To: <SNT152-W7994C6422C724729FAD58190BD0@phx.gbl>
On 03/03/16 01:56, quizyjones wrote:
>> do_sched_op is self explaining: it is used for scheduling of the vcpu.
>> A vcpu going to idle is using this hypercall. So any interrupt waking
>> the vcpu up will seem to occur very near to the hypercall.
>
>> do_xen_version is often used as a very fast way to execute the check
>> for pending events in the hypervisor (kind of polling).
>
>> do_multicall might run for a long time. So the hypervisor returns to
>> the caller from time to time setting IP to the hypercall. The caller
>> has the chance to react to interrupts and will then continue the
>> hypercall.
>>
>>
>> HTH, Juergen
>
>
> Thanks for the replying. Does that mean we cannot predict when will
> these two hypercalls finish? I want to set up an interval to monitor the
> instructions (one time monitor per hypercall), so as to reduce the
> performance cost. This requires an accurate prediction of instructions'
> execution so as to avoid missing hypercalls. Is that possible? The main
> problem is the execution of syscall (0x050f), as each hypercall behaves
> different, how can I predict where will it go after the syscall returns?
You can't predict how long a hypercall will run, as this depends on multiple
factors, like the overall load of the host, values of parameters, ...
A hypercall is by it's nature much more complicated than e.g. a simple
arithmetic operation.
What exactly do you want to achieve?
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-03-03 5:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 3:50 what's inside hypercall page? quizyjones
2016-03-02 12:44 ` quizyjones
2016-03-02 14:29 ` quizyjones
2016-03-02 14:48 ` Juergen Gross
2016-03-03 0:56 ` quizyjones
2016-03-03 5:28 ` Juergen Gross [this message]
2016-03-03 7:09 ` quizyjones
2016-03-03 7:27 ` Juergen Gross
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=56D7CB66.2050701@suse.com \
--to=jgross@suse.com \
--cc=quizy_jones@outlook.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).