From: Avi Kivity Subject: [PATCH 00/15] More emulator cleanups Date: Sun, 1 Aug 2010 17:23:18 +0300 Message-ID: <1280672613-14026-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]:6820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756067Ab0HAOXg (ORCPT ); Sun, 1 Aug 2010 10:23:36 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o71ENZ9H001944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 1 Aug 2010 10:23:35 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o71ENYKi002372 for ; Sun, 1 Aug 2010 10:23:35 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This patchset further cleans up the emulator. The goal is to push segment decoding into 'struct operand', but a few things stood in the way. Avi Kivity (15): KVM: x86 emulator: push segment override out of decode_modrm() KVM: x86 emulator: use correct type for memory address in operands KVM: x86 emulator: simplify xchg decode tables KVM: x86 emulator: use SrcAcc to simplify xchg decoding KVM: x86 emulator: put register operand fetch into a function KVM: x86 emulator: drop use_modrm_ea KVM: x86 emulator: simplify REX.W check KVM: x86 emulator: introduce Force64 for forcing operand size to 64 bits KVM: x86 emulator: mark mov cr and mov dr as 64-bit instructions in long mode KVM: x86 emulator: use struct operand for mov reg,cr and mov cr,reg for reg op KVM: x86 emulator: use struct operand for mov reg,dr and mov dr,reg for reg op KVM: x86 emulator: add NoAccess flag for memory instructions that skip access KVM: x86 emulator: switch LEA to use SrcMem decoding KVM: x86 emulator: change invlpg emulation to use src.mem.addr KVM: x86 emulator: Decode memory operands directly into a 'struct operand' arch/x86/include/asm/kvm_emulate.h | 11 +- arch/x86/kvm/emulate.c | 321 ++++++++++++++++-------------------- 2 files changed, 147 insertions(+), 185 deletions(-)