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

[Xen-devel] RE: Live migration fails due to c/s 20627

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: [Xen-devel] RE: Live migration fails due to c/s 20627
From: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
Date: Tue, 15 Dec 2009 12:40:15 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "kurt.hackel@xxxxxxxxxx" <kurt.hackel@xxxxxxxxxx>, "Dugger, Donald D" <donald.d.dugger@xxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Delivery-date: Mon, 14 Dec 2009 20:42:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C74C7891.46AD%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: <7368e0be-f9f9-47fc-9dd3-4cc9a3f5515c@default> <C74C7891.46AD%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acp856su4kF9fTnBSg+UgtKQQ/JhlwALEDHmAAqPLAA=
Thread-topic: Live migration fails due to c/s 20627
Keir Fraser wrote:
> On 14/12/2009 18:02, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
> wrote: 
> 
>> This may be true in concept, but existing tools (including
>> the default xm tools) do NOT check for this... I just
>> tested a live migration between a Nehalem (which supports
>> rdtscp) and a Conroe (which does not).  The live migration
>> works fine and the app using rdtscp runs fine on the
>> Nehalem and then crashes when the live migration completes
>> on the Conroe.  I *know* of existing code in Oracle
>> that will be broken by this!
> 
> This is a general problem for migration between dissimilar
> processors. The solution is to 'level' the feature sets, by masking
> CPUID flags from the more-featured processor. In this case you would
> mask out RDTSCP (and perhaps others too). This does need the RDTSCP
> flag setting/clearing to be moved to xc_cpuid_x86.c, as currently the
> user cannot override the policy wedged into the hypervisor itself.
> That's an easy thing to fix. 

I will write a patch for this. Thanks!

-- Dongxiao

> 
>  -- Keir
> 
> 
> 
> _______________________________________________
> 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