From: Keir Fraser Subject: Re: [PATCH] [HVM] Fix lmsw handling Date: Fri, 27 Jun 2008 17:23:57 +0100 Message-ID: References: <515922b50806270611w42f0ec1bnfe048f5d326f10af@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0299255314==" Return-path: In-Reply-To: <515922b50806270611w42f0ec1bnfe048f5d326f10af@mail.gmail.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: Trolle Selander , xen-devel List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0299255314== Content-type: multipart/alternative; boundary="B_3297432238_6860028" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3297432238_6860028 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable I applied it, but then realised that additionally LMSW can only affect bits 0-3 of CR0. Additionally SMSW emulation is wrong because it is only limited to 16-bit operation when the destination operand is memory. So I=B9ve fixed u= p these things in a subsequent changeset. -- Keir On 27/6/08 14:11, "Trolle Selander" wrote: > The lmsw instruction can be used to set CR0_PE, but can never clear it, o= nce > set. Currently, as far as I can see, there is no provision to keep lmsw f= rom > clearing CR0_PE, either in the vmx code or in x86_emulate code (which is = used > by SVM to emulate lmsw). This patch fixes this issue. >=20 > Signed-off-by: Trolle Selander >=20 --B_3297432238_6860028 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [PATCH] [HVM] Fix lmsw handling I app= lied it, but then realised that additionally LMSW can only affect bits 0-3 o= f CR0. Additionally SMSW emulation is wrong because it is only limited to 16= -bit operation when the destination operand is memory. So I’ve fixed u= p these things in a subsequent changeset.

 -- Keir

On 27/6/08 14:11, "Trolle Selander" <trolle.selander@gmail.com= > wrote:

The lmsw instruction can be used to set CR0_PE, but can= never clear it, once set. Currently, as far as I can see, there is no provi= sion to keep lmsw from clearing CR0_PE, either in the vmx code or in x86_emu= late code (which is used by SVM to emulate lmsw). This patch fixes this issu= e.

Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>


--B_3297432238_6860028-- --===============0299255314== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0299255314==--