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] [PATCH] new nomigrate config option

To: dan.magenheimer@xxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] new nomigrate config option
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Thu, 22 Oct 2009 12:05:17 -0700 (PDT)
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Oct 2009 12:07:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <04bad226-b4d4-4049-afd9-03f7661d025e@default>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Oops, sorry I forgot to add perhaps the most important
part of the idea below:

If the physical system has the Invariant TSC cpuid
bit set AND a domain has nomigrate==1, tsc_native
could be auto-enabled for that domain!

> -----Original Message-----
> From: Dan Magenheimer 
> Sent: Thursday, October 22, 2009 11:57 AM
> To: Keir Fraser; Tim Deegan
> Cc: Xen-Devel (E-mail)
> Subject: RE: [Xen-devel] [PATCH] new nomigrate config option
> 
> 
> > >> I suspect Dan wants to interrogate this flag from 
> unprivileged domU
> > >> userspace, with no domU kernel modifications.
> > > 
> > > In that case all that's needed is a user-space xenbus client. :)
> > 
> > Is that all. :-)
> > 
> > I plan to see how this userspace hypercall stuff goes and at 
> > the end of the
> > day, if/when we don't like it, it's going to be very easy 
> to disable.
> 
> Actually, I've got an interesting idea that requires no
> userspace hypercall.
> 
> If the physical system has the Invariant TSC cpuid bit set
> AND a domain has nomigrate==1, the Invariant TSC bit can/should
> be surfaced to the domain.  Also, Invariant TSC can/should
> be surfaced to ANY domain that is booted with tsc_native==0.
> 
> Then apps that test for the Invariant TSC bit (and find it
> set) can always use rdtsc directly.
> 
> More complicated environments (e.g. where high-frequency time
> stamp apps are running and migration is still required) may
> still need userspace hypercall, but this first step can
> still be useful on many physical systems without them.
> 
> Dan
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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