From: Keir Fraser Subject: Re: Live migration fails due to c/s 20627 Date: Mon, 14 Dec 2009 23:19:45 +0000 Message-ID: References: <7368e0be-f9f9-47fc-9dd3-4cc9a3f5515c@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7368e0be-f9f9-47fc-9dd3-4cc9a3f5515c@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , "kurt.hackel@oracle.com" , "Dugger, Donald D" , "Nakajima, Jun" , "Zhang, Xiantao" List-Id: xen-devel@lists.xenproject.org On 14/12/2009 18:02, "Dan Magenheimer" 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. -- Keir