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: 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 10:56:39 -0700 (PDT)
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Oct 2009 10:58:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C703420B.17F57%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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> >> 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