Skip to content

Simplify byte/word opcode pair decode

Avi Kivity kvm 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 1 replyApplied
  2. v28 patches 3 repliesSuperseded
  3. v18 patches 9 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8KVM: x86 emulator: support byte/word opcode pairsarch/x86/kvm/emulate.c+6 -00 replies
2/8KVM: x86 emulator: simplify ALU block (opcodes 00-3F) decode flagsarch/x86/kvm/emulate.c+16 -240 replies
3/8KVM: x86 emulator: simplify string instruction decode flagsarch/x86/kvm/emulate.c+6 -70 replies
4/8KVM: x86 emulator: simplify instruction decode flags for opcodes 80-8Farch/x86/kvm/emulate.c+3 -40 replies
5/8KVM: x86 emulator: simplify instruction decode flags for opcodes A0-AFarch/x86/kvm/emulate.c+3 -30 replies
6/8KVM: x86 emulator: simplify instruction decode flags for opcodes C0-DFarch/x86/kvm/emulate.c+3 -40 replies
7/8KVM: x86 emulator: simplify instruction decode flags for opcodes E0-FFarch/x86/kvm/emulate.c+2 -40 replies
8/8KVM: x86 emulator: simplify instruction decode flags for opcodes 0F 00-FFarch/x86/kvm/emulate.c+2 -20 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/8] Simplify byte/word opcode pair decode

Many x86 instructions come in pairs - byte and word variants where bit 0 of the opcode determines operand size. Use this to simplify the decode tables.

Rebased, plus:

Avi Kivity (8):
KVM: x86 emulator: support byte/word opcode pairs
KVM: x86 emulator: simplify ALU block (opcodes 00-3F) decode flags
- v2: fix opcode 25 (AND r/m, imm) to accept a full immediate, not 8-bit
KVM: x86 emulator: simplify string instruction decode flags
KVM: x86 emulator: simplify instruction decode flags for opcodes

    80-8F
  KVM: x86 emulator: simplify instruction decode flags for opcodes
    A0-AF
  KVM: x86 emulator: simplify instruction decode flags for opcodes
    C0-DF
    - v3: fix opcode C1 to accept an 8-bit immediate, not full
  KVM: x86 emulator: simplify instruction decode flags for opcodes
    E0-FF
  KVM: x86 emulator: simplify instruction decode flags for opcodes 0F
    00-FF
 arch/x86/kvm/emulate.c |   89 ++++++++++++++++++++++--------------------------
 1 files changed, 41 insertions(+), 48 deletions(-)