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 09:53:42 +0000 [thread overview]
Message-ID: <C58A2C26.20CF4%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01550243@trantor>
On 07/01/2009 09:33, "James Harper" <james.harper@bendigoit.com.au> wrote:
>> Hmmm, you could be right. I suppose xentrace can confirm one way or
> the
>> other once you have it set up...
>>
>
> I am probably showing a lack of understanding about how the APIC works
> here, but from a very brief look at what writing to the TPR register
> does, all I can see is that it sets a value in vlapic->regs->data. Could
> I just map a page from the DomU into xen and assign a byte in there as
> the TPR register (one byte per CPU). I would need a new hypercall to
> turn this on but that's no big deal. Or is there more to a TPR write
> than just setting vlapic->regs->data?
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).
-- Keir
next prev parent reply other threads:[~2009-01-07 9:53 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 [this message]
2009-01-07 10:05 ` James Harper
2009-01-07 10:26 ` Keir Fraser
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=C58A2C26.20CF4%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.