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 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Windows SMP

To: 'James Harper' <james.harper@xxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Venefax <venefax@xxxxxxxxx>, Dirk Utterback <dirk.utterback@xxxxxxxxx>
Subject: RE: [Xen-devel] Windows SMP
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Wed, 31 Dec 2008 10:35:20 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 30 Dec 2008 18:35:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01550110@trantor>
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: <AEC6C66638C05B468B556EA548C1A77D0155010E@trantor> <C57E3CDD.209A3%keir.fraser@xxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01550110@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclpXq3FDdh9/hRMR7SA68V92eNifgAAPoJwAAAyQsAAADKfEAALC0YVAAATS8AAAMFZnAAAQgAQAFbUseA=
Thread-topic: [Xen-devel] Windows SMP
>From: James Harper
>Sent: Monday, December 29, 2008 4:48 PM
>
>> On 29/12/2008 08:20, "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
>wrote:
>> 
>> >>  3. Run Citrix drivers which patch Windows to avoid TPR writes.
>> 
>> > Can you elaborate on that last point? Does that pass WHQL?
>> 
>> The WHQL tests are oblivious to it. It's just a patching of mmio
>writes to
>> the APIC TPR register.
>> 
>
>Looking at the way KVM does it, it appears to detect writes to the TPR
>register when they are trapped, and then give the DomU (or whatever KVM
>calls it) the address of the instruction so that the DomU driver can
>then patch it. Is that what Citrix is doing? Does the current xensource
>tree have such a mechanism in it?
>

IIRC, based on my understanding months ago when KVM PTR
patching was introduced, it only works for UP windows guest.
One tricky issue for dynamic instruction patching is how to encode
vcpu ID in register, since vcpu ID is the index into per-vcpu shadow
vTPR value. Use memory accesses to retrieve vcpu ID would lower
down the performance gain. KVM borrows only one bit from vTR (TI?)
as vcpu id.

Thanks,
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>