[Qemu-devel] [PATCH 39/65] target-i386: Use clz and ctz opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/i386/helper.h | 2 -- target/i386/int_helper.c | 11 --- target/i386/translate.c | 31 ++- 3 files changed, 14 insertions(+), 30 deletions(-) diff --git a/target/i386/helper.h b/target/i386/helper.h index bd9b2

[Qemu-devel] [PATCH 49/65] tcg/i386: Rely on undefined/undocumented behaviour of BSF/BSR

2016-12-23 Thread Richard Henderson
The ISA manual documents the output is undefined if the input was zero. However, we document in target-i386 that the behavior of real silicon is to preserve the contents of the output register. We also mention that there are real applications that depend on this. That this is baked into silicon

[Qemu-devel] [PATCH 44/65] tcg/s390: Handle clz opcode

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.h | 2 +- tcg/s390/tcg-target.inc.c | 36 +++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h index 3ac2dc9..22500ba 100644 --- a/tcg/s390/t

[Qemu-devel] [PATCH 40/65] tcg/ppc: Handle ctz and clz opcodes

2016-12-23 Thread Richard Henderson
Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 10 +--- tcg/ppc/tcg-target.inc.c | 67 2 files changed, 73 insertions(+), 4 deletions(-) diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 69

[Qemu-devel] [PATCH 18/65] target-s390x: Use the new deposit and extract ops

2016-12-23 Thread Richard Henderson
Use the new primitives for RISBG. Signed-off-by: Richard Henderson --- target/s390x/translate.c | 34 ++ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/target/s390x/translate.c b/target/s390x/translate.c index 02bc705..6cebb7e 100644 --- a/target/

[Qemu-devel] [PATCH 54/65] tcg: Add opcode for ctpop

2016-12-23 Thread Richard Henderson
The number of actual invocations of ctpop itself does not warrent an opcode, but it is very helpful for POWER7 to use in generating an expansion for ctz. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg-runtime.c| 10 ++ tcg/aarch64/tcg-target.h | 2 ++ tcg

[Qemu-devel] [PATCH 47/65] tcg/i386: Allow bmi2 shiftx to have non-matching operands

2016-12-23 Thread Richard Henderson
Previously we could not have different constraints for different ISA levels, which prevented us from eliding the matching constraint for shifts. We do now have to make sure that the operands match for constant shifts. We can also handle some small left shifts via lea. Signed-off-by: Richard Hende

[Qemu-devel] [PATCH 19/65] tcg/optimize: Fold movcond 0/1 into setcond

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/optimize.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tcg/optimize.c b/tcg/optimize.c index f41ed2c..9e26bb7 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1105,6 +1105,21 @@ void tcg_optimize(TCGContext *s)

[Qemu-devel] [PATCH 45/65] tcg/i386: Fuly convert tcg_target_op_def

2016-12-23 Thread Richard Henderson
Use a switch instead of searching a table. Share constraints between 32-bit and 64-bit, when at all possible. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.inc.c | 340 +++--- 1 file changed, 198 insertions(+), 142 deletions(-) diff --git a/tc

[Qemu-devel] [PATCH 60/65] target-i386: Use ctpop helper

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/i386/cc_helper.c | 3 +++ target/i386/cpu.h| 1 + target/i386/ops_sse.h| 26 -- target/i386/ops_sse_header.h | 1 - target/i386/translate.c | 13 +++-- 5 files changed, 15 insertions(+), 2

[Qemu-devel] [PATCH 53/65] target-xtensa: Use clrsb helper

2016-12-23 Thread Richard Henderson
Cc: Max Filippov Signed-off-by: Richard Henderson --- target/xtensa/translate.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 5c719a4..5a93705 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/

[Qemu-devel] [PATCH 46/65] tcg/i386: Hoist common arguments in tcg_out_op

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.inc.c | 197 ++ 1 file changed, 95 insertions(+), 102 deletions(-) diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c index e497bef..83572ac 100644 --- a/tcg/i386/tcg-target.inc.c

[Qemu-devel] [PATCH 20/65] tcg: Add markup for output requires new register

2016-12-23 Thread Richard Henderson
This is the same concept as, and same markup as, the early clobber markup in gcc. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg.c | 34 ++ tcg/tcg.h | 1 + 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/tcg/tcg.c b/tcg/t

[Qemu-devel] [PATCH 63/65] tcg: Use ctpop to generate ctz if needed

2016-12-23 Thread Richard Henderson
Particularly when andc is also available, this is two insns shorter than using clz to compute ctz. Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 100 +++ 1 file changed, 60 insertions(+), 40 deletions(-) diff --git a/tcg/tcg-op.c b/t

[Qemu-devel] [PATCH 50/65] tcg: Add helpers for clrsb

2016-12-23 Thread Richard Henderson
The number of actual invocations does not warrent an opcode, and the backends generating it. But at least we can eliminate redundant helpers. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg-runtime.c | 10 ++ tcg/tcg-op.c | 28 tc

[Qemu-devel] [PATCH 52/65] target-tricore: Use clrsb helper

2016-12-23 Thread Richard Henderson
Tested-by: Bastian Koppelmann Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- target/tricore/helper.h| 1 - target/tricore/op_helper.c | 5 - target/tricore/translate.c | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/target/tricore/helper.h b/t

[Qemu-devel] [PATCH 65/65] tcg/i386: Handle ctpop opcode

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 5 +++-- tcg/i386/tcg-target.inc.c | 12 +++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index b8f73f5..21d96ec 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg

[Qemu-devel] [PATCH 21/65] tcg: Transition flat op_defs array to a target callback

2016-12-23 Thread Richard Henderson
This will allow the target to tailor the constraints to the auto-detected ISA extensions. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 14 ++-- tcg/arm/tcg-target.inc.c | 14 ++-- tcg/i386/tcg-target.inc.c| 14 ++-- tcg/ia64/tc

[Qemu-devel] [PATCH 56/65] target-ppc: Use ctpop helper

2016-12-23 Thread Richard Henderson
Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson --- target/ppc/helper.h | 3 +-- target/ppc/int_helper.c | 18 +++--- target/ppc/translate.c | 6 +- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/target/ppc/helper.h b/target/ppc/helper.h index 1ed1

[Qemu-devel] [PATCH 51/65] target-arm: Use clrsb helper

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/helper-a64.c| 10 -- target/arm/helper-a64.h| 2 -- target/arm/translate-a64.c | 8 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.

[Qemu-devel] [PATCH 22/65] tcg: Pass the opcode width to target_parse_constraint

2016-12-23 Thread Richard Henderson
This will let us choose how to interpret a given constraint depending on whether the opcode is 32- or 64-bit. Which will let us share more constraint combinations between opcodes. At the same time, change the interface to return the advanced pointer instead of passing it in/out by reference. Rev

[Qemu-devel] [Bug 1469978] Re: compile qemu use with KVM machine not supported

2016-12-23 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1469978 Title: compile qem

[Qemu-devel] [PATCH 59/65] target-tilegx: Use ctpop helper

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/tilegx/helper.c| 5 - target/tilegx/helper.h| 1 - target/tilegx/translate.c | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/target/tilegx/helper.c b/target/tilegx/helper.c index b6f5e29..4964bb9 100644 --- a/target/til

[Qemu-devel] [PATCH 26/65] disas/ppc: Handle popcnt and cnttz

2016-12-23 Thread Richard Henderson
Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson --- disas/ppc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/disas/ppc.c b/disas/ppc.c index bd05623..ed7e0d0 100644 --- a/disas/ppc.c +++ b/disas/ppc.c @@ -1955,6 +1955,9 @@ extract_tbr (unsigned long insn, #define POWE

[Qemu-devel] [PATCH 57/65] target-s390x: Avoid a loop for popcnt

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/s390x/int_helper.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/target/s390x/int_helper.c b/target/s390x/int_helper.c index 5bc470b..f26f36a 100644 --- a/target/s390x/int_helper.c +++ b/target/s390x/int_helper.c @@

[Qemu-devel] [PATCH 28/65] target-cris: Use clz opcode

2016-12-23 Thread Richard Henderson
Cc: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/cris/helper.h| 1 - target/cris/op_helper.c | 5 - target/cris/translate.c | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/target/cris/helper.h b/target/cris/helper.h index ff35956..20d21c4 100644 ---

[Qemu-devel] [PATCH 61/65] qemu/host-utils.h: Reduce the operation count in the fallback ctpop

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- include/qemu/host-utils.h | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h index 46187bb..96288d0 100644 --- a/include/qemu/host-util

[Qemu-devel] [PATCH 34/65] target-tilegx: Use clz and ctz opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/tilegx/helper.c| 10 -- target/tilegx/helper.h| 2 -- target/tilegx/translate.c | 4 ++-- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/target/tilegx/helper.c b/target/tilegx/helper.c index b4fba9c..b6f5e29 100644 ---

[Qemu-devel] [PATCH 62/65] tests: New test-bitcnt

2016-12-23 Thread Richard Henderson
From: Alex Bennée Add some unit tests for bit count functions (currently only ctpop). As the routines are based on the Hackers Delight optimisations I based the test patterns on their tests. Signed-off-by: Alex Bennée Signed-off-by: Richard Henderson --- tests/.gitignore | 1 + tests/

[Qemu-devel] [PATCH 33/65] target-s390x: Use clz opcode

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/s390x/helper.h | 1 - target/s390x/int_helper.c | 6 -- target/s390x/translate.c | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/target/s390x/helper.h b/target/s390x/helper.h index 207a6e7..9102071 100644 --- a/target/s390

[Qemu-devel] [PATCH 36/65] target-unicore32: Use clz opcode

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/unicore32/helper.c| 10 -- target/unicore32/helper.h| 3 --- target/unicore32/translate.c | 6 +++--- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c index d603bde..

[Qemu-devel] [PATCH 38/65] target-arm: Use clz opcode

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/helper-a64.c| 10 -- target/arm/helper-a64.h| 2 -- target/arm/helper.c| 5 - target/arm/helper.h| 1 - target/arm/translate-a64.c | 8 target/arm/translate.c | 6 +++---

[Qemu-devel] [PATCH 41/65] tcg/aarch64: Handle ctz and clz opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 8 tcg/aarch64/tcg-target.inc.c | 48 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h index 976f493..9d6b0

[Qemu-devel] [PATCH 48/65] tcg/i386: Handle ctz and clz opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 8 +-- tcg/i386/tcg-target.inc.c | 125 ++ 2 files changed, 120 insertions(+), 13 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index f2d9955..8fff287 100644 -

[Qemu-devel] [PATCH 55/65] target-alpha: Use ctpop helper

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/alpha/helper.h | 2 -- target/alpha/int_helper.c | 5 - target/alpha/translate.c | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/target/alpha/helper.h b/target/alpha/helper.h index eed3906..d60f208 100644 --- a/target/alph

[Qemu-devel] [PATCH 58/65] target-sparc: Use ctpop helper

2016-12-23 Thread Richard Henderson
Cc: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target/sparc/helper.c| 5 - target/sparc/helper.h| 1 - target/sparc/translate.c | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/target/sparc/helper.c b/target/sparc/helper.c index 359b0b1..1d85489 100644

[Qemu-devel] [PATCH 64/65] tcg/ppc: Handle ctpop opcode

2016-12-23 Thread Richard Henderson
Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 5 +++-- tcg/ppc/tcg-target.inc.c | 12 +++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 57e66cf..abd8b3d 100644 --- a/tcg/ppc/tcg

[Qemu-devel] [Bug 1469924] Re: qemu-kvm crash when guest os is booting

2016-12-23 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1469924 Title: qemu-kvm cr

[Qemu-devel] [PULL 1/4] cryptodev: fix the check of aes algorithm

2016-12-23 Thread Gonglei
From: "Longpeng(Mike)" As the key length of xts(aes) is different with other mode of aes, so we should check specially in cryptodev_builtin_get_aes_algo, if it is xts mode. Signed-off-by: Longpeng(Mike) Reviewed-by: Gonglei Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 47 +++

[Qemu-devel] [PULL 4/4] cryptodev: add 3des-ede support

2016-12-23 Thread Gonglei
From: "Longpeng(Mike)" This patch add 3des-ede support for cryptodev. However this is effective only when backend using libgcrypt/nettle, because cipher-builtin doesn't support 3des-ede yet. Signed-off-by: Longpeng(Mike) Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 12 +++

[Qemu-devel] [PULL 2/4] cryptodev: add xts(aes) support

2016-12-23 Thread Gonglei
From: "Longpeng(Mike)" This patch add xts(aes) support. Signed-off-by: Longpeng(Mike) Reviewed-by: Gonglei Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 8 1 file changed, 8 insertions(+) diff --git a/backends/cryptodev-builtin.c b/backends/cryptodev-builtin.c index 579

[Qemu-devel] [PULL 3/4] cryptodev: remove single-DES support in cryptodev

2016-12-23 Thread Gonglei
From: "Longpeng(Mike)" Single-DES is obsolete and it's broken/useless for decades, we should remove it in cryptodev, as suggested by Daniel. Guest who wants to use this obsolete cipher alg will use its built-in implementation instead. Signed-off-by: Longpeng(Mike) Reviewed-by: Daniel P. Berrang

[Qemu-devel] [PULL 0/4] cryptodev patches

2016-12-23 Thread Gonglei
The following changes since commit a470b33259bf82ef2336bfcd5d07640562d3f63b: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2016-12-22 19:23:51 +) are available in the git repository at: https://github.com/gongleiarei/qemu.git tags/cryptodev-next-2016122

<    1   2