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: Wed, 16 Dec 2009 02:05:42 +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: Tue, 15 Dec 2009 10:06:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6CADD16F56BC954D8E28F3836FA7ED7105AC8685A3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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> <6CADD16F56BC954D8E28F3836FA7ED7105AC8685A3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acp856su4kF9fTnBSg+UgtKQQ/JhlwALEDHmAAqPLAAAG+WoMA==
Thread-topic: Live migration fails due to c/s 20627
HVM RDTSCP fix.
 - Put the guest rdtscp cpuid logic in xc_cpuid_x86.c.
 - MSR_TSC_AUX's high 32bit is reserved, so only write the low 32bit.

Signed-off-by: Dongxiao Xu <dongxiao.xu@xxxxxxxxx>



Xu, Dongxiao wrote:
> 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

Attachment: hvm_rdtscp.patch
Description: hvm_rdtscp.patch

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