From: Avi Kivity Subject: [PATCH v3 0/2] Emulate MMX MOVQ Date: Sun, 25 Mar 2012 15:57:25 +0200 Message-ID: <1332683847-20801-1-git-send-email-avi@redhat.com> To: kvm@vger.kernel.org, Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:63551 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753952Ab2CYN5f (ORCPT ); Sun, 25 Mar 2012 09:57:35 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2PDvZqk010590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 25 Mar 2012 09:57:35 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2PDvY0l022426 for ; Sun, 25 Mar 2012 09:57:35 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This patchset emulates two instructions: MOVQ mm, mm/m64 MOVQ mm/m64, mm Needed by https://bugzilla.kernel.org/show_bug.cgi?id=42779. Changes from v2: - s/return rc/goto done/ to get correct return code semantics - now passes #MF on movq unit test Changes from v1: - fix spurious traps propgated into the guest - delay loading mmx register state until after we're sure it won't trap Avi Kivity (2): KVM: x86 emulator: MMX support KVM: x86 emulator: implement MMX MOVQ (opcodes 0f 6f, 0f 7f) arch/x86/include/asm/kvm_emulate.h | 4 +- arch/x86/kvm/emulate.c | 111 ++++++++++++++++++++++++++++++++++-- 2 files changed, 109 insertions(+), 6 deletions(-) -- 1.7.9