Re: [Qemu-devel] [PATCH qom-cpu 00/16 v10] target-i386: convert CPU features into properties

2014-01-07 Thread Igor Mammedov
On Mon, 16 Dec 2013 16:26:55 -0200 Eduardo Habkost wrote: > On Mon, Dec 16, 2013 at 04:01:05PM +0100, Igor Mammedov wrote: > > On Sun, 15 Dec 2013 23:50:47 +0100 > > Andreas Färber wrote: > > > > > Am 27.11.2013 23:28, schrieb Igor Mammedov: > > > > Igor Mammedov (16): > > > > target-i386: cl

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2014-01-07 Thread Igor Mammedov
On Mon, 06 Jan 2014 21:53:50 -0800 "H. Peter Anvin" wrote: > On 03/25/2013 01:56 PM, Eduardo Habkost wrote: > > > >> > >> It needs to be possible to fix bugs > > > > It is possible to fix them today: just write a compat function or add a > > global variable that is handled by cpu_x86_init()

Re: [Qemu-devel] [RESEND-try-2][PATCH] hw/9pfs: fix P9_STATS_GEN handling

2014-01-07 Thread Markus Armbruster
"Kirill A. Shutemov" writes: > Aneesh Kumar K.V wrote: >> "Kirill A. Shutemov" writes: >> >> > Kirill A. Shutemov wrote: >> >> Currently we have few issues with P9_STATS_GEN: >> >> >> >> - We don't try to read st_gen anything except files or directories, but >> >>still set P9_STATS_GEN bi

Re: [Qemu-devel] [PULL v2 01/24] qdev: Replace no_user by cannot_instantiate_with_device_add_yet

2014-01-07 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Tue, Dec 24, 2013 at 06:04:12PM +0100, Andreas Färber wrote: >> From: Markus Armbruster >> >> In an ideal world, machines can be built by wiring devices together >> with configuration, not code. Unfortunately, that's not the world we >> live in right now. We

Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang

2014-01-07 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas Färber wrote: >> Am 30.12.2013 09:46, schrieb Kewei Yu: >> > When we disabling vnc from "./configure", the qemu can't use the vnc >> > option. >> > So qtest can't use the "vnc -none ", otherwise "make check" will hang. >

Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang

2014-01-07 Thread Andreas Färber
Am 07.01.2014 11:35, schrieb Markus Armbruster: > Stefan Hajnoczi writes: >> On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas Färber wrote: >>> Am 30.12.2013 09:46, schrieb Kewei Yu: diff --git a/tests/fdc-test.c b/tests/fdc-test.c index 38b5b17..80dbdfb 100644 --- a/tests/fdc-test

Re: [Qemu-devel] [PATCH v6 06/11] dump: add API to write dump header

2014-01-07 Thread Laszlo Ersek
comments below On 01/05/14 08:27, Qiao Nuohan wrote: > the functions are used to write header of kdump-compressed format to vmcore. > Header of kdump-compressed format includes: > 1. common header: DiskDumpHeader32 / DiskDumpHeader64 > 2. sub header: KdumpSubHeader32 / KdumpSubHeader64 > 3. extra

Re: [Qemu-devel] [PATCH v6 06/11] dump: add API to write dump header

2014-01-07 Thread Andreas Färber
Am 07.01.2014 12:38, schrieb Laszlo Ersek: > Also... is it OK to write these fields to the file in host native byte > order? What happens if an i686 / x86_64 target is emulated on a BE host? For the target-s390x implementation Alex required to take care of endianness for the s390x-on-x86 case, so

Re: [Qemu-devel] [PULL v2 01/24] qdev: Replace no_user by cannot_instantiate_with_device_add_yet

2014-01-07 Thread Andreas Färber
Am 07.01.2014 11:28, schrieb Markus Armbruster: > "Michael S. Tsirkin" writes: > >> On Tue, Dec 24, 2013 at 06:04:12PM +0100, Andreas Färber wrote: >>> From: Markus Armbruster >>> >>> In an ideal world, machines can be built by wiring devices together >>> with configuration, not code. Unfortuna

Re: [Qemu-devel] [PATCH 4/5] monitor: add object-add (QMP) and object_add (HMP) command

2014-01-07 Thread Markus Armbruster
Michael Roth writes: > Quoting Markus Armbruster (2013-12-17 01:20:16) >> [Cc: Anthony, Mike for QAPI schema expertise] >> >> Luiz Capitulino writes: >> >> > On Tue, 10 Dec 2013 19:15:05 +0100 >> > Paolo Bonzini wrote: >> > >> >> -BEGIN PGP SIGNED MESSAGE- >> >> Hash: SHA1 >> >> >> >

Re: [Qemu-devel] [PATCH RFC 2/3] qapi script: add support of event

2014-01-07 Thread Markus Armbruster
Ping? Markus Armbruster writes: > [Licensing problem, cc: Anthony] > > Kevin Wolf writes: > >> Am 13.12.2013 um 14:31 hat Eric Blake geschrieben: >>> On 11/12/2013 06:44 PM, Wenchao Xia wrote: >>> > +++ b/scripts/qapi-event.py >>> > @@ -0,0 +1,355 @@ >>> > +# >>> > +# QAPI event generator >>> >

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2014-01-07 Thread Andreas Färber
Am 16.12.2013 10:33, schrieb Peter Maydell: > Anyway, I don't actively object to this series. I just think > Anthony's going in the wrong direction which is why I haven't > been particularly eager to actively mark it as reviewed-by me > either... Sorry for not taking the time to reply to these con

Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Wei Liu
On Mon, Jan 06, 2014 at 09:53:37PM +0100, Paolo Bonzini wrote: > Il 06/01/2014 19:00, Andreas Färber ha scritto: > > Am 06.01.2014 16:39, schrieb Anthony Liguori: > >> We already have accel=xen. I'm echoing Peter's suggestion of having the > >> ability to compile out accel=tcg. > > > > Didn't you

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2014-01-07 Thread Peter Maydell
On 7 January 2014 12:33, Andreas Färber wrote: > Am 16.12.2013 10:33, schrieb Peter Maydell: >> Anyway, I don't actively object to this series. I just think >> Anthony's going in the wrong direction which is why I haven't >> been particularly eager to actively mark it as reviewed-by me >> either..

Re: [Qemu-devel] [PATCH 4/5] monitor: add object-add (QMP) and object_add (HMP) command

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 13:00, Markus Armbruster ha scritto: >> > >> > Is dumping static properties based on class name sufficient, or do we >> > need introspection for dynamic properties as well? (or are those not >> > exposed outside of qom-set?) > > Can't say whether introspection limited to static prope

[Qemu-devel] [PATCH] docs: Fix typo in QMP WAKEUP example

2014-01-07 Thread Namhyung Kim
Cc: qemu-triv...@nongnu.org Signed-off-by: Namhyung Kim --- docs/qmp/qmp-events.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt index 6b87e97..a378c87 100644 --- a/docs/qmp/qmp-events.txt +++ b/docs/qmp/qmp-events.txt @@

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2014-01-07 Thread Andreas Färber
Am 07.01.2014 13:43, schrieb Peter Maydell: > On 7 January 2014 12:33, Andreas Färber wrote: >> Am 16.12.2013 10:33, schrieb Peter Maydell: >>> Anyway, I don't actively object to this series. I just think >>> Anthony's going in the wrong direction which is why I haven't >>> been particularly eager

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2014-01-07 Thread Peter Crosthwaite
On Tue, Jan 7, 2014 at 10:43 PM, Peter Maydell wrote: > On 7 January 2014 12:33, Andreas Färber wrote: >> Am 16.12.2013 10:33, schrieb Peter Maydell: >>> Anyway, I don't actively object to this series. I just think >>> Anthony's going in the wrong direction which is why I haven't >>> been particu

Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Stefano Stabellini
On Mon, 6 Jan 2014, Wei Liu wrote: > On Mon, Jan 06, 2014 at 07:12:07PM +0100, Andreas Färber wrote: > > Am 06.01.2014 16:12, schrieb Wei Liu: > > > On Mon, Jan 06, 2014 at 01:30:20PM +, Peter Maydell wrote: > > >> On 6 January 2014 12:54, Wei Liu wrote: > > >>> In fact I've already hacked a p

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2014-01-07 Thread Alexey Kardashevskiy
On 12/25/2013 02:43 AM, Michael S. Tsirkin wrote: > On Wed, Dec 25, 2013 at 01:15:29AM +1100, Alexey Kardashevskiy wrote: >> On 12/24/2013 08:40 PM, Michael S. Tsirkin wrote: >>> On Tue, Dec 24, 2013 at 02:09:07PM +1100, Alexey Kardashevskiy wrote: On 12/24/2013 03:24 AM, Michael S. Tsirkin wr

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Stefano Stabellini
On Mon, 6 Jan 2014, Peter Maydell wrote: > On 6 January 2014 17:34, Stefano Stabellini > wrote: > > On Mon, 6 Jan 2014, Peter Maydell wrote: > >> However I don't think we can have a qemu-system-null > >> (regardless of use cases) until/unless we get rid of > >> all the things which are compile-tim

Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 13:34, Wei Liu ha scritto: > On Mon, Jan 06, 2014 at 09:53:37PM +0100, Paolo Bonzini wrote: >> Il 06/01/2014 19:00, Andreas Färber ha scritto: >>> Am 06.01.2014 16:39, schrieb Anthony Liguori: We already have accel=xen. I'm echoing Peter's suggestion of having the ability t

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Peter Maydell
On 7 January 2014 13:26, Stefano Stabellini wrote: > On Mon, 6 Jan 2014, Peter Maydell wrote: >> The identifiers poisoned by include/qemu/poison.h are >> an initial but not complete list. Host and target >> endianness is a particularly obvious one, as is the >> size of a target long. You may not u

Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Wei Liu
On Tue, Jan 07, 2014 at 02:32:38PM +0100, Paolo Bonzini wrote: > Il 07/01/2014 13:34, Wei Liu ha scritto: > > On Mon, Jan 06, 2014 at 09:53:37PM +0100, Paolo Bonzini wrote: > >> Il 06/01/2014 19:00, Andreas Färber ha scritto: > >>> Am 06.01.2014 16:39, schrieb Anthony Liguori: > We already hav

Re: [Qemu-devel] KVM call agenda for 2014-01-07

2014-01-07 Thread Juan Quintela
Juan Quintela wrote: > Hi > > First of all, poll told to move the call earlier. > > 9:00 EST (15:00 CET or 6:00 Pacific) > > > Please, send any topic that you are interested in covering. As there are no topics, we leave the call for 2014-01-21 Happy hacking.

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 14:26, Stefano Stabellini ha scritto: > > The identifiers poisoned by include/qemu/poison.h are > > an initial but not complete list. Host and target > > endianness is a particularly obvious one, as is the > > size of a target long. You may not use these things > > in your Xen devices

Re: [Qemu-devel] [PATCH] docs: Fix typo in QMP WAKEUP example

2014-01-07 Thread Markus Armbruster
Namhyung Kim writes: > Cc: qemu-triv...@nongnu.org > Signed-off-by: Namhyung Kim > --- > docs/qmp/qmp-events.txt |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt > index 6b87e97..a378c87 100644 > --- a/docs/qmp/qmp-eve

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2014-01-07 Thread Markus Armbruster
Peter Maydell writes: > On 7 January 2014 12:33, Andreas Färber wrote: >> Am 16.12.2013 10:33, schrieb Peter Maydell: >>> Anyway, I don't actively object to this series. I just think >>> Anthony's going in the wrong direction which is why I haven't >>> been particularly eager to actively mark it

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Stefano Stabellini
On Tue, 7 Jan 2014, Paolo Bonzini wrote: > Il 07/01/2014 14:26, Stefano Stabellini ha scritto: > > > The identifiers poisoned by include/qemu/poison.h are > > > an initial but not complete list. Host and target > > > endianness is a particularly obvious one, as is the > > > size of a target long. Y

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Wei Liu
On Tue, Jan 07, 2014 at 02:50:12PM +0100, Paolo Bonzini wrote: > Il 07/01/2014 14:26, Stefano Stabellini ha scritto: > > > The identifiers poisoned by include/qemu/poison.h are > > > an initial but not complete list. Host and target > > > endianness is a particularly obvious one, as is the > > > si

Re: [Qemu-devel] [PATCH v4 1/1] qtest: Fix the bug about disable vnc causes "make check" fail

2014-01-07 Thread Paolo Bonzini
Il 06/01/2014 07:05, Kewei Yu ha scritto: > When we disable vnc from "./configure", QEMU can't use the vnc option. > So qtest can't use the "vnc -none ", otherwise "make check" fails. > If QEMU uses "-display none", "-vnc none" is excrescent, So we just need to > drop it. > > Signed-off-by: Kewei

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 15:38, Wei Liu ha scritto: > On Tue, Jan 07, 2014 at 02:50:12PM +0100, Paolo Bonzini wrote: >> Il 07/01/2014 14:26, Stefano Stabellini ha scritto: The identifiers poisoned by include/qemu/poison.h are an initial but not complete list. Host and target endianness is a par

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf

2014-01-07 Thread Paolo Bonzini
Il 05/01/2014 16:04, Miki Mishael ha scritto: > Support for pci-serial-2x and pci-serial-4x added to inf file. > Standard Windows driver mf.sys used to split single function > device into per-port nodes. > > Signed-off-by: Miki Mishael > Signed-off-by: Dmitry Fleytman > --- > docs/qemupciserial

Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd

2014-01-07 Thread Paolo Bonzini
Il 02/01/2014 17:15, Richard W.M. Jones ha scritto: > > My (possibly weak) understanding of the upstream qemu code is that > unmap/discard/trim is not supported in qcow2. It is only supported in > raw files when using a POSIX-like host OS which has either of: > > - block devices supporting BLKD

Re: [Qemu-devel] [PATCH v2] qdev: Keep global allocation counter per bus

2014-01-07 Thread Markus Armbruster
Paolo Bonzini writes: > Il 21/12/2013 11:42, Markus Armbruster ha scritto: >> Suggest to add: ", killing migration." > > Not good. But perhaps we can give a reason for this 2.0 thing. > > It is certainly nice to schedule incompatible changes for obscure > machine types every 2 years. > >> Which

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Peter Maydell
On 7 January 2014 13:50, Paolo Bonzini wrote: > So let's call things by their name and add qemu-system-xenpv that covers > both x86 and ARM and anything else in the future. How is this going to work? Do you define a fake architecture name "xenpv" ? I guess we'll see what the patches look like...

Re: [Qemu-devel] [PATCH v6 08/11] dump: Add APIs to operate DataCache

2014-01-07 Thread Laszlo Ersek
comments below On 01/05/14 08:27, Qiao Nuohan wrote: > DataCache is used to store data temporarily, then the data will be written to > vmcore. These functions will be called later when writing data of page to > vmcore. > > Signed-off-by: Qiao Nuohan > --- > dump.c| 52 > +

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 16:11, Peter Maydell ha scritto: >> > So let's call things by their name and add qemu-system-xenpv that covers >> > both x86 and ARM and anything else in the future. > How is this going to work? Do you define a fake architecture > name "xenpv" ? Yes, one that aborts if a CPU is creat

Re: [Qemu-devel] [PATCH v6 07/11] dump: Add API to write dump_bitmap

2014-01-07 Thread Laszlo Ersek
comments below On 01/05/14 08:27, Qiao Nuohan wrote: > functions are used to write 1st and 2nd dump_bitmap of kdump-compressed > format, > which is used to indicate whether the corresponded page is existed in vmcore. > 1st and 2nd dump_bitmap are same, because dump level is specified to 1 here. >

[Qemu-devel] [PATCH 2/2] Add check for cache size smaller than page size

2014-01-07 Thread Orit Wasserman
Signed-off-by: Orit Wasserman --- arch_init.c | 4 migration.c | 10 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index 5c55c68..e52c9ba 100644 --- a/arch_init.c +++ b/arch_init.c @@ -176,6 +176,10 @@ static struct { int64_t xbzrle_c

[Qemu-devel] [PATCH 1/2] Set xbzrle buffers to NULL after freeing them to avoid double free errors

2014-01-07 Thread Orit Wasserman
Signed-off-by: Orit Wasserman --- arch_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch_init.c b/arch_init.c index e0acbc5..5c55c68 100644 --- a/arch_init.c +++ b/arch_init.c @@ -587,6 +587,9 @@ static void migration_end(void) g_free(XBZRLE.current_buf); g_free

[Qemu-devel] [V4 PATCH 00/22] target-ppc: Base ISA V2.06 for Power7/Power8

2014-01-07 Thread Tom Musta
The QEMU emulation models for Power7 and Power8 are still missing some of the base instructions that were introduced in Power ISA 2.06 and even a few that were introduced prior to that. This patch series gets these models caught up with respect to the base 2.06 ISA. That is, the Book I and Book I

[Qemu-devel] [V4 PATCH 05/22] target-ppc: Add ISA 2.06 divweu[o] Instructions

2014-01-07 Thread Tom Musta
This patch addes the Unsigned Divide Word Extended instructions which were introduced in Power ISA 2.06B. Signed-off-by: Tom Musta --- V2: Eliminating extraneous code in the overflow case per comments from Richard Henderson. Fixed corner case bug in divweu (check for (RA) >= (RB)). V4: Using ne

[Qemu-devel] [V4 PATCH 03/22] target-ppc: Add ISA2.06 divdeu[o] Instructions

2014-01-07 Thread Tom Musta
This patch adds the Divide Doubleword Extended Unsigned instructions. This instruction requires dividing a 128-bit value by a 64 bit value. Since 128 bit integer division is not supported in TCG, a helper is used. An architecture independent 128-bit division routine is added to host-utils. Sign

[Qemu-devel] [V4 PATCH 02/22] target-ppc: Add Flag for ISA2.06 Divide Extended Instructions

2014-01-07 Thread Tom Musta
This patch adds a flag for the Divide Extended instructions that were introduced in Power ISA V2.06B. The flag is added to the Power7 and Power8 models. Signed-off-by: Tom Musta --- V4: Split into new and separate patch. Added flag to Power7+ model. target-ppc/cpu.h|5 - t

[Qemu-devel] [V4 PATCH 04/22] target-ppc: Add ISA2.06 divde[o] Instructions

2014-01-07 Thread Tom Musta
This patch adds the Divide Doubleword Extended instructions. The implementation builds on the unsigned helper provided in the previous patch. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Updated to use the host-utils 128 bit divide. V4: Using the newly addedd PPC2_DIVE_ISA206

[Qemu-devel] [V4 PATCH 10/22] target-ppc: Add Flag for ISA V2.06 Floating Point Conversion

2014-01-07 Thread Tom Musta
This patch adds a flag for the floating point conversion instructions introduced in Power ISA 2.06B. Signed-off-by: Tom Musta --- V4: Split single flag into multiple flags per discussion with Alex Graf and Scott Wood. Added to Power7+ config. target-ppc/cpu.h|5 - target-pp

[Qemu-devel] [V4 PATCH 12/22] target-ppc: Add ISA 2.06 fcfid[u][s] Instructions

2014-01-07 Thread Tom Musta
This patch adds the fcfids, fcfidu and fcfidus instructions which were introduced in Power ISA 2.06B. A common macro is provided to eliminate repetitious code, and the existing fcfid instruction is refactored to use this macro. Signed-off-by: Tom Musta --- V4: Using the newly added PPC2_FP_CVT_I

[Qemu-devel] [V4 PATCH 15/22] softfloat: Refactor code handling various rounding modes

2014-01-07 Thread Tom Musta
From: Peter Maydell Refactor the code in various functions which calculates rounding increments given the current rounding mode, so that instead of a set of nested if statements we have a simple switch statement. This will give us a clean place to add the case for the new tiesAway rounding mode.

[Qemu-devel] [V4 PATCH 09/22] target-ppc: Add ISA 2.06 stbcx. and sthcx. Instructions

2014-01-07 Thread Tom Musta
This patch adds the byte and halfword variants of the Store Conditional instructions. A common macro is introduced and the existing implementations of stwcx. and stdcx. are refactored to use this macro. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Re-implemented gen_conditio

[Qemu-devel] [V4 PATCH 19/22] target-ppc: Add ISA 2.06 ftdiv Instruction

2014-01-07 Thread Tom Musta
This patch adds the Floating Point Test for Divide instruction which was introduced in Power ISA 2.06B. Signed-off-by: Tom Musta --- V4: Using the newly added PPC2_FP_TST_ISA206 flag. Modified helper signature per Richard Henderson's review. target-ppc/fpu_helper.c | 56 +

[Qemu-devel] [V4 PATCH 18/22] target-ppc: Add Flag for Power ISA V2.06 Floating Point Test Instructions

2014-01-07 Thread Tom Musta
This patch adds a flag for Floating Point Test instructions that were introduced in Power ISA V2.06B. Signed-off-by: Tom Musta --- V4: Split single flag into multiple flags per discussion with Alex Graf and Scott Wood. Added flag to Power7+ model. target-ppc/cpu.h|4 +++- targe

[Qemu-devel] [V4 PATCH 20/22] target-ppc: Add ISA 2.06 ftsqrt

2014-01-07 Thread Tom Musta
This patch adds the Floating Point Test for Square Root instruction which was introduced in Power ISA 2.06. Signed-off-by: Tom Musta --- V4: Using the newly added PPC2_FP_TST_ISA206 flag. Modified helper signature per Richard Henderson's review. target-ppc/fpu_helper.c | 31 +

[Qemu-devel] [V4 PATCH 22/22] target-ppc: Add ISA2.06 lfiwzx Instruction

2014-01-07 Thread Tom Musta
This patch adds the Load Floating Point as Integer Word and Zero Indexed (lfiwzx) instruction which was introduced in Power ISA 2.06. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V4: Using the PPC2_FP_CVT_ISA206 flag. target-ppc/translate.c | 15 +++ 1 files change

[Qemu-devel] [V4 PATCH 21/22] target-ppc: Enable frsqrtes on Power7 and Power8

2014-01-07 Thread Tom Musta
The frsqrtes instruction was introduced prior to ISA 2.06 and is support on both the Power7 and Power8 processors. However, this instruction is handled as illegal in the current QEMU emulation machines. This patch enables the existing implemention of frsqrtes in the P7 and P8 machines. Signed-of

Re: [Qemu-devel] [PULL 00/01] seccomp: exit if seccomp_init() fails

2014-01-07 Thread Markus Armbruster
Eduardo Otubo writes: > The following changes since commit 2a13f991123fa16841e6d94b02a9cc2c76d91725: > > seccomp: exit if seccomp_init() fails (2013-12-20 16:38:29 -0200) > > are available in the git repository at: > git://github.com/otubo/qemu.git seccomp It's been almost three weeks. What

[Qemu-devel] [PATCH 2/4] rules.mak: Link with C++ if we have a C++ compiler

2014-01-07 Thread Peter Maydell
If we have a C++ compiler available, link with it, because we might be linking some C++ files in. This allows us to include C++ object files in the QEMU binary proper. Signed-off-by: Peter Maydell --- rules.mak | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rules.mak

[Qemu-devel] [V4 PATCH 11/22] target-ppc: Add ISA2.06 Float to Integer Instructions

2014-01-07 Thread Tom Musta
This patch adds the four floating point to integer conversion instructions introduced by Power ISA V2.06: - Floating Convert to Integer Word Unsigned (fctiwu) - Floating Convert to Integer Word Unsigned with Round Toward Zero (fctiwuz) - Floating Convert to Integer Doubleword Unsigned (f

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 13:43, Peter Maydell ha scritto: > Sure. I think the right way to do that is to only allow > them to plug in devices that are truly pluggable (ie which > are on some pluggable bus like PCI or USB), rather than > this way round, which is trying to blacklist devices rather > than whitel

[Qemu-devel] [V4 PATCH 17/22] target-ppc: Fix and enable fri[mnpz]

2014-01-07 Thread Tom Musta
The fri* series of instructions was introduced prior to ISA 2.06 and is supported on Power7 and Power8 hardware. However, the instruction is still considered illegal in the P7 and P8 QEMU emulation models. This patch enables these instructions for the P7 and P8 machines. Also, the existing helper

[Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassembly

2014-01-07 Thread Peter Maydell
Hi. This is a rebased and mildly cleaned up version of Claudio's RFC patchset from last year to add libvixl to QEMU and use it for A64 disassembly. NOTE NOTE NOTE * we now link with g++, not gcc (even if the target doesn't happen to need the A64 disassembler, since it's a bit hard to tell w

[Qemu-devel] [PATCH 1/4] rules.mak: Support .cc as a C++ source file suffix

2014-01-07 Thread Peter Maydell
The A64 disassembler libvixl uses .cc as its suffix for C++ source files, so add support for it (we already support .cpp). Signed-off-by: Peter Maydell --- rules.mak | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rules.mak b/rules.mak index 49edb9b..cd9187e 100644 --- a

[Qemu-devel] [PATCH 4/4] disas: Implement disassembly output for A64

2014-01-07 Thread Peter Maydell
From: Claudio Fontana Use libvixl to implement disassembly output in debug logs for A64, for both AArch64 hosts and targets. Signed-off-by: Claudio Fontana [PMM: * added support for target disassembly * switched to custom QEMUDisassembler so the output format matches what QEMU expects * m

Re: [Qemu-devel] [PATCH v2] qdev: Keep global allocation counter per bus

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 16:12, Markus Armbruster ha scritto: > aarch64 akita info qtree crashes > aarch64 borzoi info qtree crashes > aarch64 spitz info qtree crashes > aarch64 terrier info qtree crashes > aarch64 tosain

Re: [Qemu-devel] [PATCH v4 1/1] qtest: Fix the bug about disable vnc causes "make check" fail

2014-01-07 Thread Kevin Wolf
Am 07.01.2014 um 15:41 hat Paolo Bonzini geschrieben: > Il 06/01/2014 07:05, Kewei Yu ha scritto: > > When we disable vnc from "./configure", QEMU can't use the vnc option. > > So qtest can't use the "vnc -none ", otherwise "make check" fails. > > If QEMU uses "-display none", "-vnc none" is excres

[Qemu-devel] [V4 PATCH 01/22] target-ppc: Add ISA2.06 bpermd Instruction

2014-01-07 Thread Tom Musta
This patch adds the Bit Permute Doubleword (bpermd) instruction, which was introduced in Power ISA 2.06 as part of the base 64-bit architecture. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Addressing stylistic comments from Richard Henderson. V4: Use newly added PPC2_PERM_IS

[Qemu-devel] [V4 PATCH 06/22] target-ppc: Add ISA 2.06 divwe[o] Instructions

2014-01-07 Thread Tom Musta
This patch addes the signed Divide Word Extended instructions which were introduced in Power ISA 2.06B. Signed-off-by: Tom Musta --- V2: Eliminating extraneous code in the overflow case per comments from Richard Henderson. Fixed corner case bug in divweu (check for (RA) >= (RB)). V4: Using newl

[Qemu-devel] [V4 PATCH 16/22] softfloat: Add support for ties-away rounding

2014-01-07 Thread Tom Musta
From: Peter Maydell IEEE754-2008 specifies a new rounding mode: "roundTiesToAway: the floating-point number nearest to the infinitely precise result shall be delivered; if the two nearest floating-point numbers bracketing an unrepresentable infinitely precise result are equally near, the one wit

[Qemu-devel] [V4 PATCH 08/22] target-ppc: Add ISA2.06 lbarx, lharx Instructions

2014-01-07 Thread Tom Musta
This patch adds the byte and halfword variants of the Load and Reserve instructions. Since there is much commonality among all forms of Load and Reserve, a macro is provided and the existing implementations of lwarx and ldarx are refactoried to use this macro. Signed-off-by: Tom Musta Reviewed-

Re: [Qemu-devel] [PATCH] docs: qcow2 compat=1.1 is now the default

2014-01-07 Thread Kevin Wolf
Am 06.01.2014 um 14:17 hat Eric Blake geschrieben: > On 01/05/2014 09:39 PM, Stefan Hajnoczi wrote: > > Commit 9117b47717ad208b12786ce88eacb013f9b3dd1c ("qcow2: Change default > > for new images to compat=1.1") changed the default qcow2 image format > > version but forgot to update qemu-doc.texi an

[Qemu-devel] [V4 PATCH 07/22] target-ppc: Add Flag for ISA2.06 Atomic Instructions

2014-01-07 Thread Tom Musta
This patch adds a flag for the atomic instructions introduced in Power ISA V2.06B. Signed-off-by: Tom Musta --- V4: Split into new and separate patch. Added to Power7+ model. target-ppc/cpu.h|5 - target-ppc/translate_init.c |9 ++--- 2 files changed, 10 insertions(

[Qemu-devel] [V4 PATCH 14/22] softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal

2014-01-07 Thread Tom Musta
From: Peter Maydell In preparation for adding conversions between float16 and float64, factor out code currently done inline in the float16<=>float32 conversion functions into functions RoundAndPackFloat16 and NormalizeFloat16Subnormal along the lines of the existing versions for the other float

[Qemu-devel] [V4 PATCH 13/22] softfloat: Fix exception flag handling for float32_to_float16()

2014-01-07 Thread Tom Musta
From: Peter Maydell Our float32 to float16 conversion routine was generating the correct numerical answers, but not always setting the right set of exception flags. Fix this, mostly by rearranging the code to more closely resemble RoundAndPackFloat*, and in particular: * non-IEEE halfprec always

Re: [Qemu-devel] [PATCH v2] qdev: Keep global allocation counter per bus

2014-01-07 Thread Markus Armbruster
Paolo Bonzini writes: > Il 07/01/2014 16:12, Markus Armbruster ha scritto: >> aarch64 akita info qtree crashes >> aarch64 borzoi info qtree crashes >> aarch64 spitz info qtree crashes >> aarch64 terrier info qtree crashes >>

Re: [Qemu-devel] [PATCH v2] SPARC: Fix LEON3 power down instruction

2014-01-07 Thread Sebastian Huber
Hello, would somebody mind committing this. On 12/06/2013 06:48 PM, Richard Henderson wrote: On 11/27/2013 08:50 PM, Sebastian Huber wrote: Synchronize the program counter before the power down helper call otherwise interrupts will return to the wrong context. Signed-off-by: Sebastian Huber

[Qemu-devel] [PATCH] qdev: Assign a default device ID when none is provided.

2014-01-07 Thread Hani Benhabiles
This would allow a user to be able to refer to the device when using commands like device_del. Signed-off-by: Hani Benhabiles --- qdev-monitor.c | 64 +- 1 file changed, 50 insertions(+), 14 deletions(-) diff --git a/qdev-monitor.c b/qdev-

Re: [Qemu-devel] [PULL 12/52] target-arm: Update generic cpreg code for AArch64

2014-01-07 Thread Peter Maydell
On 6 January 2014 11:30, Peter Maydell wrote: > @@ -1946,7 +1947,34 @@ static void add_cpreg_to_hashtable(ARMCPU *cpu, const > ARMCPRegInfo *r, > uint32_t *key = g_new(uint32_t, 1); > ARMCPRegInfo *r2 = g_memdup(r, sizeof(ARMCPRegInfo)); > int is64 = (r->type & ARM_CP_64BIT) ? 1 :

Re: [Qemu-devel] [PULL 00/52] target-arm queue

2014-01-07 Thread Peter Maydell
On 6 January 2014 11:30, Peter Maydell wrote: > First target-arm pull request of the year; please pull. ...and first brown-paper-bag bug of the year: this breaks booting of Linux when emulating ARMv7 32 bit CPUs. Please ignore this pull request. I'll fix things up and resubmit. (I'm also plannin

Re: [Qemu-devel] [PATCH v3] linux-user: Support the accept4 socketcall

2014-01-07 Thread Laurent Vivier
Le 06/01/2014 20:18, André Hentschel a écrit : From: André Hentschel Cc: Riku Voipio Signed-off-by: André Hentschel Reviewed-by: Laurent Vivier

[Qemu-devel] [PULL 65/76] softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal

2014-01-07 Thread Peter Maydell
In preparation for adding conversions between float16 and float64, factor out code currently done inline in the float16<=>float32 conversion functions into functions RoundAndPackFloat16 and NormalizeFloat16Subnormal along the lines of the existing versions for the other float types. Note that we c

[Qemu-devel] [PULL 53/76] softfloat: Fix exception flag handling for float32_to_float16()

2014-01-07 Thread Peter Maydell
Our float32 to float16 conversion routine was generating the correct numerical answers, but not always setting the right set of exception flags. Fix this, mostly by rearranging the code to more closely resemble RoundAndPackFloat*, and in particular: * non-IEEE halfprec always raises Invalid for in

[Qemu-devel] [PULL 11/76] target-arm: Pull "add one cpreg to hashtable" into its own function

2014-01-07 Thread Peter Maydell
define_one_arm_cp_reg_with_opaque() has a set of nested loops which insert a cpreg entry into the hashtable for each of the possible opc/crn/crm values allowed by wildcard specifications. We're about to add an extra loop to this nesting, so pull the core of the loop (which adds a single entry to th

[Qemu-devel] [PULL 60/76] softfloat: Add float32_to_uint64()

2014-01-07 Thread Peter Maydell
From: Tom Musta This patch adds the float32_to_uint64() routine, which converts a 32-bit floating point number to an unsigned 64 bit number. This contribution can be licensed under either the softfloat-2a or -2b license. Signed-off-by: Tom Musta Reviewed-by: Peter Maydell [PMM: removed harmle

[Qemu-devel] [PULL 10/76] target-arm: A64: implement FMOV

2014-01-07 Thread Peter Maydell
Implement FMOV, ie non-converting moves between general purpose registers and floating point registers. This is a subtype of the floating point <-> integer instruction class. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 86

[Qemu-devel] [PULL 73/76] target-arm: A64: Add floating-point<->fixed-point instructions

2014-01-07 Thread Peter Maydell
From: Alexander Graf This patch adds emulation for the instruction group labeled "Floating-point <-> fixed-point conversions" in the ARM ARM. Namely this includes the instructions SCVTF, UCVTF, FCVTZS, FCVTZU (scalar, fixed-point). Signed-off-by: Alexander Graf [WN: Commit message tweak, rebas

[Qemu-devel] [PULL 69/76] target-arm: Prepare VFP_CONV_FIX helpers for A64 uses

2014-01-07 Thread Peter Maydell
From: Will Newton Make the VFP_CONV_FIX helpers a little more flexible in preparation for the A64 uses. This requires two changes: * use the correct softfloat conversion function based on itype rather than always the int32 one; this is possible now that softfloat provides int16 versions an

[Qemu-devel] [PULL 61/76] softfloat: Fix float64_to_uint64_round_to_zero

2014-01-07 Thread Peter Maydell
From: Tom Musta The float64_to_uint64_round_to_zero routine is incorrect. For example, the following test pattern: 46697351FF4AEC29 / 0x1.97351ff4aec29p+103 currently produces 8000 instead of . This patch re-implements the routine to temporarily force the round

[Qemu-devel] [PULL 64/76] softfloat: Provide complete set of accessors for fp state

2014-01-07 Thread Peter Maydell
Tidy up the get/set accessors for the fp state to add missing ones and make them all inline in softfloat.h rather than some inline and some not. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- fpu/softfloat.c | 15 --- include/fpu/softfloat.h | 39 +++

[Qemu-devel] [PULL 48/76] target-arm: remove raw_read|write duplication

2014-01-07 Thread Peter Maydell
From: Peter Crosthwaite There is an inline duplication of the raw_read and raw_write function bodies. Fix by just calling raw_read/raw_write instead. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Message-id: e69281b7e1462b346cb313cf0b89eedc0568125f.1388649290.git.peter.crosthwa.

[Qemu-devel] [PULL 19/76] target-arm: aarch64: add support for ld lit

2014-01-07 Thread Peter Maydell
From: Alexander Graf Adds support for Load Register (literal), both normal and SIMD/FP forms. Signed-off-by: Alexander Graf Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 47

[Qemu-devel] [PULL 23/76] linux-user: AArch64: Use correct values for FPSR/FPCR in sigcontext

2014-01-07 Thread Peter Maydell
From: Will Newton Use the helpers provided for getting the correct FPSR and FPCR values for the signal context. Signed-off-by: Will Newton Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- linux-user/signal.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) dif

[Qemu-devel] [PULL 54/76] softfloat: Add float to 16bit integer conversions.

2014-01-07 Thread Peter Maydell
From: Will Newton ARMv8 requires support for converting 32 and 64bit floating point values to signed and unsigned 16bit integers. Signed-off-by: Will Newton [PMM: updated not to incorrectly set Inexact for Invalid inputs] Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- fpu/so

[Qemu-devel] [PULL 20/76] target-arm: Widen exclusive-access support struct fields to 64 bits

2014-01-07 Thread Peter Maydell
In preparation for adding support for A64 load/store exclusive instructions, widen the fields in the CPU state struct that deal with address and data values for exclusives from 32 to 64 bits. Although in practice AArch64 and AArch32 exclusive accesses will be generally separate there are some odd t

[Qemu-devel] [PULL 35/76] target-arm: Give the FPSCR rounding modes names

2014-01-07 Thread Peter Maydell
From: Alexander Graf When setting rounding modes we currently just hardcode the numeric values for rounding modes in a big switch statement. With AArch64 support coming, we will need to refer to these rounding modes at different places throughout the code though, so let's better give them names

Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd

2014-01-07 Thread Richard W.M. Jones
On Tue, Jan 07, 2014 at 03:48:54PM +0100, Paolo Bonzini wrote: > Il 02/01/2014 17:15, Richard W.M. Jones ha scritto: > > > > My (possibly weak) understanding of the upstream qemu code is that > > unmap/discard/trim is not supported in qcow2. It is only supported in > > raw files when using a POSI

[Qemu-devel] [PULL 34/76] target-arm: A64: Add support for floating point cond select

2014-01-07 Thread Peter Maydell
From: Claudio Fontana This adds decoding support for C3.6.24 FP conditional select. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 45 - 1 file changed, 44 insertions(+),

[Qemu-devel] [PULL 36/76] char/cadence_uart: Mark struct fields as public/private

2014-01-07 Thread Peter Maydell
From: Peter Crosthwaite As per current QOM conventions. Signed-off-by: Peter Crosthwaite Message-id: a1e31bd62e9709ffb9b3efc6c120f83f30b7a660.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Maydell --- hw/char/cadence_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --gi

Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd

2014-01-07 Thread Paolo Bonzini
Il 07/01/2014 21:27, Richard W.M. Jones ha scritto: > Not much more what I said in the original email (especially see the > attached script which you can download from the bottom of this page: > https://lists.gnu.org/archive/html/qemu-devel/2014-01/msg00084.html ) > > Basically it tries to dd /dev

[Qemu-devel] [PULL 01/49] exec: Delay CPU_LOG_TB_CPU until we actually execute a TB

2014-01-07 Thread Richard Henderson
The previous placement could result in duplicate logging while still processing interrupts. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- cpu-exec.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/cpu-exec.c b/cpu-exec

[Qemu-devel] [PULL 17/49] target-i386: Remove unused arguments to gen_lea_modrm

2014-01-07 Thread Richard Henderson
The reg_ptr and offset_ptr outputs are universally unused. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-i386/translate.c | 146 +++- 1 file changed, 69 insertions(+), 77 deletions(-) diff --git a/target-i386/translate.c b/ta

  1   2   3   >