Skip to content

Emulator exception improvements

Avi Kivity kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7KVM: x86 emulator: introduce struct x86_exception to communicate faultsarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c arch/x86/kvm/x86.c+38 -120 replies
2/7KVM: x86 emulator: make emulator memory callbacks return full exceptionarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c arch/x86/kvm/x86.c+84 -960 replies
3/7KVM: x86 emulator: drop dead pf injection in emulate_popf()arch/x86/kvm/emulate.c+0 -80 replies
4/7KVM: x86 emulator: tighen up ->read_std() and ->write_std() error checksarch/x86/kvm/emulate.c+8 -80 replies
5/7KVM: x86 emulator: simplify exception generationarch/x86/kvm/emulate.c+50 -900 replies
6/7KVM: Push struct x86_exception info the various gva_to_gpa variantsarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.c arch/x86/kvm/paging_tmpl.h +1 more+51 -470 replies
7/7KVM: Push struct x86_exception into walk_addr()arch/x86/kvm/paging_tmpl.h+14 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Emulator exception improvements

This boring patchset introduces a struct x86_exception to represent an exception, and uses it to communicate between the emulator and the rest of kvm. The primary benefit is that we can now pass a #GP from kvm into the emulator, not just #PFs.

I'd like to also fold vcpu->arch.fault into struct x86_exception, but that's more difficult, so deferred until later.

Avi Kivity (7):
KVM: x86 emulator: introduce struct x86_exception to communicate
faults
KVM: x86 emulator: make emulator memory callbacks return full
exception
KVM: x86 emulator: drop dead pf injection in emulate_popf()
KVM: x86 emulator: tighen up ->read_std() and ->write_std() error
checks
KVM: x86 emulator: simplify exception generation
KVM: Push struct x86_exception info the various gva_to_gpa variants
KVM: Push struct x86_exception into walk_addr()

 arch/x86/include/asm/kvm_emulate.h |   26 +++--
 arch/x86/include/asm/kvm_host.h    |   14 ++-
 arch/x86/kvm/emulate.c             |  243 ++++++++++++++----------------------
 arch/x86/kvm/mmu.c                 |   13 +-
 arch/x86/kvm/paging_tmpl.h         |   31 +++--
 arch/x86/kvm/x86.c                 |   97 ++++++++-------
 6 files changed, 195 insertions(+), 229 deletions(-)