From: "Jan Beulich" Subject: Re: SSE instruction emulation issues Date: Fri, 10 Jul 2015 13:16:28 +0100 Message-ID: <559FD3BC020000780008F7C0@mail.emea.novell.com> References: <559FB3F0.5000108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <559FB3F0.5000108@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Fabio Fantoni , Paul Durrant , Zhi Wang , Xen-devel List List-Id: xen-devel@lists.xenproject.org >>> On 10.07.15 at 14:00, wrote: > On 09/07/15 20:32, Zhi Wang wrote: >> We found that MOVD instruction are used by some windows driver >> during developing XenGT, and also we found this one: >> >> (XEN) MMIO emulation failed: d7v1 64bit @ 0010:fffff8000294e273 -> 66 >> 0f e7 00 48 83 c0 10 45 3 >> b cb 73 f0 45 85 c9 > > Disassembly: > 0: 66 0f e7 00 movntdq %xmm0,(%rax) > 4: 48 83 c0 10 add $0x10,%rax > 8: 45 3b cb cmp %r11d,%r9d > b: 73 f0 jae 0xfffffffffffffffd > d: 45 85 c9 test %r9d,%r9d > > The x86 instruction emulator does appear to have a decode for this > instruction. This failure suggests that the implementation is buggy. > > To start with diagnosing, add a test case to > tools/tests/x86_emulator/test_x86_emulator.c Considering that we already test MOVDQU, the emulation of which shares code with MOVNTDQ (which only differs in aspects not of interest to the emulator) I'm not sure this will turn up anything interesting. Perhaps an even easier step would be to simply run the emulator test on the machine where the issue is seen? We're playing some prefix byte tricks there... Otoh failure to execute the constructed instruction would bring down the hypervisor. Jan