Re: [Qemu-devel] [PULL 073/130] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2014-03-09 Thread Paolo Bonzini
Il 07/03/2014 00:33, Alexander Graf ha scritto: From: Fabien Chouteau This implementation doesn't include ring priority, TCP/IP Off-Load, QoS. Signed-off-by: Fabien Chouteau Signed-off-by: Alexander Graf --- Is this code dead? Who uses it? A quick "git grep etsec_create" gave no results

[Qemu-devel] [PATCH 09/14] tcg-aarch64: Use tcg_out_insn for setcond

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 7f41c75..c38e3c0 100644 --- a/tcg/aarch64/tcg-target.c +++ b/tcg/aarch64/tcg-target.c @@ -654,14

[Qemu-devel] [PATCH 00/14] tcg/aarch64 improvements, part 2

2014-03-09 Thread Richard Henderson
This contains the bulk of the rearrangement into tcg_out_insn, wherein the instructions are given format numbers and a modicum of preprocessor based type-checking. This also contains the bulk of the unimplemented tcg opcodes, and handling of constant arguments. Assuming one agrees with the genera

[Qemu-devel] [PATCH 06/14] tcg-aarch64: Handle constant operands to and, or, xor

2014-03-09 Thread Richard Henderson
Handle a simplified set of logical immediates for the moment. The way gcc and binutils do it, with 52k worth of tables, and a binary search depth of log2(5334) = 13, seems slow for the most common cases. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 156 +++

[Qemu-devel] [PATCH 01/14] tcg-aarch64: Introduce tcg_out_insn

2014-03-09 Thread Richard Henderson
Converting the add/sub (3.5.2) and logical shifted (3.5.10) instruction groups to the new scheme. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 94 +--- 1 file changed, 58 insertions(+), 36 deletions(-) diff --git a/tcg/aarch64/tcg-t

[Qemu-devel] [PATCH 05/14] tcg-aarch64: Handle constant operands to add, sub, and compare

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 100 --- 1 file changed, 78 insertions(+), 22 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 9b6374d..6816deb 100644 --- a/tcg/aarch64/tcg-target.c +++

[Qemu-devel] [PATCH 07/14] tcg-aarch64: Support andc, orc, eqv, not, neg

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 57 tcg/aarch64/tcg-target.h | 20 - 2 files changed, 67 insertions(+), 10 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 9a34a15.

[Qemu-devel] [PATCH 10/14] tcg-aarch64: Support deposit

2014-03-09 Thread Richard Henderson
Also tidy the implementation of ubfm, sbfm, extr in order to share code. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 66 ++-- tcg/aarch64/tcg-target.h | 4 +-- 2 files changed, 49 insertions(+), 21 deletions(-) diff --git a/tcg/aa

[Qemu-devel] [PATCH 03/14] tcg-aarch64: Introduce tcg_out_insn_3401

2014-03-09 Thread Richard Henderson
This merges the implementation of tcg_out_addi and tcg_out_subi. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 72 +--- 1 file changed, 26 insertions(+), 46 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.

[Qemu-devel] [PATCH 02/14] tcg-aarch64: Convert shift insns to tcg_out_insn

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 52 +++- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 7cfe708..b52519e 100644 --- a/tcg/aarch64/tcg-target.c +++

[Qemu-devel] [PATCH 13/14] tcg-aarch64: Support div, rem

2014-03-09 Thread Richard Henderson
Clean up multiply at the same time. For remainder, generic code will produce mul+sub, whereas we can implement with msub. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 50 +++- tcg/aarch64/tcg-target.h | 8 2 files changed,

[Qemu-devel] [PATCH 12/14] tcg-aarch64: Support muluh, mulsh

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 12 tcg/aarch64/tcg-target.h | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index b9dc6bb..9c50820 100644 --- a/tcg/aarch64/tcg-target.c +++

[Qemu-devel] [PATCH 04/14] tcg-aarch64: Implement mov with tcg_out_insn

2014-03-09 Thread Richard Henderson
Avoid the magic numbers in the current implementation. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index b5f19ad..9b6374d 100644 ---

[Qemu-devel] [PATCH 08/14] tcg-aarch64: Support movcond

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 34 ++ tcg/aarch64/tcg-target.h | 4 ++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 5850ae4..7f41c75 100644 --- a/tcg/aa

[Qemu-devel] [PATCH 14/14] tcg-aarch64: Introduce tcg_out_insn_3405

2014-03-09 Thread Richard Henderson
Cleaning up the implementation of tcg_out_movi at the same time. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 48 +++- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.

[Qemu-devel] [PATCH 11/14] tcg-aarch64: Support add2, sub2

2014-03-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c | 76 tcg/aarch64/tcg-target.h | 8 ++--- 2 files changed, 80 insertions(+), 4 deletions(-) diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 26b30cb..b9dc6bb 1006

Re: [Qemu-devel] [PATCH v4] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-09 Thread Sebastian Huber
Hello Mark, On 03/08/2014 09:16 PM, Mark Cave-Ayland wrote: Hi all, Apologies for the delay in testing this patch - it's been a busy few weeks with work, along with a QEMU freeze deadline. Unfortunately this patch causes regressions when booting my Debian lenny/squeeze ISO test images on qem

[Qemu-devel] [PATCH v5] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-09 Thread Sebastian Huber
The LEON3 processor has support for the CASA instruction which is normally only available for SPARC V9 processors. Binutils 2.24 and GCC 4.9 will support this instruction for LEON3. GCC uses it to generate C11 atomic operations. The CAS synthetic instruction uses an ASI of 0x80. If TARGET_SPARC64

[Qemu-devel] [PATCH 2/7] monitor: Add chardev-remove id argument completion.

2014-03-09 Thread Hani Benhabiles
Signed-off-by: Hani Benhabiles --- hmp-commands.hx | 1 + hmp.h | 2 ++ monitor.c | 23 +++ 3 files changed, 26 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 4c4d261..4f0f053 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1630,6

[Qemu-devel] [PATCH 6/7] monitor: Add netdev_add type argument completion.

2014-03-09 Thread Hani Benhabiles
Also update the command's documentation. Signed-off-by: Hani Benhabiles --- hmp-commands.hx | 3 ++- hmp.h | 1 + monitor.c | 18 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index fbd303a..b009561 100644 --

[Qemu-devel] [PATCH 1/7] monitor: Add command_completion callback to mon_cmd_t.

2014-03-09 Thread Hani Benhabiles
Convert device_add, device_del, object_add and object_del commands to use the new callback. Also fix drive_del id argument type to activate completion. Signed-off-by: Hani Benhabiles Suggested-by: Luiz Capitulino --- hmp-commands.hx | 6 +- hmp.h | 4 monitor.c | 65

[Qemu-devel] [PATCH 0/7] monitor: Completion support for various commands.

2014-03-09 Thread Hani Benhabiles
This patch series adds a new callback to mon_cmd_t which will make adding completion support for more commands cleaner. It then adds full or partial arguments completion for 7 different hmp commands. Hani Benhabiles (7): monitor: Add command_completion callback to mon_cmd_t. monitor: Add char

[Qemu-devel] [PATCH 3/7] monitor: Add chardev-add backend argument completion.

2014-03-09 Thread Hani Benhabiles
Signed-off-by: Hani Benhabiles --- hmp-commands.hx | 1 + hmp.h | 1 + monitor.c | 23 +++ 3 files changed, 25 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 4f0f053..a411d4f 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1614,6 +

[Qemu-devel] [PATCH 7/7] monitor: Add netdev_del id argument completion.

2014-03-09 Thread Hani Benhabiles
Signed-off-by: Hani Benhabiles --- hmp-commands.hx | 1 + hmp.h | 1 + monitor.c | 15 +++ 3 files changed, 17 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index b009561..d252ffc 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1244,6 +1244,7 @

[Qemu-devel] [PATCH 5/7] monitor: Add set_link arguments completion.

2014-03-09 Thread Hani Benhabiles
This also adds the add_completion_option() function which is to be used for other commands completions as well. Signed-off-by: Hani Benhabiles --- hmp-commands.hx | 1 + hmp.h | 1 + monitor.c | 45 + 3 files changed, 47 insertions(+)

[Qemu-devel] [PATCH 4/7] monitor: Add cpu index argument completion.

2014-03-09 Thread Hani Benhabiles
Signed-off-by: Hani Benhabiles --- hmp-commands.hx | 1 + hmp.h | 1 + monitor.c | 24 3 files changed, 26 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index a411d4f..813c0fb 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -690,6 +

Re: [Qemu-devel] [PATCH v2 3/5] block/raw-posix: bdrv_parse_filename() for cdrom

2014-03-09 Thread Benoît Canet
The Saturday 08 Mar 2014 à 00:39:43 (+0100), Max Reitz wrote : > The "host_cdrom" protocol drivers should strip the "host_cdrom:" prefix > from filenames if present. > > Signed-off-by: Max Reitz > --- > block/raw-posix.c | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/

Re: [Qemu-devel] [PATCH v2 03/12] block: Add "has_single_child" field for drivers

2014-03-09 Thread Benoît Canet
The Friday 07 Mar 2014 à 23:55:47 (+0100), Max Reitz wrote : > This field should be used by block drivers acting as filters which have > only a single child BDS which is referenced through the "file" field of > the BDS. > > Setting this field allows other block functions to "access" the child > BD

Re: [Qemu-devel] [PATCH v2 04/12] block/json: Add JSON protocol driver

2014-03-09 Thread Benoît Canet
The Friday 07 Mar 2014 à 23:55:48 (+0100), Max Reitz wrote : > Add a JSON protocol driver which allows supplying block driver options > through the filename rather than separately. Other than that, it is a > pure passthrough driver which identifies itself as a filter. > > This patch implements the

Re: [Qemu-devel] [PATCH v2 06/12] block/json: Add functions for writing zeroes etc.

2014-03-09 Thread Benoît Canet
The Friday 07 Mar 2014 à 23:55:50 (+0100), Max Reitz wrote : > Add passthrough functions for bdrv_aio_discard(), > bdrv_co_write_zeroes(), bdrv_truncate() and bdrv_has_zero_init(). > > Signed-off-by: Max Reitz > --- > block/json.c | 30 ++ > 1 file changed, 30 inserti

Re: [Qemu-devel] [PATCH v2 11/12] block/qapi: Ignore filters on top for format name

2014-03-09 Thread Benoît Canet
The Friday 07 Mar 2014 à 23:55:55 (+0100), Max Reitz wrote : > bdrv_query_image_info() currently deduces the image filename and the > format name from the top BDS. However, it is probably more reasonable to > ignore as many filters as possible on top of the BDS chain since those > neither change th

Re: [Qemu-devel] [PATCH v2 02/12] check-qdict: Add test for qdict_join()

2014-03-09 Thread Benoît Canet
The Friday 07 Mar 2014 à 23:55:46 (+0100), Max Reitz wrote : > Add some test cases for qdict_join(). > > Signed-off-by: Max Reitz > --- > tests/check-qdict.c | 87 > + > 1 file changed, 87 insertions(+) > > diff --git a/tests/check-qdict.c b/

Re: [Qemu-devel] [PATCH RFC 2/2] qemu-img: migrate to use qemu-arg

2014-03-09 Thread Leandro Dorileo
Hi Paolo, On Sun, Mar 09, 2014 at 08:30:28AM +0100, Paolo Bonzini wrote: > Il 08/03/2014 19:47, Leandro Dorileo ha scritto: > >Remove the arg parsing implementations using getopt and use qemu-arg. > >Also remove the qemu-img-cmds.hx since it's now generated on building time, > >adapted the build s

Re: [Qemu-devel] [PATCH RFC 2/2] qemu-img: migrate to use qemu-arg

2014-03-09 Thread Peter Maydell
On 9 March 2014 12:37, Leandro Dorileo wrote: > Hi Paolo, > > On Sun, Mar 09, 2014 at 08:30:28AM +0100, Paolo Bonzini wrote: >> Il 08/03/2014 19:47, Leandro Dorileo ha scritto: >> >Remove the arg parsing implementations using getopt and use qemu-arg. >> >Also remove the qemu-img-cmds.hx since it's

Re: [Qemu-devel] [PATCH RFC 2/2] qemu-img: migrate to use qemu-arg

2014-03-09 Thread Leandro Dorileo
On Sun, Mar 09, 2014 at 01:03:12PM +, Peter Maydell wrote: > On 9 March 2014 12:37, Leandro Dorileo wrote: > > Hi Paolo, > > > > On Sun, Mar 09, 2014 at 08:30:28AM +0100, Paolo Bonzini wrote: > >> Il 08/03/2014 19:47, Leandro Dorileo ha scritto: > >> >Remove the arg parsing implementations usi

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread wzis
** Description changed: the qemu-system-ppc64 is used to run RHEL5.9 for IBM Power on RHEL 5.3. Previously I was using QEMU 1.5.x for several months with no problem. But after the RHEL 5.3 host damaged, and rebuilt, now I tried both QEMU 1.6.2 and QEMU 1.7.0, found both can easily cause file

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread wzis
** Description changed: - the qemu-system-ppc64 is used to run Fedora-19 on RHEL 5.3. + the qemu-system-ppc64 is used to run RHEL5.9 for IBM Power on RHEL 5.3. Previously I was using QEMU 1.5.x for several months with no problem. But after the RHEL 5.3 host damaged, and rebuilt, now I tried bot

[Qemu-devel] [Bug 1289898] [NEW] qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread wzis
Public bug reported: the qemu-system-ppc64 is used to run Fedora-19 on RHEL 5.3. Previously I was using QEMU 1.5.x for several months with no problem. But after the RHEL 5.3 host damaged, and rebuilt, now I tried both QEMU 1.6.2 and QEMU 1.7.0, found both can easily cause file corruptions. Sympt

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread wzis
Correction, the qemu-system-ppc64 is running a VM for RHEL5.9 for PPC, not fedora-19. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1289898 Title: qemu-system-ppc64 easily cause file corruption St

[Qemu-devel] [Bug 1251470] Re: Guest not working in KVM mode but does in TCG mode

2014-03-09 Thread John Kim
** Tags added: amd64 saucy ** Package changed: ubuntu => qemu (Ubuntu) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1251470 Title: Guest not working in KVM mode but does in TCG mode Status in QE

[Qemu-devel] [Bug 1252270] Re: installing NT4 on MIPS Magnum/Jazz asserts

2014-03-09 Thread Darkstar
Indeed the crash doesn't happen in current git anymore. Setup still doesn't copy anything off the CD (hangs on the first file) but at least the crash is fixed and formatting the harddisk works now. I'll investigate the other issue and maybe open up a new bug for that. This bug here can be closed.

[Qemu-devel] [PATCH 07/16] target-arm: A64: Implement SADDLP, UADDLP, SADALP, UADALP

2014-03-09 Thread Peter Maydell
Implement the SADDLP, UADDLP, SADALP and UADALP instructions in the SIMD 2-reg misc category. Signed-off-by: Peter Maydell --- target-arm/helper-a64.c| 61 + target-arm/helper-a64.h| 4 +++ target-arm/translate-a64.c | 75 +

[Qemu-devel] [PATCH 02/16] target-arm: A64: Fix bug in add_sub_ext handling of rn

2014-03-09 Thread Peter Maydell
From: Alex Bennée rn == 31 always means SP (not XZR) whether an add_sub_ext instruction is setting the flags or not; only rd has behaviour dependent on whether we are setting flags. Reported-by: Laurent Desnogues Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- target-arm/translat

[Qemu-devel] [PATCH 10/16] target-arm: A64: Implement FCVTN

2014-03-09 Thread Peter Maydell
Implement FCVTN (narrowing fp-to-fp conversions) from the SIMD 2-reg-misc category. Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index

[Qemu-devel] [PATCH 12/16] target-arm: A64: List unsupported shift-imm opcodes

2014-03-09 Thread Peter Maydell
Add the remaining unsupported opcodes to the decode switches for the shift-imm and scalar shift-imm categories so we can see what is still to be implemented. Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --g

[Qemu-devel] [PATCH 08/16] target-arm: A64: Implement SHLL, SHLL2

2014-03-09 Thread Peter Maydell
Implement the SHLL and SHLL2 instructions from the 2-reg-misc category. Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 9

[Qemu-devel] [PATCH 11/16] target-arm: A64: Implement FCVTL

2014-03-09 Thread Peter Maydell
Implement FCVTL, the only instruction in the 2-reg-misc group which widens from size to 2*size elements. Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 47 ++ 1 file changed, 47 insertions(+) diff --git a/target-arm/translate-a64.c b/ta

[Qemu-devel] [PATCH 01/16] target-arm: A64: Implement PMULL instruction

2014-03-09 Thread Peter Maydell
Implement the PMULL instruction; this is the last unimplemented insn in the three-reg-diff group. Note that PMULL with size 3 is considered part of the AES part of the crypto extensions (see the ID_AA64ISAR0_EL1 register definition in the v8 ARM ARM), so it isn't necessary to burn an extra feature

[Qemu-devel] [PATCH 00/16] A64 Neon patches: sixth set

2014-03-09 Thread Peter Maydell
This is the sixth set of patches implementing more of the Neon instructions for A64 (assuming I haven't lost count...) PMULL is a fixed version of the patch from last time round which doesn't pointlessly pass cpu_env to the helper; the rest are new. Remaining unimplemented usermode instructions:

[Qemu-devel] [PATCH 09/16] target-arm: A64: Implement FCVT[NMAPZ][SU] SIMD instructions

2014-03-09 Thread Peter Maydell
Implement the floating-point-to-integer conversion instructions FCVT[NMAPZ][SU] in the 2-reg-misc and scalar-2-reg-misc categories. Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 188 - 1 file changed, 169 insertions(+), 19 deletions(-)

[Qemu-devel] [PATCH 03/16] target-arm: A64: Add last AdvSIMD Integer to FP ops

2014-03-09 Thread Peter Maydell
From: Alex Bennée This adds the remaining [US]CVTF operations to the SIMD shift-immediate, scalar-shift-immediate, two-reg-misc and scalar-two-reg-misc groups of opcodes. Signed-off-by: Alex Bennée [PMM: added scalar 2-misc and scalar-shift-imm encodings] Signed-off-by: Peter Maydell --- targ

[Qemu-devel] [PATCH 13/16] target-arm: A64: Add FRECPX (reciprocal exponent)

2014-03-09 Thread Peter Maydell
From: Alex Bennée These are fairly simple exponent only estimation functions using helpers. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- target-arm/helper-a64.c| 59 ++ target-arm/helper-a64.h| 2 ++ target-arm/translate-a64.c | 70 +

[Qemu-devel] [PATCH 06/16] target-arm: A64: Saturating and narrowing shift ops

2014-03-09 Thread Peter Maydell
From: Alex Bennée This implements a the remaining [US][R]SHR[R][2] opcodes which are saturating and narrowing shift right operations. These are used in things like libav. Note signed shifts can have an "unsigned" saturating narrow operation which will floor negative values. Signed-off-by: Alex B

[Qemu-devel] [PATCH 16/16] exec-all.h: Increase MAX_OP_PER_INSTR for ARM A64 decoder

2014-03-09 Thread Peter Maydell
The ARM A64 decoder's worst case number of TCG ops per instruction is 266 (for insn 0x4c80, a post-indexed ST4 multiple-structures store). Raise the MAX_OP_PER_INSTR define accordingly. Signed-off-by: Peter Maydell --- include/exec/exec-all.h| 2 +- target-arm/translate-a64.c | 12 +

[Qemu-devel] [PATCH 05/16] target-arm: A64: Add remaining CLS/Z vector ops

2014-03-09 Thread Peter Maydell
From: Alex Bennée Implement the CLS, CLZ operations in the 2-reg-misc category. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- target-arm/helper-a64.c| 5 + target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 36 +++- 3 files c

[Qemu-devel] [PATCH 14/16] target-arm: A64: Implement SRI

2014-03-09 Thread Peter Maydell
Implement SRI (shift right and insert). Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 57 +++--- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 5f560eb..6337d6f 1

[Qemu-devel] [PATCH 15/16] target-arm: A64: Implement FRINT*

2014-03-09 Thread Peter Maydell
Implement the FRINT* round-to-integral operations from the 2-reg-misc category. Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 37 ++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate

[Qemu-devel] [PATCH] configure: don't modify .status on error

2014-03-09 Thread Michael S. Tsirkin
./configure --help make will try to re-run configure with --help which isn't what was intended. The reason is that config.status was written even on configure error. Defer writing config.status until configure has completed successfully. Signed-off-by: Michael S. Tsirkin --- configure | 27 +++

[Qemu-devel] trying to kill a VM

2014-03-09 Thread Alexander Binun
Hello Friends, I have done a lot of tricks trying to kill a VM - so far in vain :-) As you told me I have reached the VCPU of the VM to be killed: struct kvm_vcpu *cpu = (struct kvm_vcpu*)vcpu; struct pid *vcpu_pid = cpu->pid; struct task_struct* task = pid_task(vcpu_pid,PIDTYPE_PID); Then I

Re: [Qemu-devel] [PATCH qom-cpu 1/6] cpu: Introduce CPUClass::parse_features() hook

2014-03-09 Thread Andreas Färber
Am 04.03.2014 03:55, schrieb Andreas Färber: > Adapt the X86CPU implementation to suit the generic hook. > This involves a cleanup of error handling to cope with NULL errp. > > Signed-off-by: Andreas Färber > --- > include/qom/cpu.h | 3 +++ > target-i386/cpu.c | 36 +---

[Qemu-devel] [PATCH 04/16] target-arm: A64: Add FSQRT to C3.6.17 (two misc)

2014-03-09 Thread Peter Maydell
From: Alex Bennée Implement FSQRT in the two-reg-misc category. GCC uses this instruction form. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b

Re: [Qemu-devel] [PATCH qom-cpu v10 2/2] target-i386: X86CPU model subclasses

2014-03-09 Thread Andreas Färber
Am 04.03.2014 20:53, schrieb Eduardo Habkost: > On Tue, Feb 25, 2014 at 08:36:27AM +0100, Andreas Färber wrote: >> From: Eduardo Habkost >> >> Register separate QOM types for each x86 CPU model. >> >> This will allow management code to more easily probe what each CPU model >> provides, by simply c

Re: [Qemu-devel] [PATCH] configure: don't modify .status on error

2014-03-09 Thread Peter Maydell
On 9 March 2014 15:41, Michael S. Tsirkin wrote: > ./configure --help > make > > will try to re-run configure with --help > which isn't what was intended. > > The reason is that config.status was written > even on configure error. > Defer writing config.status until configure > has completed succe

Re: [Qemu-devel] [PATCH qom-cpu 1/6] cpu: Introduce CPUClass::parse_features() hook

2014-03-09 Thread Andreas Färber
Am 05.03.2014 23:31, schrieb Eduardo Habkost: > On Wed, Mar 05, 2014 at 05:57:10PM +0100, Igor Mammedov wrote: >> On Wed, 05 Mar 2014 17:06:15 +0100 >> Andreas Färber wrote: >> >>> Am 05.03.2014 16:04, schrieb Igor Mammedov: On Tue, 4 Mar 2014 03:55:44 +0100 Andreas Färber wrote:

Re: [Qemu-devel] [PATCH qom-cpu 0/6] cpu: Unifying features parsing

2014-03-09 Thread Andreas Färber
Am 05.03.2014 12:27, schrieb Alexey Kardashevskiy: > On 03/05/2014 07:30 PM, Andreas Färber wrote: >> Am 05.03.2014 03:50, schrieb Alexey Kardashevskiy: >>> On 03/04/2014 01:55 PM, Andreas Färber wrote: Hello, Prompted by Alexey's desire for tweakable PowerPCCPU properties but also b

Re: [Qemu-devel] [PATCH qom-cpu 0/6] cpu: Unifying features parsing

2014-03-09 Thread Andreas Färber
Am 08.03.2014 21:50, schrieb Mark Cave-Ayland: > On 04/03/14 20:32, Andreas Färber wrote: > >> Am 04.03.2014 03:55, schrieb Andreas Färber: >>> Hello, >>> >>> Prompted by Alexey's desire for tweakable PowerPCCPU properties but >>> also by >>> Peter's wish for ARMCPU properties, this series sets ou

Re: [Qemu-devel] [PATCH RFC 0/2] qemu-arg: general purpose argument parser

2014-03-09 Thread Andreas Färber
Am 08.03.2014 19:47, schrieb Leandro Dorileo: > The following patchset introduces a general purpose argument parser and > migrates > qemu-img to make use of it. qemu-img is just the first user of it, if we see a > good feedback here I move forward and migrate all the other possible users. Why? :)

Re: [Qemu-devel] [PATCH] qdev: Fix bus dependency of DeviceState::hotpluggable getter

2014-03-09 Thread Michael S. Tsirkin
On Fri, Mar 07, 2014 at 07:13:18PM +0100, Andreas Färber wrote: > Commit 1a37eca107cece3ed454bae29eef0bd1fac4a244 (qdev: add > "hotpluggable" property to Device) added a property "hotpluggable" to > each device, with its getter accessing parent_bus->allow_hotplug. > > Add a NULL check. > > Cc: Ig

Re: [Qemu-devel] [PATCH] qdev: Fix bus dependency of DeviceState::hotpluggable getter

2014-03-09 Thread Andreas Färber
Am 09.03.2014 17:40, schrieb Michael S. Tsirkin: > On Fri, Mar 07, 2014 at 07:13:18PM +0100, Andreas Färber wrote: >> Commit 1a37eca107cece3ed454bae29eef0bd1fac4a244 (qdev: add >> "hotpluggable" property to Device) added a property "hotpluggable" to >> each device, with its getter accessing parent_

Re: [Qemu-devel] [PATCH] New feature - RFC3931 L2TPv3 network transport using static Ethernet over L2TPv3 tunnels

2014-03-09 Thread Anton Ivanov
+ return -1; +} + +freeaddrinfo(result); + +memset(&hints, 0, sizeof(hints)); + +if (s->ipv6) { + hints.ai_family = AF_INET6; +} else { + hints.ai_family = AF_INET; +} +if (s->udp) { + hints.ai_socktype = SOCK_DGRAM; + hints.ai_protocol

Re: [Qemu-devel] [PATCH] qdev: Fix bus dependency of DeviceState::hotpluggable getter

2014-03-09 Thread Michael S. Tsirkin
On Sun, Mar 09, 2014 at 05:48:57PM +0100, Andreas Färber wrote: > Am 09.03.2014 17:40, schrieb Michael S. Tsirkin: > > On Fri, Mar 07, 2014 at 07:13:18PM +0100, Andreas Färber wrote: > >> Commit 1a37eca107cece3ed454bae29eef0bd1fac4a244 (qdev: add > >> "hotpluggable" property to Device) added a prop

[Qemu-devel] [PATCH v3 1/3] loader: rename in_ram/has_mr

2014-03-09 Thread Michael S. Tsirkin
we put copy of ROMs in MR for migration. but the name rom_in_ram makes one think we load it in guest RAM. Rename has_mr to make intent clearer. Signed-off-by: Michael S. Tsirkin --- include/hw/loader.h | 2 +- hw/core/loader.c| 6 +++--- hw/i386/pc_piix.c | 2 +- hw/i386/pc_q35.c| 2 +-

[Qemu-devel] [PATCH v3 3/3] pc: option rom migration compatibility with 1.7

2014-03-09 Thread Michael S. Tsirkin
when using 1.7 machine types, enable option ROMs in RAM to match that version. Signed-off-by: Michael S. Tsirkin --- hw/i386/pc_piix.c | 1 + hw/i386/pc_q35.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index fb2d636..5e1d2d3 100644 --- a/hw/i386/

[Qemu-devel] [PATCH v3 2/3] pc: avoid duplicate names for ROM MRs

2014-03-09 Thread Michael S. Tsirkin
Since commit 04920fc0faa4760f9c4fc0e73b992b768099be70 loader: store FW CFG ROM files in RAM RAM MRs including ROM files in FW CFGs are created and named using the file basename. This becomes problematic if these names are supplied by user, since the basename might not be unique. There are two

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 2/2] Fix return value of vga initlization on ppc

2014-03-09 Thread Paolo Bonzini
Il 08/03/2014 14:26, Alexey Kardashevskiy ha scritto: > I think that after this patch, "-nodefaults -device VGA" will get a USB > controller that it didn't get before. I suspect what was meant by "the machine not aware of the graphics device" is that the guest won't work with VGA and without k

Re: [Qemu-devel] QEMU: SMBIOS: Build full smbios tables

2014-03-09 Thread Laszlo Ersek
On 03/09/14 03:57, Gabriel L. Somlo wrote: > I'll send the current set of seven patches, which basically replace > the way types 0 and 1 are handled with building full tables, and adds > the option to request that a type 2 table be built. > > I'd like to get the rest of what SeaBIOS builds by def

[Qemu-devel] [PULL v3 00/14] acpi,pc,pci,virtio,memory bug fixes

2014-03-09 Thread Michael S. Tsirkin
Changes from v2: fix for OSx by Gabriel fixed build on systems without IASL The following changes since commit f53f3d0a00b6df39ce8dfca942608e5b6a9a4f71: Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging (2014-03-08 12:38:43 +) are available in the git repos

[Qemu-devel] [PULL v3 01/14] acpi-build: append description for non-hotplug

2014-03-09 Thread Michael S. Tsirkin
As reported in http://article.gmane.org/gmane.comp.emulators.qemu/253987 Mac OSX actually requires describing all occupied slots in ACPI - even if hotplug isn't enabled. I didn't expect this so I dropped description of all non hotpluggable slots from ACPI. As a result: before commit 99fd437dee4686

[Qemu-devel] [PULL v3 08/14] Add a 'name' parameter to qemu_thread_create

2014-03-09 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" If enabled, set the thread name at creation (on GNU systems with pthread_set_np) Fix up all the callers with a thread name Signed-off-by: Dr. David Alan Gilbert Acked-by: Michael S. Tsirkin Reviewed-by: Laszlo Ersek --- include/qemu/thread.h | 2 +-

[Qemu-devel] [PULL v3 04/14] memory_region_present: return false if address is not found in child MemoryRegion

2014-03-09 Thread Michael S. Tsirkin
From: Igor Mammedov Windows XP shows COM2 port as non functional in "Device Manager" although no COM2 port backing device is present in QEMU. This regression is really due to 3bb28b7208b349e7a1b326e3c6ef9efac1d462bf? memory: Provide separate handling of unassigned io ports accesses That is

[Qemu-devel] [PULL v3 05/14] PCIE: fix regression with coldplugged multifunction device

2014-03-09 Thread Michael S. Tsirkin
From: Igor Mammedov PCIE is causing asserts each time a multifunction device is added on command line (coldplug). This is caused by commit a66e657e18cd9b70e9f57ae5512c07faf2bc508f pci/pcie: convert PCIE hotplug to use hotplug-handler API QEMU abort is caused by misplaced assertion, which sho

[Qemu-devel] [PULL v3 11/14] acpi-test: issue errors instead of warnings when possible

2014-03-09 Thread Michael S. Tsirkin
From: Marcel Apfelbaum If the expected (offline) acpi tables loaded correctly, it is safe to assume the iasl installation is OK and issue an error if the actual tables failed to load. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/

[Qemu-devel] [PULL v3 10/14] acpi-test: retain both asl and aml files on failure

2014-03-09 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Updated the error message while at it. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/acpi-test.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/acpi-test.c b/tests

[Qemu-devel] [PULL v3 14/14] qemu: x86: ignore ioapic polarity

2014-03-09 Thread Michael S. Tsirkin
From: "Gabriel L. Somlo" Both QEMU and KVM have already accumulated a significant number of optimizations based on the hard-coded assumption that ioapic polarity will always use the ActiveHigh convention, where the logical and physical states of level-triggered irq lines always match (i.e., activ

[Qemu-devel] [PULL v3 12/14] pam: partly fix write-only mode

2014-03-09 Thread Michael S. Tsirkin
From: Hervé Poussineau In write-only mode, writes are forwarded to RAM, while reads should not be handled (ie should return 0xff). Assume that in this mode, no read access is ever done, as they shouldn't give any sensible result. So, in write-only mode, alias PAM region to RAM, instead of PCI me

[Qemu-devel] [PULL v3 13/14] pckbd: return 'keyboard enabled' on read input port command

2014-03-09 Thread Michael S. Tsirkin
From: Hervé Poussineau Bit 7 of Input Port is the keyboard inhibit switch. 0 means keyboard inhibited, while 1 means keyboard enabled. Incidentaly, this also fixes an error encountered while booting an Award BIOS: "Keyboard is locked out - Unlock the key". Signed-off-by: Hervé Poussineau Revie

[Qemu-devel] [PULL v3 09/14] MAINTAINERS: drop an out of date address

2014-03-09 Thread Michael S. Tsirkin
Gleb's address seems to be out of date. Since it stayed like that for a while now, I'm guessing he's no longer interested in getting mail. Signed-off-by: Michael S. Tsirkin --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7efaccf..62e7683 1006

[Qemu-devel] [PULL v3 07/14] Add 'debug-threads' suboption to --name

2014-03-09 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Add flag storage to qemu-thread-* to store the namethreads flag Signed-off-by: Dr. David Alan Gilbert Acked-by: Michael S. Tsirkin Reviewed-by: Laszlo Ersek --- include/qemu/thread.h| 1 + util/qemu-thread-posix.c | 7 +++ util/qemu-thread-win32.c | 8 +

[Qemu-devel] [PULL v3 06/14] Rework --name to use QemuOpts

2014-03-09 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Alex Bennée Acked-by: Michael S. Tsirkin Reviewed-by: Laszlo Ersek --- vl.c | 52 +++- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/vl.c b/vl.c

[Qemu-devel] [PULL v3 02/14] acpi-test-data: update expected files

2014-03-09 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- tests/acpi-test-data/pc/DSDT | Bin 4582 -> 4485 bytes tests/acpi-test-data/pc/SSDT | Bin 2200 -> 2275 bytes tests/acpi-test-data/q35/DSDT | Bin 7438 -> 7383 bytes tests/acpi-test-data/q35/SSDT | Bin 475 -> 564 bytes 4 files changed, 0 insertions(+), 0 d

[Qemu-devel] [Bug 1251470] Re: Guest not working in KVM mode but does in TCG mode

2014-03-09 Thread Paolo Bonzini
I'll download FreeBSD 9.2 and debug it. In the meanwhile, does it work with an additional option "-cpu Nehalem"? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1251470 Title: Guest not working in KV

[Qemu-devel] [Bug 1252270] Re: installing NT4 on MIPS Magnum/Jazz asserts

2014-03-09 Thread Paolo Bonzini
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1252270 Title: installing NT4 on MIPS Magnum/Jazz asserts Status in QEMU: Fix Committed Bug

[Qemu-devel] [PULL v3 03/14] virtio-net: remove function calls from assert

2014-03-09 Thread Michael S. Tsirkin
From: Joel Stanley peer_{de,at}tach were called from inside assert(). We don't support building without NDEBUG but it's not tidy. Rearrange to attach peer outside assert calls. Signed-off-by: Joel Stanley Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/net/virtio-net

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread Paolo Bonzini
Hi, any chance you could try the latest snapshot from git? It has a lot of PPC64 changes. Also, please pass your QEMU command line. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1289898 Title: qem

Re: [Qemu-devel] [PATCH RFC 0/2] qemu-arg: general purpose argument parser

2014-03-09 Thread Leandro Dorileo
Hi Andreas, On Sun, Mar 09, 2014 at 05:32:17PM +0100, Andreas Färber wrote: > Am 08.03.2014 19:47, schrieb Leandro Dorileo: > > The following patchset introduces a general purpose argument parser and > > migrates > > qemu-img to make use of it. qemu-img is just the first user of it, if we > > s

Re: [Qemu-devel] [PATCH v5] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-09 Thread Mark Cave-Ayland
On 09/03/14 11:02, Sebastian Huber wrote: The LEON3 processor has support for the CASA instruction which is normally only available for SPARC V9 processors. Binutils 2.24 and GCC 4.9 will support this instruction for LEON3. GCC uses it to generate C11 atomic operations. The CAS synthetic instru

Re: [Qemu-devel] [PATCH 00/11] tcg-sparc updates

2014-03-09 Thread Mark Cave-Ayland
On 05/03/14 18:11, Richard Henderson wrote: Rescued from a branch from September. I can't recall if I ever actually posted these back then, so I'll wait a week before asking for a pull. Re-tested on v8plus. The machine doesn't have 64-bit libraries installed, so I'm a bit stuck with that. r

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread wzis
I used the following way to start the VM: #!/bin/bash ifconfig -a|grep tap0 >/dev/null 2>&1 || qemu-ifup tap0 qemu-system-ppc64 -hda ppcrhel5.img -cpu POWER7 -machine type=pseries,usb=off -m 768 -nographic -net nic -net tap,ifname=tap0,script=no qemu-ifdown tap0 -- You received this bug notifi

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-09 Thread wzis
I found a CentOS 6.4 machine which has QEMU 1.5.3, and copied the ppcrhel5.img to that machine, and tested, found it's reliable, and no such file and filesystem easy corruption issue. So, it's the 1.6.2 and 1.7.0 have the problem. -- You received this bug notification because you are a member of

Re: [Qemu-devel] Call for testing QEMU aarch64-linux-user emulation

2014-03-09 Thread Dann Frazier
On Tue, Feb 25, 2014 at 1:39 AM, Alex Bennée wrote: > > Dann Frazier writes: > >> On Mon, Feb 17, 2014 at 6:40 AM, Alex Bennée wrote: >>> Hi, >> >> Thanks to all involved for your work here! >> >>> After a solid few months of work the QEMU master branch [1] has now reached >>> instruction featur

  1   2   >