Skip to content

Vendor specific instructions and the emulator

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 Latest3 patches 1 replyApplied
  2. v23 patches 0 repliesSuperseded
  3. v14 patches 4 repliesApplied

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: Drop bogus x86_decode_insn() error checkarch/x86/kvm/x86.c+0 -30 replies
2/3KVM: x86 emulator: vendor specific instructionsarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c+10 -30 replies
3/3KVM: Drop ad-hoc vendor specific instruction restrictionarch/x86/kvm/x86.c+5 -280 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/3] Vendor specific instructions and the emulator

Currently we have some ad-hoc code in x86.c to restrict #UD emulation to expected instructions (that is, vendor specific instructions). This patchset replaces the ad-hoc code with proper emulator support using decode tables.

Avi Kivity (3):
KVM: Drop bogus x86_decode_insn() error check
v2: replaces v1's first two patches
KVM: x86 emulator: vendor specific instructions
KVM: Drop ad-hoc vendor specific instruction restriction
v3: preserve early-exit on #UD (reexecute_instruction() isn't reliable
since we don't have a valid cr2)

 arch/x86/include/asm/kvm_emulate.h |    1 +
 arch/x86/kvm/emulate.c             |   12 +++++++++---
 arch/x86/kvm/x86.c                 |   36 +++++-------------------------------
 3 files changed, 15 insertions(+), 34 deletions(-)