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 1/2] Migrate tsc values during migration

To: "Ben Guthro" <bguthro@xxxxxxxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Dave Winchell" <dwinchell@xxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 1/2] Migrate tsc values during migration
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 6 Jun 2008 10:42:32 +0800
Delivery-date: Thu, 05 Jun 2008 19:43:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4847FF6F.4090506@xxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4847FF6F.4090506@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjHHQRf10dyjfm+T1a3qqj2IDVmOQAYNu3g
Thread-topic: [Xen-devel] [PATCH 1/2] Migrate tsc values during migration
> diff -r f1508348ffab tools/libxc/xc_domain_restore.c
> ...
> +#define rdtscll(val) do { \
> +     unsigned int a,d; \
> +     asm volatile("rdtsc" : "=a" (a), "=d" (d)); \
> +     (val) = ((unsigned long)a) | (((unsigned long)d)<<32); \
> +} while(0)
> +
>  /* max mfn of the current host machine */
>  static unsigned long max_mfn; 
> ...

The "rdtscll" definition is buggy for  __i386__  since sizeof "int" and "long" 
usually are 4 there. 

-- Dexuan


-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ben Guthro
Sent: 2008年6月5日 23:00
To: xen-devel; Dave Winchell
Subject: [Xen-devel] [PATCH 1/2] Migrate tsc values during migration

Migrate the last TSC values for more accurate timekeeping during live 
migration

Signed-off-by: Dave Winchell <dwinchell@xxxxxxxxxxxxxxx>
Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>

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

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