[PATCH 0/8] More fastop patches

2013-01-12 Thread Avi Kivity
After this, only the diffult MUL and DIV case remains. Avi Kivity (8): KVM: x86 emulator: Streamline SHLD, SHRD KVM: x86 emulator: convert shift/rotate instructions to fastop KVM: x86 emulator: covert SETCC to fastop KVM: x86 emulator: convert INC/DEC to fastop KVM: x86 emulator:

[PATCH 1/8] KVM: x86 emulator: Streamline SHLD, SHRD

2013-01-12 Thread Avi Kivity
Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 33 + 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 619a33d..2189c6a 100644 --- a/arch/x86/kvm/emulate.c +++

[PATCH 2/8] KVM: x86 emulator: convert shift/rotate instructions to fastop

2013-01-12 Thread Avi Kivity
SHL, SHR, ROL, ROR, RCL, RCR, SAR, SAL Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 72 ++ 1 file changed, 31 insertions(+), 41 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index

[PATCH 4/8] KVM: x86 emulator: convert INC/DEC to fastop

2013-01-12 Thread Avi Kivity
Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index f6f615e..d89e88f 100644 --- a/arch/x86/kvm/emulate.c +++

[PATCH 8/8] KVM: x86 emulator: convert a few freestanding emulations to fastop

2013-01-12 Thread Avi Kivity
--- arch/x86/kvm/emulate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index da2b903..1bb0af2 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -2209,7 +2209,7 @@ static int em_cmpxchg(struct

[PATCH 3/8] KVM: x86 emulator: covert SETCC to fastop

2013-01-12 Thread Avi Kivity
This is a bit of a special case since we don't have the usual byte/word/long/quad switch; instead we switch on the condition code embedded in the instruction. Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 60 -- 1 file

[PATCH 7/8] KVM: x86 emulator: rearrange fastop definitions

2013-01-12 Thread Avi Kivity
Make fastop opcodes usable in other emulations. Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 70 +- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index

[PATCH 6/8] KVM: x86 emulator: convert 2-operand IMUL to fastop

2013-01-12 Thread Avi Kivity
Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 7ff83d9..c7578d0 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@

[PATCH 5/8] KVM: x86 emulator: convert BT/BTS/BTR/BTC/BSF/BSR to fastop

2013-01-12 Thread Avi Kivity
Signed-off-by: Avi Kivity avi.kiv...@gmail.com --- arch/x86/kvm/emulate.c | 76 +- 1 file changed, 26 insertions(+), 50 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index d89e88f..7ff83d9 100644 ---

Re: [PATCH] tcm_vhost: Use llist for cmd completion list

2013-01-12 Thread Paolo Bonzini
Il 06/01/2013 07:36, Asias He ha scritto: This drops the cmd completion list spin lock and makes the cmd completion queue lock-less. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 46 +- drivers/vhost/tcm_vhost.h | 2