From: Keir Fraser Subject: Re: Live migration fails due to c/s 20627 Date: Tue, 15 Dec 2009 19:31:28 +0000 Message-ID: References: <57c748fc-49ef-4f2f-9c98-92a1dc12116f@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <57c748fc-49ef-4f2f-9c98-92a1dc12116f@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 , Jeremy Fitzhardinge , "Xu, Dongxiao" Cc: "kurt.hackel@oracle.com" , "xen-devel@lists.xensource.com" , "Nakajima, Jun" , "Dugger, Donald D" , "Zhang, Xiantao" List-Id: xen-devel@lists.xenproject.org On 15/12/2009 19:20, "Dan Magenheimer" wrote: >> Ah, right. You'd need to make that particular illegal >> instruction vmexit. > > Or make ALL illegal instructions vmexit, decode, if rdtscp > emulate it, else vmenter again. > > Is this not done anyplace else in the hvm code? Oh, in fact I am wrong in my previous email, replying to Jeremy, claiming we do not trap-and-emulate on illegal instructions. In fact we *do*, as it got added to handle SYSCALL vs SYSENTER when migrating between Intel and AMD hosts. So all that would need to be done is to add RDTSCP support to x86_emulate.c, as it's currently missing. But that's pretty trivial. -- Keir