public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/30] emulator cleanup
@ 2010-03-15 14:38 Gleb Natapov
  2010-03-15 14:38 ` [PATCH v3 01/30] KVM: x86 emulator: Fix DstAcc decoding Gleb Natapov
                   ` (31 more replies)
  0 siblings, 32 replies; 39+ messages in thread
From: Gleb Natapov @ 2010-03-15 14:38 UTC (permalink / raw)
  To: avi, mtosatti; +Cc: kvm

This is the first series of patches that tries to cleanup emulator code.
This is mix of bug fixes and moving code that does emulation from x86.c
to emulator.c while making it KVM independent. The status of the patches:
works for me. realtime.flat test now also pass where it failed before.

ChangeLog:

v1->v2:
  - A couple of new bug fixed
  - cpl is now x86_emulator_ops callback
  - during string instruction re-enter guest on each page boundary
  - retain fast path for pio out (do not go through emulator)
v2->v3:
  - use correct operand length for pio instruction with REX prefix
  - check for string instruction before decrementing ecx
  - change guest re-entry condition for string instruction

Gleb Natapov (30):
  KVM: x86 emulator: Fix DstAcc decoding.
  KVM: x86 emulator: fix RCX access during rep emulation
  KVM: x86 emulator: check return value against correct define
  KVM: Remove pointer to rflags from realmode_set_cr parameters.
  KVM: Provide callback to get/set control registers in emulator ops.
  KVM: remove realmode_lmsw function.
  KVM: Provide x86_emulate_ctxt callback to get current cpl
  KVM: Provide current eip as part of emulator context.
  KVM: x86 emulator: fix mov r/m, sreg emulation.
  KVM: x86 emulator: fix 0f 01 /5 emulation
  KVM: x86 emulator: 0f (20|21|22|23) ignore mod bits.
  KVM: x86 emulator: inject #UD on access to non-existing CR
  KVM: x86 emulator: fix mov dr to inject #UD when needed.
  KVM: x86 emulator: fix return values of syscall/sysenter/sysexit
    emulations
  KVM: x86 emulator: do not call writeback if msr access fails.
  KVM: x86 emulator: If LOCK prefix is used dest arg should be memory.
  KVM: x86 emulator: cleanup grp3 return value
  KVM: x86 emulator: Provide more callbacks for x86 emulator.
  KVM: x86 emulator: Emulate task switch in emulator.c
  KVM: x86 emulator: Use load_segment_descriptor() instead of
    kvm_load_segment_descriptor()
  KVM: Use task switch from emulator.c
  KVM: x86 emulator: populate OP_MEM operand during decoding.
  KVM: x86 emulator: add decoding of X,Y parameters from Intel SDM
  KVM: x86 emulator: during rep emulation decrement ECX only if
    emulation succeeded
  KVM: x86 emulator: fix in/out emulation.
  KVM: x86 emulator: Move string pio emulation into emulator.c
  KVM: x86 emulator: remove saved_eip
  KVM: x86 emulator: restart string instruction without going back to a
    guest.
  KVM: x86 emulator: introduce pio in string read ahead.
  KVM: small kvm_arch_vcpu_ioctl_run() cleanup.

 arch/x86/include/asm/kvm_emulate.h |   41 ++-
 arch/x86/include/asm/kvm_host.h    |   16 +-
 arch/x86/kvm/emulate.c             | 1062 ++++++++++++++++++++++++++---------
 arch/x86/kvm/svm.c                 |   20 +-
 arch/x86/kvm/vmx.c                 |   18 +-
 arch/x86/kvm/x86.c                 | 1121 +++++++++---------------------------
 6 files changed, 1146 insertions(+), 1132 deletions(-)


^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2010-03-16  9:43 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15 14:38 [PATCH v3 00/30] emulator cleanup Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 01/30] KVM: x86 emulator: Fix DstAcc decoding Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 02/30] KVM: x86 emulator: fix RCX access during rep emulation Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 03/30] KVM: x86 emulator: check return value against correct define Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 04/30] KVM: Remove pointer to rflags from realmode_set_cr parameters Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 05/30] KVM: Provide callback to get/set control registers in emulator ops Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 06/30] KVM: remove realmode_lmsw function Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 07/30] KVM: Provide x86_emulate_ctxt callback to get current cpl Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 08/30] KVM: Provide current eip as part of emulator context Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 09/30] KVM: x86 emulator: fix mov r/m, sreg emulation Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 10/30] KVM: x86 emulator: fix 0f 01 /5 emulation Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 11/30] KVM: x86 emulator: 0f (20|21|22|23) ignore mod bits Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 12/30] KVM: x86 emulator: inject #UD on access to non-existing CR Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 13/30] KVM: x86 emulator: fix mov dr to inject #UD when needed Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 14/30] KVM: x86 emulator: fix return values of syscall/sysenter/sysexit emulations Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 15/30] KVM: x86 emulator: do not call writeback if msr access fails Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 16/30] KVM: x86 emulator: If LOCK prefix is used dest arg should be memory Gleb Natapov
2010-03-15 15:46   ` Andre Przywara
2010-03-15 15:50     ` Avi Kivity
2010-03-15 18:10     ` Gleb Natapov
2010-03-16  9:37       ` Avi Kivity
2010-03-16  9:43         ` Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 17/30] KVM: x86 emulator: cleanup grp3 return value Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 18/30] KVM: x86 emulator: Provide more callbacks for x86 emulator Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 19/30] KVM: x86 emulator: Emulate task switch in emulator.c Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 20/30] KVM: x86 emulator: Use load_segment_descriptor() instead of kvm_load_segment_descriptor() Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 21/30] KVM: Use task switch from emulator.c Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 22/30] KVM: x86 emulator: populate OP_MEM operand during decoding Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 23/30] KVM: x86 emulator: add decoding of X,Y parameters from Intel SDM Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 24/30] KVM: x86 emulator: during rep emulation decrement ECX only if emulation succeeded Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 25/30] KVM: x86 emulator: fix in/out emulation Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 26/30] KVM: x86 emulator: Move string pio emulation into emulator.c Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 27/30] KVM: x86 emulator: remove saved_eip Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 28/30] KVM: x86 emulator: restart string instruction without going back to a guest Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 29/30] KVM: x86 emulator: introduce pio in string read ahead Gleb Natapov
2010-03-15 14:38 ` [PATCH v3 30/30] KVM: small kvm_arch_vcpu_ioctl_run() cleanup Gleb Natapov
2010-03-15 15:04 ` [PATCH v3 00/30] emulator cleanup Avi Kivity
2010-03-15 15:51 ` Andre Przywara
2010-03-15 16:57   ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox