]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Swap the dst and src operand for MOVNTDQA
authorSean Christopherson <seanjc@google.com>
Wed, 6 May 2026 21:35:14 +0000 (14:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 May 2026 21:12:32 +0000 (23:12 +0200)
commit3098c076c83ea2913245cb915cdcba98eb24214c
tree891c486690a34835d463186b025f1a5c4400785c
parent6b72d0578ca6f77b835d773d7c77c2f872d3e924
KVM: x86: Swap the dst and src operand for MOVNTDQA

Swap the MOVNTDQA operands, as MOVNTDQA does NOT in fact have "the same
characteristics as 0F E7 (MOVNTDQ)"; MOVNTDQA loads from memory and stores
to registers, while MOVNTDQ loads from registers and stores to memory.

Per the SDM:

 MOVNTDQ - Move packed integer values in xmm1 to m128 using non-temporal
           hint.

 MOVNTDQA - Move double quadword from m128 to xmm1 using non-temporal hint
            if WC memory type.

Reported-by: Josh Eads <josheads@google.com>
Fixes: c57d9bafbd0b ("KVM: x86: Add support for emulating MOVNTDQA")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20260506213514.2781948-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c