From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abYaH-00070v-Nm for qemu-devel@nongnu.org; Thu, 03 Mar 2016 14:06:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abYaE-0001R0-Fs for qemu-devel@nongnu.org; Thu, 03 Mar 2016 14:06:49 -0500 Received: from mail-qg0-x241.google.com ([2607:f8b0:400d:c04::241]:33161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abYaE-0001Qu-BX for qemu-devel@nongnu.org; Thu, 03 Mar 2016 14:06:46 -0500 Received: by mail-qg0-x241.google.com with SMTP id y89so2004286qge.0 for ; Thu, 03 Mar 2016 11:06:46 -0800 (PST) Sender: Richard Henderson References: <1456983051-14707-1-git-send-email-rth@twiddle.net> <1456983051-14707-5-git-send-email-rth@twiddle.net> <56D7E054.2040703@reactos.org> <56D80D2C.3060706@redhat.com> From: Richard Henderson Message-ID: <56D88B42.7060208@twiddle.net> Date: Thu, 3 Mar 2016 11:06:42 -0800 MIME-Version: 1.0 In-Reply-To: <56D80D2C.3060706@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 4/7] target-i386: Dump illegal opcodes with -d unimp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , =?UTF-8?Q?Herv=c3=a9_Poussineau?= , qemu-devel@nongnu.org On 03/03/2016 02:08 AM, Paolo Bonzini wrote: >> Do you want LOG_UNIMP or LOG_GUEST_ERROR? > > I would actually use LOG_IN_ASM. As you noticed, guests sometimes use > illegal opcodes; another example is Xen's hypercall interface. > > On 03/03/2016 07:57, Hervé Poussineau wrote: >> This patch is not quiet on some operating systems: >> OS/2: >> ILLOPC: 000172e1: 0f a6 >> >> Windows XP: >> ILLOPC: 00020d1a: c4 c4 >> >> And very verbose in Windows 3.11, Windows 9x: >> ILLOPC: 000ffb17: 63 >> ILLOPC: 000ffb17: 63 >> >> Is it normal? > > Yes, it is. As usual, Raymond Chen explains what's going on: > > https://blogs.msdn.microsoft.com/oldnewthing/20041215-00/?p=37003 Wow. That's... interesting. I think maybe I'll re-do the patch to distinguish between those opcodes that are completely unrecognized (which is what I was expecting to find) and those that raise #UD due to cpu state (e.g. this arpl in vm86 mode). r~