From: Keir Fraser <keir.fraser@eu.citrix.com>
To: James Harper <james.harper@bendigoit.com.au>,
xen-devel@lists.xensource.com
Subject: Re: TPR write optimization (even improves 2003 sp2)
Date: Wed, 07 Jan 2009 10:26:02 +0000 [thread overview]
Message-ID: <C58A33BA.20D03%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01550245@trantor>
On 07/01/2009 10:05, "James Harper" <james.harper@bendigoit.com.au> wrote:
>> Sometimes it triggers an interrupt to be delivered. So you'd need a
> TPR
>> threshold too to cause a VMEXIT sometimes. Or perhaps map the whole
> APIC
>> page and work it out yourself (possibly the Citrix drivers do this,
> but
>> I'm not really familiar with them).
>
> I can't see anything that would trigger an interrupt beyond
> vlapic_write(). Is it just the act of invoking a VMEXIT that triggers
> the interrupt delivery?
Yes. See vmx_intr_assist().
> From memory, there is a register somewhere that says what the highest
> interrupt level that is currently blocked is... I'll look at that. This
> doesn't actually sound that hard...
An interrupt is delivered if:
highest_prio(IRR) > max(highest_prio(ISR), TPR).
Where highest_prio() is based on a backwards bitmap scan.
If you go down the route of setting a TPR threshold for vmexit, that would
be (hp = highest_prio):
TPR_thresh = ((hp(IRR) > hp(ISR)) && (hp(IRR) < TPR)) ? hp(IRR) : 0
Where VMEXIT occurs if TPR is updated to a value less than the threshold.
-- Keir
next prev parent reply other threads:[~2009-01-07 10:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 2:09 TPR write optimization James Harper
2009-01-07 2:59 ` TPR write optimization (even improves 2003 sp2) James Harper
2009-01-07 8:57 ` Keir Fraser
2009-01-07 9:14 ` James Harper
2009-01-07 9:20 ` Keir Fraser
2009-01-07 9:33 ` James Harper
2009-01-07 9:53 ` Keir Fraser
2009-01-07 10:05 ` James Harper
2009-01-07 10:26 ` Keir Fraser [this message]
2009-01-07 12:12 ` James Harper
2009-01-07 12:15 ` James Harper
2009-01-07 12:24 ` Keir Fraser
2009-01-07 22:51 ` James Harper
2009-01-08 0:40 ` James Harper
2009-01-08 3:53 ` James Harper
2009-01-08 9:08 ` Keir Fraser
2009-01-08 9:10 ` James Harper
2009-01-08 9:07 ` Keir Fraser
2009-01-08 9:09 ` James Harper
2009-01-08 9:12 ` Keir Fraser
2009-01-08 9:14 ` James Harper
2009-01-08 9:14 ` Keir Fraser
2009-01-08 9:17 ` James Harper
2009-01-07 12:35 ` James Harper
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=C58A33BA.20D03%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=james.harper@bendigoit.com.au \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.