From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] x86_emulate: Emulate nop (0x90) instruction Date: Sat, 14 Jun 2008 18:26:22 +0300 Message-ID: <4853E31E.7020101@qumranet.com> References: <52d4a3890806140450k14a13025i3dd3a60187940804@mail.gmail.com> <87bq24no4z.fsf@basil.nowhere.org> <52d4a3890806140635g23ce598dlcba6b3a88ce69de9@mail.gmail.com> <4853DF0A.6030401@firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Mohammed Gamal , kvm@vger.kernel.org, riel@surriel.com To: Andi Kleen Return-path: Received: from il.qumranet.com ([212.179.150.194]:54329 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751849AbYFNP00 (ORCPT ); Sat, 14 Jun 2008 11:26:26 -0400 In-Reply-To: <4853DF0A.6030401@firstfloor.org> Sender: kvm-owner@vger.kernel.org List-ID: Andi Kleen wrote: >> Thanks for pointing this out. 0x90 is also the opcode for xchg r8,rAX >> instruction. >> > > But nop doesn't actually need to execute exchange. > The sequence 0x41 0x90 uses the 0x90 opcode but is not a nop. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.