[Qemu-devel] [PATCH 0/3] potentially broken drive-mirror/drive-backup in bdrv_co_discard

2016-06-16 Thread Denis V. Lunev
Actually I have found this problem running iotest 132 for active async mirror I have sent yesturday. Anyway, the problem is actual for current backup/mirror implementation. bdrv_co_discard must mark areas dirty after writing zeroes, it must call before_write_notifier chain to push underlying data

[Qemu-devel] [PATCH 2/3] block: fix race in bdrv_co_discard with drive-mirror

2016-06-16 Thread Denis V. Lunev
Actually we must set dirty bitmap dirty after we have written all our zeroes for correct processing in drive mirror code. In the other case we can face not zeroes in this dirty area there in mirror_iteration. Signed-off-by: Denis V. Lunev CC: Vladimir Sementsov-Ogievskiy CC: Stefan Hajnoczi CC:

[Qemu-devel] [PATCH 3/3] block: process before_write_notifiers in bdrv_co_discard

2016-06-16 Thread Denis V. Lunev
This is mandatory for correct backup creation. In the other case the content under this area would be lost. Dirty bits are set exactly like in bdrv_aligned_pwritev, i.e. they are set even if notifier has returned a error. Signed-off-by: Denis V. Lunev CC: Vladimir Sementsov-Ogievskiy CC: Stefan

[Qemu-devel] [PATCH 1/3] block: fixed BdrvTrackedRequest filling in bdrv_co_discard

2016-06-16 Thread Denis V. Lunev
The request is area is specified in bytes, not in sectors. Signed-off-by: Denis V. Lunev CC: Vladimir Sementsov-Ogievskiy CC: Stefan Hajnoczi CC: Fam Zheng CC: Kevin Wolf CC: Max Reitz --- block/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/io.c b/block/i

Re: [Qemu-devel] [PATCH 3/9] m25p80: Allow more than four banks.

2016-06-16 Thread Cédric Le Goater
On 06/15/2016 03:41 PM, marcin.krzemin...@nokia.com wrote: > From: Marcin Krzeminski > > Allow to have more than four 16MiB regions for bigger flash devices. > > Signed-off-by: Marcin Krzeminski Reviewed-by: Cédric Le Goater > --- > hw/block/m25p80.c | 5 ++--- > 1 file changed, 2 insertio

Re: [Qemu-devel] [PATCH 4/9] m25p80: Introduce COLLECTING_VAR_LEN_DATA state.

2016-06-16 Thread Cédric Le Goater
On 06/15/2016 03:41 PM, marcin.krzemin...@nokia.com wrote: > From: Marcin Krzeminski > > Some flash allows to stop read at any time. > Allow framework to support this. > > Signed-off-by: Marcin Krzeminski > --- > hw/block/m25p80.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/

Re: [Qemu-devel] [PATCH 5/9] m25p80: Add additional flash commands:

2016-06-16 Thread Cédric Le Goater
On 06/15/2016 03:41 PM, marcin.krzemin...@nokia.com wrote: > From: Marcin Krzeminski > > Page program 4byte/quad and erase 32K sectors 4 bytes. Reviewed-by: Cédric Le Goater C. > > Signed-off-by: Marcin Krzeminski > --- > hw/block/m25p80.c | 9 + > 1 file changed, 9 insertions(+)

[Qemu-devel] [PATCH v7 0/7] trace: enable tracing in qemu-io/qemu-nbd/qemu-img

2016-06-16 Thread Denis V. Lunev
Changes from v6: - changed order of patches 1 & 2 Changes from v5: - added missed hunk into patch #7 Changes from v4: - synced help descriprion for --trace with man for qemu.1/qemu-img.1/qemu-nbd.8 - moved @findex from qemu-option-trace.texi Changes from v3: - fixed difference in help/man for qe

[Qemu-devel] [PATCH 2/7] doc: move text describing --trace to specific .texi file

2016-06-16 Thread Denis V. Lunev
This text will be included to qemu-nbd/qemu-img mans in the next patches. Signed-off-by: Denis V. Lunev Reviewed-by: Eric Blake CC: Paolo Bonzini CC: Stefan Hajnoczi CC: Kevin Wolf --- Makefile| 3 ++- qemu-options.hx | 27 +-- 2 files changed, 3 insertions(+

[Qemu-devel] [PATCH 3/7] trace: move qemu_trace_opts to trace/control.c

2016-06-16 Thread Denis V. Lunev
The patch also creates trace_opt_parse() helper in trace/control.c to reuse this code in next patches for qemu-nbd and qemu-io. The patch also makes trace_init_events() static, as this call is not used outside the module anymore. Signed-off-by: Denis V. Lunev Reviewed-by: Eric Blake CC: Paolo B

[Qemu-devel] [PATCH 1/7] doc: sync help descriprion for --trace with man for qemu.1

2016-06-16 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviewed-by: Eric Blake CC: Paolo Bonzini CC: Stefan Hajnoczi CC: Kevin Wolf --- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index 0e42ba5..bee246e 100644 --- a/qemu-options.hx +++ b/qemu-o

[Qemu-devel] [PATCH 7/7] trace: enable tracing in qemu-img

2016-06-16 Thread Denis V. Lunev
The command will work this way: qemu-img --trace qcow2* create -f qcow2 1.img 64G Signed-off-by: Denis V. Lunev Suggested by: Daniel P. Berrange Reviewed-by: Eric Blake CC: Paolo Bonzini CC: Stefan Hajnoczi CC: Kevin Wolf --- Makefile | 2 +- qemu-img.c| 18 +-

[Qemu-devel] [PATCH 5/7] trace: enable tracing in qemu-nbd

2016-06-16 Thread Denis V. Lunev
Please note, trace_init_backends() must be called in the final process, i.e. after daemonization. This is necessary to keep tracing thread in the proper process. Signed-off-by: Denis V. Lunev Reviewed-by: Eric Blake CC: Paolo Bonzini CC: Stefan Hajnoczi CC: Kevin Wolf --- Makefile | 2

[Qemu-devel] [PATCH 4/7] trace: enable tracing in qemu-io

2016-06-16 Thread Denis V. Lunev
Moving trace_init_backends() into trace_opt_parse() is not possible. This should be called after daemonize() in vl.c. Signed-off-by: Denis V. Lunev Reviewed-by: Eric Blake CC: Paolo Bonzini CC: Stefan Hajnoczi CC: Kevin Wolf --- qemu-io.c | 17 + 1 file changed, 13 insertions

Re: [Qemu-devel] [PATCH 9/9] m25p80: New flash devices.

2016-06-16 Thread Cédric Le Goater
On 06/15/2016 03:41 PM, marcin.krzemin...@nokia.com wrote: > From: Marcin Krzeminski > > Macronix: mx66u51235f and mx66u1g45g > Micron: mt25ql01g and mt25qu01g > Spansion: s25fs512s and s70fs01gs > > Signed-off-by: Marcin Krzeminski Reviewed-by: Cédric Le Goater > --- > hw/block/m25p80.c |

Re: [Qemu-devel] [PATCH 8/9] m25p80: Fast read commands family changes.

2016-06-16 Thread Cédric Le Goater
On 06/15/2016 03:41 PM, marcin.krzemin...@nokia.com wrote: > From: Marcin Krzeminski > > Add support for Spansion and Macronix flashes. > Additionally Numonyx(Micron) move from default > in fast read commands family. maybe we could start adding sub routines to decode some of the larger commands

[Qemu-devel] [PATCH 6/7] qemu-img: move common options parsing before commands processing

2016-06-16 Thread Denis V. Lunev
This is necessary to enable creation of common qemu-img options which will be specified before command. The patch also enables '-V' alias to '--version' (exactly like in other block utilities) and documents this change. Signed-off-by: Denis V. Lunev Reviewed-by: Eric Blake CC: Paolo Bonzini CC

Re: [Qemu-devel] [PATCH 2/2] intel_iommu: Throw hw_error on notify_started

2016-06-16 Thread Marcel Apfelbaum
On 06/15/2016 06:56 PM, Alex Williamson wrote: We don't currently support the MemoryRegionIOMMUOps notifier, so throw an error should a device require it. Signed-off-by: Alex Williamson --- hw/i386/intel_iommu.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/i386/inte

Re: [Qemu-devel] [PATCH] qapi: Fix crash on missing alternate member of QAPI struct

2016-06-16 Thread Markus Armbruster
Eric Blake writes: > If a QAPI struct has a mandatory alternate member which is not > present on input, the input visitor reports an error for the > missing alternate without setting the discriminator, but the > cleanup code for the struct still tries to use the dealloc > visitor to clean up the

Re: [Qemu-devel] [PATCH 1/2] piix: Set I440FXState member pci_info.w32 in one place

2016-06-16 Thread Marcel Apfelbaum
On 06/15/2016 08:56 PM, Markus Armbruster wrote: Range pci_info.w32 records the location of the PCI hole. It's initialized to empty when QOM zeroes I440FXState. That's a fine value for a still unknown PCI hole. i440fx_init() sets pci_info.w32.begin = below_4g_mem_size. Changes the PCI hole fr

Re: [Qemu-devel] [PATCH 7/9] m25p80: Introduce configuration registers.

2016-06-16 Thread Cédric Le Goater
On 06/15/2016 03:41 PM, marcin.krzemin...@nokia.com wrote: > From: Marcin Krzeminski > > Configuration registers for Spansion and Macronix devices. > > Signed-off-by: Marcin Krzeminski Reviewed-by: Cédric Le Goater I don't think we can define a property array. can we ? > --- > hw/block/m

Re: [Qemu-devel] [PATCH 2/2] pc: Eliminate PcPciInfo

2016-06-16 Thread Marcel Apfelbaum
On 06/15/2016 08:56 PM, Markus Armbruster wrote: PcPciInfo has two (ill-named) members: Range w32 is the PCI hole, and w64 is the PCI64 hole. Three users: * I440FXState and MCHPCIState have a member PcPciInfo pci_info, but only pci_info.w32 is actually used. This is confusing. Replace by

Re: [Qemu-devel] [PATCH 1/3] block: fixed BdrvTrackedRequest filling in bdrv_co_discard

2016-06-16 Thread Fam Zheng
On Thu, 06/16 09:58, Denis V. Lunev wrote: > The request is area is specified in bytes, not in sectors. s/request is/request/ > > Signed-off-by: Denis V. Lunev > CC: Vladimir Sementsov-Ogievskiy > CC: Stefan Hajnoczi > CC: Fam Zheng > CC: Kevin Wolf > CC: Max Reitz > --- > block/io.c | 4 +

Re: [Qemu-devel] [PATCH 2/3] block: fix race in bdrv_co_discard with drive-mirror

2016-06-16 Thread Fam Zheng
On Thu, 06/16 09:58, Denis V. Lunev wrote: > Actually we must set dirty bitmap dirty after we have written all our > zeroes for correct processing in drive mirror code. In the other case > we can face not zeroes in this dirty area there in mirror_iteration. > > Signed-off-by: Denis V. Lunev > CC:

Re: [Qemu-devel] [PATCH 2/3] log: Fix qemu_set_dfilter_ranges() error reporting

2016-06-16 Thread Markus Armbruster
Eric Blake writes: > On 06/15/2016 11:27 AM, Markus Armbruster wrote: >> g_error() is not an acceptable way to report errors to the user: >> >> $ qemu-system-x86_64 -dfilter 1000+0 >> >> ** (process:17187): ERROR **: Failed to parse range in: 1000+0 >> Trace/breakpoint trap (core du

Re: [Qemu-devel] [PATCH 3/3] block: process before_write_notifiers in bdrv_co_discard

2016-06-16 Thread Fam Zheng
On Thu, 06/16 09:58, Denis V. Lunev wrote: > This is mandatory for correct backup creation. In the other case the > content under this area would be lost. > > Dirty bits are set exactly like in bdrv_aligned_pwritev, i.e. they are set > even if notifier has returned a error. > > Signed-off-by: Den

[Qemu-devel] [PATCH 1/2] hw/misc: Add a model for the ASPEED System Control Unit

2016-06-16 Thread Andrew Jeffery
The SCU is a collection of chip-level control registers that manage the various functions supported by the AST2400. Typically the bits control interactions with clocks, external hardware or reset behaviour, and we can largly take a hands-off approach to reads and writes. Firmware makes heavy use o

[Qemu-devel] [PATCH 2/2] ast2400: Integrate the SCU model and configure reset values

2016-06-16 Thread Andrew Jeffery
Almost all configured reset values are specified by the datasheet. The notable exception is ASPEED_SCU_SOC_SCRATCH1, where we mark the DRAM as successfully initialised by the SoC to avoid unnecessary dark corners in the SoC's u-boot support. Signed-off-by: Andrew Jeffery Reviewed-by: Cédric Le Go

[Qemu-devel] [PATCH 0/2] Add ASPEED SCU device

2016-06-16 Thread Andrew Jeffery
Hi all, These are two patches implementing minimal functionality for the ASPEED System Control Unit device and integrating it into the AST2400 SoC model. The device is critical for initialisation of u-boot and the kernel as it provides chip level control registers, influencing the configuration of

Re: [Qemu-devel] [PATCH RFC 2/4] range: Eliminate direct Range member access

2016-06-16 Thread Markus Armbruster
Eric Blake writes: > On 06/15/2016 02:41 PM, Markus Armbruster wrote: >> Users of struct Range mess liberally with its members, which makes >> refactoring hard. Create a set of methods, and convert all users to >> call them instead of accessing members. The methods have carefully >> worded cont

Re: [Qemu-devel] [PATCH 7/9] m25p80: Introduce configuration registers.

2016-06-16 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
> -Original Message- > From: Cédric Le Goater [mailto:c...@kaod.org] > Sent: Thursday, June 16, 2016 9:25 AM > To: Krzeminski, Marcin (Nokia - PL/Wroclaw) > ; qemu-devel@nongnu.org > Cc: crosthwaitepe...@gmail.com; pawel.len...@itlen.com; > peter.mayd...@linaro.org > Subject: Re: [PATCH 7

[Qemu-devel] [PATCH] doc: Fix mailing list address in tests/qemu-iotests/README

2016-06-16 Thread Thomas Huth
The address of the mailing list is qemu-devel@nongnu.org instead of qemu-de...@savannah.nongnu.org. And while we're at it, also mention the qemu-block mailing list here. Signed-off-by: Thomas Huth --- tests/qemu-iotests/README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

Re: [Qemu-devel] [PATCH 8/9] m25p80: Fast read commands family changes.

2016-06-16 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
> -Original Message- > From: Cédric Le Goater [mailto:c...@kaod.org] > Sent: Thursday, June 16, 2016 9:20 AM > To: Krzeminski, Marcin (Nokia - PL/Wroclaw) > ; qemu-devel@nongnu.org > Cc: crosthwaitepe...@gmail.com; pawel.len...@itlen.com; > peter.mayd...@linaro.org > Subject: Re: [PATCH 8

Re: [Qemu-devel] [PATCH 4/9] m25p80: Introduce COLLECTING_VAR_LEN_DATA state.

2016-06-16 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
> -Original Message- > From: Cédric Le Goater [mailto:c...@kaod.org] > Sent: Thursday, June 16, 2016 9:14 AM > To: Krzeminski, Marcin (Nokia - PL/Wroclaw) > ; qemu-devel@nongnu.org > Cc: crosthwaitepe...@gmail.com; pawel.len...@itlen.com; > peter.mayd...@linaro.org > Subject: Re: [PATCH 4

Re: [Qemu-devel] [PATCH v5 1/4] Provide support for the CUSE TPM

2016-06-16 Thread Dr. David Alan Gilbert
* Stefan Berger (stef...@linux.vnet.ibm.com) wrote: > On 06/15/2016 03:30 PM, Dr. David Alan Gilbert wrote: > > So what was the multi-instance vTPM proxy driver patch set about? > > That's for containers. Why have the two mechanisms? Can you explain how the multi-instance proxy works; my brief

Re: [Qemu-devel] [PATCH RFC 4/4] range: Replace internal representation of Range

2016-06-16 Thread Markus Armbruster
Eric Blake writes: > On 06/15/2016 02:41 PM, Markus Armbruster wrote: >> Range represents a range as follows. Member @start is the inclusive >> lower bound, member @end is the exclusive upper bound. Zero @end is >> special: if @start is also zero, the range is empty, else @end is to >> be inter

Re: [Qemu-devel] [PATCH 7/9] m25p80: Introduce configuration registers.

2016-06-16 Thread Cédric Le Goater
On 06/16/2016 09:52 AM, Krzeminski, Marcin (Nokia - PL/Wroclaw) wrote: > > >> -Original Message- >> From: Cédric Le Goater [mailto:c...@kaod.org] >> Sent: Thursday, June 16, 2016 9:25 AM >> To: Krzeminski, Marcin (Nokia - PL/Wroclaw) >> ; qemu-devel@nongnu.org >> Cc: crosthwaitepe...@gmai

[Qemu-devel] [PATCH 2/2] msmouse: send short messages if possible.

2016-06-16 Thread Gerd Hoffmann
Keep track of button changes. Send the extended 4-byte messages for three button mice only in case we have something to report for the middle button. Use the short 3-byte messages (original protocol for two-button microsoft mouse) otherwise. Signed-off-by: Gerd Hoffmann --- backends/msmouse.c

Re: [Qemu-devel] [PATCH] doc: Fix mailing list address in tests/qemu-iotests/README

2016-06-16 Thread Kevin Wolf
Am 16.06.2016 um 09:53 hat Thomas Huth geschrieben: > The address of the mailing list is qemu-devel@nongnu.org > instead of qemu-de...@savannah.nongnu.org. And while we're > at it, also mention the qemu-block mailing list here. > > Signed-off-by: Thomas Huth Thanks, applied to the block branch.

[Qemu-devel] [PATCH 0/2] more msmouse fixes

2016-06-16 Thread Gerd Hoffmann
Hi, Two more msmouse patches, applying on top of the other msmouse patches sent a few days ago. cheers, Gerd Gerd Hoffmann (2): msmouse: switch to new input interface msmouse: send short messages if possible. backends/msmouse.c | 81 -

[Qemu-devel] [PATCH 1/2] msmouse: switch to new input interface

2016-06-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- backends/msmouse.c | 68 -- 1 file changed, 56 insertions(+), 12 deletions(-) diff --git a/backends/msmouse.c b/backends/msmouse.c index 9ade31b..b1e1bea 100644 --- a/backends/msmouse.c +++ b/backends/msmouse.c

Re: [Qemu-devel] [PATCH 4/9] m25p80: Introduce COLLECTING_VAR_LEN_DATA state.

2016-06-16 Thread Cédric Le Goater
On 06/16/2016 09:43 AM, Krzeminski, Marcin (Nokia - PL/Wroclaw) wrote: > > >> -Original Message- >> From: Cédric Le Goater [mailto:c...@kaod.org] >> Sent: Thursday, June 16, 2016 9:14 AM >> To: Krzeminski, Marcin (Nokia - PL/Wroclaw) >> ; qemu-devel@nongnu.org >> Cc: crosthwaitepe...@gmai

Re: [Qemu-devel] [PATCH 2/2] msmouse: send short messages if possible.

2016-06-16 Thread Peter Maydell
On 16 June 2016 at 09:07, Gerd Hoffmann wrote: > Keep track of button changes. Send the extended 4-byte messages for > three button mice only in case we have something to report for the > middle button. Use the short 3-byte messages (original protocol for > two-button microsoft mouse) otherwise.

Re: [Qemu-devel] [PATCH 4/7] tricore: remove useless cast

2016-06-16 Thread Bastian Koppelmann
On 06/15/2016 06:14 PM, Laurent Vivier wrote: > This patch is the result of coccinelle script > scripts/coccinelle/typecast.cocci > > CC: Bastian Koppelmann > Signed-off-by: Laurent Vivier > --- > hw/tricore/tricore_testboard.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed

Re: [Qemu-devel] [PATCH v5 1/4] Provide support for the CUSE TPM

2016-06-16 Thread Daniel P. Berrange
On Thu, Jun 16, 2016 at 09:05:20AM +0100, Dr. David Alan Gilbert wrote: > * Stefan Berger (stef...@linux.vnet.ibm.com) wrote: > > On 06/15/2016 03:30 PM, Dr. David Alan Gilbert wrote: > > > > > > So what was the multi-instance vTPM proxy driver patch set about? > > > > That's for containers. >

[Qemu-devel] [PATCH v2 00/40] Split up the trace-events file

2016-06-16 Thread Daniel P. Berrange
This is a followup to: v1: https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg02537.html To quote Peter: pm215: "trace-events: causing merge conflicts since 2010" There's really no good reason why we should continue to suffer from this. Even if the trace tool generator can't yet gener

[Qemu-devel] [PATCH v2 04/40] trace: split out trace events for io/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the io/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + io/trace-events | 63 + trace-events| 62 3 f

[Qemu-devel] [PATCH v2 01/40] trace: add build framework for merging trace-events files

2016-06-16 Thread Daniel P. Berrange
Switch make rules over to use trace-events-all as the master trace events input file. Add rule that will construct trace-events-all from $(trace-events-y). Signed-off-by: Daniel P. Berrange --- .gitignore | 1 + Makefile| 2 +- Makefile.objs | 4 Makefile.targe

[Qemu-devel] [PATCH v2 06/40] trace: split out trace events for block/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the block/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + block/trace-events | 116 + trace-events | 115 --

[Qemu-devel] [PATCH v2 03/40] trace: split out trace events for crypto/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the crypto/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + crypto/trace-events | 19 +++ trace-events| 18 -- 3 files changed, 20 insertions(+), 18 deletions(-) create mode

[Qemu-devel] [PATCH v2 02/40] trace: split out trace events for util/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the util/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + trace-events | 12 util/trace-events | 13 + 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 util/trace-e

[Qemu-devel] [PATCH v2 08/40] trace: split out trace events for hw/char/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/char/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/char/trace-events | 49 + trace-events | 48

[Qemu-devel] [PATCH v2 05/40] trace: split out trace events for migration/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the migration/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + migration/trace-events | 208 + trace-events | 207 --

[Qemu-devel] [PATCH v2 16/40] trace: split out trace events for hw/nvram/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/nvram/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/nvram/trace-events | 10 ++ trace-events | 9 - 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 hw/

[Qemu-devel] [PATCH v2 11/40] trace: split out trace events for hw/virtio/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/virtio/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/virtio/trace-events | 16 trace-events | 14 -- 3 files changed, 17 insertions(+), 14 deletions(-) create

[Qemu-devel] [PATCH v2 07/40] trace: split out trace events for hw/block/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/block/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/block/trace-events | 17 + trace-events | 16 3 files changed, 18 insertions(+), 16 deletions(-) create

[Qemu-devel] [PATCH v2 09/40] trace: split out trace events for hw/intc/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/intc/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/intc/trace-events | 82 trace-events | 81 --

[Qemu-devel] [PATCH v2 12/40] trace: split out trace events for hw/audio/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/audio/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/audio/trace-events | 19 +++ trace-events | 18 -- 3 files changed, 20 insertions(+), 18 deletions(-) cre

[Qemu-devel] [PATCH v2 17/40] trace: split out trace events for hw/display/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/display/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/display/trace-events | 122 trace-events| 121 ---

[Qemu-devel] [PATCH v2 13/40] trace: split out trace events for hw/misc/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/misc/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/misc/trace-events | 52 trace-events | 51 --

[Qemu-devel] [PATCH v2 10/40] trace: split out trace events for hw/net/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/net/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/net/trace-events | 272 trace-events| 271 ---

[Qemu-devel] [PATCH v2 15/40] trace: split out trace events for hw/scsi/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/scsi/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/scsi/trace-events | 204 +++ trace-events | 203

[Qemu-devel] [PATCH v2 19/40] trace: split out trace events for hw/timer/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/timer/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/timer/trace-events | 51 +++ trace-events | 50 ---

[Qemu-devel] [PATCH v2 18/40] trace: split out trace events for hw/input/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/input/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/input/trace-events | 25 + trace-events | 24 3 files changed, 26 insertions(+), 24 delet

[Qemu-devel] [PATCH v2 21/40] trace: split out trace events for hw/sparc/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/sparc/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/sparc/trace-events | 11 +++ trace-events | 10 -- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644

[Qemu-devel] [PATCH v2 23/40] trace: split out trace events for hw/isa/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/isa/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/isa/trace-events | 9 + trace-events| 8 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 hw/isa/trace-eve

[Qemu-devel] [PATCH v2 25/40] trace: split out trace events for hw/9pfs/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/9pfs/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/9pfs/trace-events | 47 +++ trace-events | 46 -- 3 f

[Qemu-devel] [PATCH v2 14/40] trace: split out trace events for hw/usb/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/usb/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/usb/trace-events | 268 trace-events| 267 ---

[Qemu-devel] [PATCH v2 28/40] trace: split out trace events for hw/s390x/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/s390x/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/s390x/trace-events | 15 +++ trace-events | 14 -- 3 files changed, 16 insertions(+), 14 deletions(-) create mode

[Qemu-devel] [PATCH v2 27/40] trace: split out trace events for hw/pci/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/pci/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/pci/trace-events | 9 + trace-events| 8 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 hw/pci/trace-eve

[Qemu-devel] [PATCH v2 29/40] trace: split out trace events for hw/vfio/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/vfio/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/vfio/trace-events | 116 +++ trace-events | 116

[Qemu-devel] [PATCH v2 26/40] trace: split out trace events for hw/ppc/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/ppc/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/ppc/trace-events | 39 +++ trace-events| 38 -- 3 files changed, 40 ins

[Qemu-devel] [PATCH v2 22/40] trace: split out trace events for hw/sd/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/sd/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/sd/trace-events | 5 + trace-events | 4 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 hw/sd/trace-events diff --gi

[Qemu-devel] [PATCH v2 35/40] trace: split out trace events for net/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the net/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + net/trace-events | 4 trace-events | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 net/trace-events diff --git a/Makefile

[Qemu-devel] [PATCH v2 33/40] trace: split out trace events for ui/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the ui/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + trace-events| 47 --- ui/trace-events | 48 3 files changed, 49 i

[Qemu-devel] [PATCH v2 34/40] trace: split out trace events for audio/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the audio/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + audio/trace-events | 17 + trace-events | 16 3 files changed, 18 insertions(+), 16 deletions(-) create mode 100644

[Qemu-devel] [PATCH v2 20/40] trace: split out trace events for hw/dma/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/dma/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/dma/trace-events | 32 trace-events| 31 --- 3 files changed, 33 insertions(+), 31

[Qemu-devel] [PATCH v2 36/40] trace: split out trace events for target-sparc/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the target-sparc/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + target-sparc/trace-events | 28 trace-events | 27 --- 3 files changed, 29 i

[Qemu-devel] [PATCH v2 24/40] trace: split out trace events for hw/i386/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/i386/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/i386/trace-events | 12 trace-events | 11 --- 3 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 hw

[Qemu-devel] [PATCH v2 37/40] trace: split out trace events for target-s390x/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the target-s390x/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + target-s390x/trace-events | 21 + trace-events | 21 - 3 files changed, 22 insertions(+),

[Qemu-devel] [PATCH v2 38/40] trace: split out trace events for target-ppc/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the target-ppc/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + target-ppc/trace-events | 5 + trace-events| 4 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 target-pp

[Qemu-devel] [PATCH v2 30/40] trace: split out trace events for hw/acpi/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/acpi/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + hw/acpi/trace-events | 18 ++ trace-events | 17 - 3 files changed, 19 insertions(+), 17 deletions(-) create mo

[Qemu-devel] [PATCH v2 39/40] trace: split out trace events for qom/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the qom/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs| 1 + qom/trace-events | 5 + trace-events | 4 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 qom/trace-events diff --git a/Makefi

Re: [Qemu-devel] [Qemu-block] [PATCH 4/6] block: Make bdrv_load/save_vmstate coroutine_fns

2016-06-16 Thread Stefan Hajnoczi
On Fri, Jun 10, 2016 at 06:05:20PM +0200, Kevin Wolf wrote: > +static int coroutine_fn > +bdrv_co_rw_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos, > + bool is_read) > +{ > +BlockDriver *drv = bs->drv; > + > +if (!drv) { > +return -ENOMEDIUM; > +

[Qemu-devel] [PATCH v2 40/40] trace: split out trace events for linux-user/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the linux-user/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + linux-user/trace-events | 12 trace-events| 11 --- 3 files changed, 13 insertions(+), 11 deletions(-) create mo

Re: [Qemu-devel] [PATCH 0/2] vhost-user: release chardev on cleanup

2016-06-16 Thread Marc-André Lureau
ping On Wed, Apr 6, 2016 at 5:38 PM, wrote: > From: Marc-André Lureau > > The following 2 one-liners remove the chardev from the vhost-user > netdev it is attached to. This prevents from further reuse of the > chardev that would likely fail to setup again with the slave. > > Related to: > https

Re: [Qemu-devel] [Qemu-block] [PATCH 0/6] block: bdrv_load/save_vmstate() cleanups

2016-06-16 Thread Stefan Hajnoczi
On Fri, Jun 10, 2016 at 06:05:16PM +0200, Kevin Wolf wrote: > This series contains a few cleanups with respect to the vmstate I/O functions. > Apart from making the interface more consistent (writes were already vectored, > but not reads), this makes use of the new byte-based .bdrv_co_preadv/pwrite

[Qemu-devel] [PATCH v2 31/40] trace: split out trace events for hw/arm/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/arm/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/arm/trace-events | 4 trace-events| 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 hw/arm/trace-events diff -

[Qemu-devel] [PATCH 3/3] input-linux: better capability checks, merge input_linux_event_{mouse, keyboard}

2016-06-16 Thread Gerd Hoffmann
Improve capability checks (count keys and buttons), store results. Merge the input_linux_event_mouse and input_linux_event_keyboard functions into one, dispatch into input_linux_handle_mouse and input_linux_handle_keyboard depending on device capabilities. Allow calling both handle functions, so

[Qemu-devel] [PATCH v2 32/40] trace: split out trace events for hw/alpha/ directory

2016-06-16 Thread Daniel P. Berrange
Move all trace-events for files in the hw/alpha/ directory to their own file. Signed-off-by: Daniel P. Berrange --- Makefile.objs | 1 + hw/alpha/trace-events | 4 trace-events | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 hw/alpha/trace-even

[Qemu-devel] [PATCH 2/3] input-linux: factor out input_linux_handle_keyboard

2016-06-16 Thread Gerd Hoffmann
No functional change. Signed-off-by: Gerd Hoffmann --- ui/input-linux.c | 103 +-- 1 file changed, 54 insertions(+), 49 deletions(-) diff --git a/ui/input-linux.c b/ui/input-linux.c index a932290..97f 100644 --- a/ui/input-linux.c +++ b/ui

Re: [Qemu-devel] [PATCH v5 01/11] qdict: implement a qdict_crumple method for un-flattening a dict

2016-06-16 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Thu, Jun 09, 2016 at 03:20:47PM +0200, Markus Armbruster wrote: >> I apologize for the lateness of this review. >> >> "Daniel P. Berrange" writes: >> >> > The qdict_flatten() method will take a dict whose elements are >> > further nested dicts/lists and flatte

Re: [Qemu-devel] Migration ToDo list (a.k.a. Rant)

2016-06-16 Thread Markus Armbruster
Juan Quintela writes: > Eric Blake wrote: >> On 05/04/2016 05:20 AM, Juan Quintela wrote: >>> - migration capabilities and parameters >>> this is a mess. Not, is worse than that. I don't know who is to >>> blame here, but something needs to be done: >>> >>> void qmp_migrate_set_param

Re: [Qemu-devel] [PATCH 2/2] msmouse: send short messages if possible.

2016-06-16 Thread Gerd Hoffmann
Hi, > > -if (mouse->outlen <= sizeof(mouse->outbuf) - 4) { > > +if (mouse->outlen <= sizeof(mouse->outbuf) - count) { > > /* We always send the packet of, so that we do not have to keep > > track > > of previous state of the middle button. This can potentially > >

Re: [Qemu-devel] [PATCH 0/6] block: bdrv_load/save_vmstate() cleanups

2016-06-16 Thread Kevin Wolf
Am 10.06.2016 um 18:05 hat Kevin Wolf geschrieben: > This series contains a few cleanups with respect to the vmstate I/O functions. > Apart from making the interface more consistent (writes were already vectored, > but not reads), this makes use of the new byte-based .bdrv_co_preadv/pwritev > callb

[Qemu-devel] [PATCH 0/3] input-linux: improve device handling

2016-06-16 Thread Gerd Hoffmann
Hi, Patches 1+2 just factor out code to make patch 3 smaller and easier to review. Patch 3 refines the device detection and also allows devices to be treated as both mouse and keyboard. The later should improve handling of programmable mice which can also send keyboard events. cheers, Gerd

[Qemu-devel] [PATCH 1/3] input-linux: factor out input_linux_handle_mouse

2016-06-16 Thread Gerd Hoffmann
No functional change. Signed-off-by: Gerd Hoffmann --- ui/input-linux.c | 102 +-- 1 file changed, 53 insertions(+), 49 deletions(-) diff --git a/ui/input-linux.c b/ui/input-linux.c index 1d33b5c..a932290 100644 --- a/ui/input-linux.c +++ b/ui

Re: [Qemu-devel] [PATCH 2/3] block: fix race in bdrv_co_discard with drive-mirror

2016-06-16 Thread Vladimir Sementsov-Ogievskiy
On 16.06.2016 09:58, Denis V. Lunev wrote: Actually we must set dirty bitmap dirty after we have written all our zeroes for correct processing in drive mirror code. In the other case we can face not zeroes in this dirty area there in mirror_iteration. Signed-off-by: Denis V. Lunev CC: Vladimir

Re: [Qemu-devel] [PATCH v5 02/11] qapi: allow QmpInputVisitor to auto-cast types

2016-06-16 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Thu, Jun 09, 2016 at 04:03:50PM +0200, Markus Armbruster wrote: >> "Daniel P. Berrange" writes: >> >> > Currently the QmpInputVisitor assumes that all scalar >> > values are directly represented as their final types. >> > ie it assumes an 'int' is using QInt, a

Re: [Qemu-devel] [PATCH 2/3] block: fix race in bdrv_co_discard with drive-mirror

2016-06-16 Thread Denis V. Lunev
On 06/16/2016 12:34 PM, Vladimir Sementsov-Ogievskiy wrote: On 16.06.2016 09:58, Denis V. Lunev wrote: Actually we must set dirty bitmap dirty after we have written all our zeroes for correct processing in drive mirror code. In the other case we can face not zeroes in this dirty area there in mi

  1   2   3   4   5   >