From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] KVM: x86 emulator: emulate MOVNTDQ Date: Sun, 13 Jul 2014 19:12:23 +0300 Message-ID: <53C2AFE7.5080505@gmail.com> References: <20140711175345.19079.28143.stgit@gimli.home> <1405109152.4098.99.camel@ul30vt.home> <53C04BDB.1080707@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM , Linux Kernel Mailing List To: Paolo Bonzini , Alex Williamson , Eric Northup Return-path: Received: from mail-wg0-f50.google.com ([74.125.82.50]:62799 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753740AbaGMQM0 (ORCPT ); Sun, 13 Jul 2014 12:12:26 -0400 In-Reply-To: <53C04BDB.1080707@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 07/11/2014 11:40 PM, Paolo Bonzini wrote: > Il 11/07/2014 22:05, Alex Williamson ha scritto: >> Which will return 'true' for this whether I specify Aligned or not. If >> the standard convention is to make it explicit, I'm happy to add the >> extra flag, but I think we already #GP on unaligned as implemented here. >> Thanks, > > We should still specify Aligned if the corresponding AVX instruction > requires an aligned operand. ISTR that this is not the case for > MOVNTDQ, so your patch is correct. I'll check the SDM more carefully > next Monday. > The explicitly aligned/unaligned instructions have an A or a U to indicate this (e.g. MOVDQU = explicitly unaligned, MOVDQA = explicitly aligned, MOVNTDQ = default).