WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

RE: [Xen-devel] TPR write optimization (even improves 2003 sp2)

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] TPR write optimization (even improves 2003 sp2)
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Wed, 7 Jan 2009 23:12:52 +1100
Cc:
Delivery-date: 2009年1月07日 04:13:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C58A33BA.20D03%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D01550245@trantor > <C58A33BA.20D03%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclwbQESFc81qMn2SR2vAjv2yU5MgQABpemAAAyUQdEAAFfuQAAAdgGuAAA1Q7AAAPb/BAAAN9OgAADpQpkAA5LWcA==
Thread-topic: [Xen-devel] TPR write optimization (even improves 2003 sp2)
> On 07/01/2009 10:05, "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
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().
I can see the vmx_intr_assist function, but I can't find what calls it.
Is vmx code for both amd and intel? Or is it vmx=intel and svm=amd? I've
never got my head around those terms...
> > 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.
>
Hmmm... if I do things in the right order I should be able to avoid
races.
James
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-devel] disable qemu PCI devices in HVM domains , James Harper
Next by Date: RE: [Xen-devel] TPR write optimization (even improves 2003 sp2) , James Harper
Previous by Thread: Re: [Xen-devel] TPR write optimization (even improves 2003 sp2) , Keir Fraser
Next by Thread: RE: [Xen-devel] TPR write optimization (even improves 2003 sp2) , James Harper
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /