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] RE: rdtsc: correctness vs performance on Xen (and KVM?)

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?)
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: 2009年9月02日 14:44:47 -0700
Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2009年9月02日 14:45:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C6C3DB36.13B28%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: <C6C3DB36.13B28%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3
On 09/02/09 00:20, Keir Fraser wrote:
> The problem is a bit easier with vsyscall potentially. For example, give
> each thread its own vsyscall clock data area (easy?), updated by kernel
> whenever the thread is scheduled, and increment a version counter, checked
> before and after by the vsyscall operation.
>
Yes. Perhaps the very simplest way would be to make the kernel update
the pvclock version counter on context switch, the same way Xen does;
that would allow the usermode vsyscall code to use exactly the same
algorithm as the kernel code. Would Xen cope with that?
> Well, I don't know how easy or fast that could actually be implemented, but
> I'm at least confident it could work. But it does need kernel assistance.
>
Yes. I'm very uneasy about letting usermode have direct access to bits
of Xen without the kernel's knowledge anyway. It suddenly means we need
to not only maintain a Xen<->kernel ABI, but a Xen<->usermode ABI as well.
 J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: a room for blkio-cgroup in struct page_cgroup , Balbir Singh
Next by Date: Re: [Xen-devel] [PATCH] Make the hypercall PHYSDEVOP_alloc_irq_vector hypercall dummy. , Jeremy Fitzhardinge
Previous by Thread: Re: [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?) , Keir Fraser
Next by Thread: Re: [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?) , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

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

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