From: Keir Fraser Subject: Re: [PATCH] hvm: live migration between intel and amd Date: Fri, 13 Jun 2008 17:08:23 +0100 Message-ID: References: <4852964E.9010700@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4852964E.9010700@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jean Guyader , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13/6/08 16:46, "Jean Guyader" wrote: > + /* Do we come from AMD processor ? */ > + if ( data->msr_flags == -1ULL ) > + { > + data->msr_flags = 0x7ULL; > + > + data->ldtr_limit = 0xffffffff; > + data->ldtr_arbytes = 0xc00; > + > + data->cs_arbytes = 0xc9b; > + > + data->gs_limit = 0xffffffff; > + data->gs_arbytes = 0xc00; > + > + data->tr_arbytes = 0x8b; > + } > + It's a bit rude to trample register state like this. Why do limits need to be forced? The Intel manuals do not specify that any vm-entry checks are applied to segment limits outside of vm86 mode. -- Keir