From: Keir Fraser Subject: Re: RE: [Xen-staging] [xen-unstable] svm: Improve emulation of SMSW instruction for memory operands. Date: Fri, 30 Mar 2007 17:54:54 +0100 Message-ID: References: <907625E08839C4409CE5768403633E0B018E1B66@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E1B66@sefsexmb1.amd.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: "Petersson, Mats" , xen-devel@lists.xensource.com, xen-staging@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 30/3/07 17:21, "Petersson, Mats" wrote: > Shouldn't such assumptions be checked by a "BUG_ON", "ASSERT" or > similar? It doesn't seem like difficult thing to check to me. And it's > heck of a lot easier to figure out why it went completely horribly > wrong, than when the code just happily continues to execute, but in the > wrong place or in some incorrect way? > > [I agree that there's like 0.1% chance that someone uses SMSW in 64-bit > mode, but it's still a VALID instruction in that mode - and perhaps more > importantly, it may be used in different addressing mode in 32-bit > code.] It's no worse than the code it replaces. Feel very free to send a patch. -- Keir