Skip to content

More emulator cleanups

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15KVM: x86 emulator: push segment override out of decode_modrm()arch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c+7 -40 replies
2/15KVM: x86 emulator: use correct type for memory address in operandsarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c+62 -610 replies
3/15KVM: x86 emulator: simplify xchg decode tablesarch/x86/kvm/emulate.c+1 -10 replies
4/15KVM: x86 emulator: use SrcAcc to simplify xchg decodingarch/x86/kvm/emulate.c+4 -110 replies
5/15KVM: x86 emulator: put register operand fetch into a functionarch/x86/kvm/emulate.c+21 -400 replies
6/15KVM: x86 emulator: drop use_modrm_eaarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c+0 -20 replies
7/15KVM: x86 emulator: simplify REX.W checkarch/x86/kvm/emulate.c+2 -30 replies
8/15KVM: x86 emulator: introduce Force64 for forcing operand size to 64 bitsarch/x86/kvm/emulate.c+2 -10 replies
9/15KVM: x86 emulator: mark mov cr and mov dr as 64-bit instructions in long modearch/x86/kvm/emulate.c+2 -21 reply
10/15KVM: x86 emulator: use struct operand for mov reg,cr and mov cr,reg for reg oparch/x86/kvm/emulate.c+4 -50 replies
11/15KVM: x86 emulator: use struct operand for mov reg,dr and mov dr,reg for reg oparch/x86/kvm/emulate.c+4 -50 replies
12/15KVM: x86 emulator: add NoAccess flag for memory instructions that skip accessarch/x86/kvm/emulate.c+4 -20 replies
13/15KVM: x86 emulator: switch LEA to use SrcMem decodingarch/x86/kvm/emulate.c+2 -20 replies
14/15KVM: x86 emulator: change invlpg emulation to use src.mem.addrarch/x86/kvm/emulate.c+1 -10 replies
15/15KVM: x86 emulator: Decode memory operands directly into a 'struct operand'arch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c+57 -712 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] More emulator cleanups

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(-)