Re: [Qemu-devel] [RFC PATCH 01/14] docs: block replication's description

2015-03-02 Thread Wen Congyang
On 02/12/2015 06:26 PM, f...@redhat.com wrote: > On Thu, 02/12 18:11, Wen Congyang wrote: >> On 02/12/2015 05:44 PM, Fam Zheng wrote: >>> On Thu, 02/12 17:33, Wen Congyang wrote: On 02/12/2015 04:44 PM, Fam Zheng wrote: > On Thu, 02/12 15:40, Wen Congyang wrote: >> On 02/12/2015 03:21

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-03-02 Thread Fam Zheng
On Tue, 03/03 08:20, Gerd Hoffmann wrote: > On Sa, 2015-02-28 at 14:47 +0800, Fam Zheng wrote: > > Enjoy, and feel free to make comments! > > Very nice. > > Search by path (files touched by patch) would be nice, i.e. something > like "path:ui/vnc*" to see all patches touching vnc code. Interesti

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-03-02 Thread Gerd Hoffmann
On Sa, 2015-02-28 at 14:47 +0800, Fam Zheng wrote: > Enjoy, and feel free to make comments! Very nice. Search by path (files touched by patch) would be nice, i.e. something like "path:ui/vnc*" to see all patches touching vnc code. Also recognizing more tags (such as tested-by, see here for an ex

Re: [Qemu-devel] [PATCH v2] migration: Convert 'status' of MigrationInfo to use an enum type

2015-03-02 Thread zhanghailiang
On 2015/3/2 23:56, Eric Blake wrote: On 02/27/2015 07:54 PM, zhanghailiang wrote: On 2015/2/28 0:48, Eric Blake wrote: On 02/26/2015 11:19 PM, zhanghailiang wrote: The original 'status' is an open-coded 'str' type, convert it to use an enum type. +# @MigState: Do we have to abbreviate? I

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-03-02 Thread Fam Zheng
On Tue, 03/03 07:14, Stefan Weil wrote: > Am 28.02.2015 um 07:47 schrieb Fam Zheng: > >Hello, everyone > > > >I'm glad to announce the fresh Patchew server deployment: > > > > http://qemu.patchew.org/ > > > >The mission of this project is to help identify obvious defects (coding > >style, > >c

[Qemu-devel] [RFC] introduce bitmap to bdrv_commit to track dirty sector

2015-03-02 Thread Zhang Haoyu
Hi, If introducing bitmap to bdrv_commit to track dirty sector, could we implement guest non-disruption while performing commit? Thanks, Zhang Haoyu

Re: [Qemu-devel] [BUG] Balloon malfunctions with memory hotplug

2015-03-02 Thread zhanghailiang
On 2015/3/2 14:22, Amit Shah wrote: On (Fri) 27 Feb 2015 [12:09:20], zhanghailiang wrote: On 2015/2/27 3:26, Luiz Capitulino wrote: Hello, Reproducer: 1. Start QEMU with balloon and memory hotplug support: # qemu [...] -m 1G,slots=2,maxmem=2G -balloon virtio 2. Check balloon size: (qemu) i

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-03-02 Thread Stefan Weil
Am 28.02.2015 um 07:47 schrieb Fam Zheng: Hello, everyone I'm glad to announce the fresh Patchew server deployment: http://qemu.patchew.org/ The mission of this project is to help identify obvious defects (coding style, compiling, etc.) of posted patches. Follow the green "passed" or red

Re: [Qemu-devel] [PATCH v6 14/15] spapr_pci: enable basic hotplug operations

2015-03-02 Thread David Gibson
On Thu, Feb 26, 2015 at 09:11:14PM -0600, Michael Roth wrote: > This enables hotplug of PCI devices to a PHB. Upon hotplug we > generate the OF-nodes required by PAPR specification and > IEEE 1275-1994 "PCI Bus Binding to Open Firmware" for the > device. > > We associate the corresponding FDT for

Re: [Qemu-devel] [PATCH RFC 5/5] savevm: Replace error_report() & error_free() with error_report_err()

2015-03-02 Thread zhanghailiang
On 2015/3/2 18:26, Markus Armbruster wrote: zhanghailiang writes: Signed-off-by: zhanghailiang --- savevm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index ce2b6a2..c4f8c39 100644 --- a/savevm.c +++ b/savevm.c @@ -932,8 +932,7 @@ int qemu_loa

Re: [Qemu-devel] [PATCH RFC 0/5] Another patchset try to clean up around qerror_report_err()

2015-03-02 Thread zhanghailiang
On 2015/3/2 18:01, Markus Armbruster wrote: zhanghailiang writes: Hi, I have noticed Markus's previous patchset "Clean up around error_get_pretty(), qerror_report_err()". This is another patch series trying to do the same thing. I'm not sure if he has missed this places or these modifies are

Re: [Qemu-devel] [PATCH v6 07/15] spapr_rtas: add ibm, configure-connector RTAS interface

2015-03-02 Thread David Gibson
On Mon, Mar 02, 2015 at 10:40:16PM -0600, Michael Roth wrote: > Quoting David Gibson (2015-03-02 01:02:46) > > On Thu, Feb 26, 2015 at 09:11:07PM -0600, Michael Roth wrote: > > > This interface is used to fetch an OF device-tree nodes that describes a > > > newly-attached device to guest. It is cal

Re: [Qemu-devel] [PATCH v6 08/15] spapr_events: re-use EPOW event infrastructure for hotplug events

2015-03-02 Thread David Gibson
On Thu, Feb 26, 2015 at 09:11:08PM -0600, Michael Roth wrote: > From: Nathan Fontenot > > This extends the data structures currently used to report EPOW events to > guests via the check-exception RTAS interfaces to also include event types > for hotplug/unplug events. > > This is currently undoc

Re: [Qemu-devel] [PATCH v6 10/15] spapr_drc: add spapr_drc_populate_dt()

2015-03-02 Thread David Gibson
On Thu, Feb 26, 2015 at 09:11:10PM -0600, Michael Roth wrote: > This function handles generation of ibm,drc-* array device tree > properties to describe DRC topology to guests. This will by used > by the guest to direct RTAS calls to manage any dynamic resources > we associate with a particular DR

[Qemu-devel] [PULL 1/2] bootdevice: check boot order argument validation before vm running

2015-03-02 Thread arei.gonglei
From: Gonglei Either 'once' option or 'order' option can take effect for -boot at the same time, that is say initial startup processing can check only one. And pc.c's set_boot_dev() fails when its boot order argument is invalid. This patch provide a solution fix this problem: 1. If "once" is gi

[Qemu-devel] [PULL 2/2] bootdevice: add check in restore_boot_order()

2015-03-02 Thread arei.gonglei
From: Gonglei qemu_boot_set() can't fail in restore_boot_order(), then simply assert it doesn't fail, by passing &error_abort if boot_set_handler set. Suggested-by: Markus Armbruster Signed-off-by: Gonglei Reviewed-by: Markus Armbruster --- bootdevice.c |4 +++- 1 file changed, 3 inserti

[Qemu-devel] [PULL 0/2] bootdevice patches

2015-03-02 Thread arei.gonglei
From: Gonglei The following changes since commit 0856579cac2f1dacecd847cfcd89680d26ff78f5: Revert "Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging" (2015-03-03 00:29:17 +) are available in the git repository at: https://github.com/gongleiarei/qemu.gi

Re: [Qemu-devel] [PATCH v6 07/15] spapr_rtas: add ibm, configure-connector RTAS interface

2015-03-02 Thread Michael Roth
Quoting David Gibson (2015-03-02 01:02:46) > On Thu, Feb 26, 2015 at 09:11:07PM -0600, Michael Roth wrote: > > This interface is used to fetch an OF device-tree nodes that describes a > > newly-attached device to guest. It is called multiple times to walk the > > device-tree node and fetch individu

Re: [Qemu-devel] [PATCH v3 02/10] acpi, mem-hotplug: Add acpi_memory_slot_status() to get MemStatus.

2015-03-02 Thread Zhu Guihua
On 03/02/2015 01:31 AM, Michael S. Tsirkin wrote: On Thu, Feb 26, 2015 at 09:16:44AM +0800, Zhu Guihua wrote: From: Tang Chen Add a new API named acpi_memory_slot_status() to obtain a single memory slot status. Doing this is because this procedure will be used by other functions in the next c

Re: [Qemu-devel] [PATCH v4 05/11] block: Move BDS close notifiers into BB

2015-03-02 Thread Fam Zheng
On Mon, 03/02 10:18, Max Reitz wrote: > On 2015-02-27 at 21:55, Fam Zheng wrote: > >On Fri, 02/27 11:43, Max Reitz wrote: > >> static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev, DeviceState > >> *dev, > >> Error **errp) > >> { > >>@@ -763,12 +794,26 @@

Re: [Qemu-devel] [PATCH] qxl: drop update_displaychangelistener call for secondary qxl devices

2015-03-02 Thread Brad Campbell
On 03/03/15 00:09, Gerd Hoffmann wrote: Commit 3dcadce5076d4b42fa395c39662d65e050b77784 added three update_displaychangelistener call sites: Two for primary qxl cards, when entering/leaving vga mode, which are correct. One for secondary qxl cards, which is wrong because we don't register a disp

Re: [Qemu-devel] [PULL 00/11] X86 patches

2015-03-02 Thread Peter Maydell
On 3 March 2015 at 02:10, Andreas Färber wrote: > Am 02.03.2015 um 17:22 schrieb Peter Maydell: >> On 3 March 2015 at 01:18, Andreas Färber wrote: >>> I had some of Eduardo's alternative patches queued already and will look >>> into fixing this mess... >> >> I can just revert the whole set if you

[Qemu-devel] [PATCH target-arm v2 09/15] char: cadence_uart: Clean up variable names

2015-03-02 Thread Peter Crosthwaite
In preparation for migrating the state struct and type cast macro to a public header. The acronym "UART" on it's own is not specific enough to be used in a more global namespace so preface with "cadence". Fix the capitalisation of "uart" in the state type while touching the typename. Preface macros

[Qemu-devel] [PATCH target-arm v2 06/15] net: cadence_gem: Clean up variable names

2015-03-02 Thread Peter Crosthwaite
In preparation for migrating the state struct and type cast macro to a public header. The acronym "GEM" on it's own is not specific enough to be used in a more global namespace so preface with "cadence". Fix the capitalisation of "gem" in the state type while touching the typename. Also preface the

[Qemu-devel] [PATCH target-arm v2 00/15] Next Generation Xilinx Zynq SoC

2015-03-02 Thread Peter Crosthwaite
Hi Peter and all, Xilinx's next gen SoC has been announced. This series adds a SoC and board. Series start with addition of ARM cortex A53 support (P1 and P2). The Soc skeleton is then added with GIC, EMACs and UARTs are added. The pre-existing models for GEM and UART are not SoC friendly (no vis

[Qemu-devel] [PATCH target-arm v2 10/15] char: cadence_uart: Split state struct and type into header

2015-03-02 Thread Peter Crosthwaite
To allow using the device with modern SoC programming conventions. The state struct needs to be visible to embed the device in SoC containers. Reviewed-by: Alistair Francis Signed-off-by: Peter Crosthwaite --- changed since v1: Fix /* Public */ comment spacing (Alistair review) hw/char/cadence

[Qemu-devel] [PATCH target-arm v2 15/15] arm: xlnx-zynqmp: Add PSCI setup

2015-03-02 Thread Peter Crosthwaite
Use SMC PSCI, with the standard policy of secondaries starting in power-off. Signed-off-by: Peter Crosthwaite --- changed since v1: Add &error_abort to property setter calls hw/arm/xlnx-zynqmp.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqm

Re: [Qemu-devel] [PATCH V13 3/4] pc: add a Virtual Machine Generation ID device

2015-03-02 Thread David Gibson
On Mon, 2 Mar 2015 22:06:22 +0100 "Michael S. Tsirkin" wrote: > On Mon, Mar 02, 2015 at 06:05:43PM +0100, Igor Mammedov wrote: > > On Sun, 1 Mar 2015 16:09:33 +0100 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Feb 25, 2015 at 05:08:52PM +, Igor Mammedov wrote: > > > > Based on Microsof

[Qemu-devel] [PATCH target-arm v2 01/15] target-arm: cpu64: Factor out ARM cortex init

2015-03-02 Thread Peter Crosthwaite
In preparation for support for Cortex a53. Use "axx" to describe the shareable features. Some of the CP15 registers (such as ACTLR) are specific to implementation, but we currently just RAZ them so continue with that as the policy for all cortex A processors under a shared definition. The cache si

[Qemu-devel] [PATCH target-arm v2 03/15] arm: Introduce Xilinx ZynqMP SoC

2015-03-02 Thread Peter Crosthwaite
With quad Cortex-A53 CPUs. Signed-off-by: Peter Crosthwaite --- changed since v1: Add &error_abort to CPU child adder call. default-configs/aarch64-softmmu.mak | 2 +- hw/arm/Makefile.objs| 1 + hw/arm/xlnx-zynqmp.c| 71 + in

[Qemu-devel] [PATCH target-arm v2 02/15] target-arm: cpu64: Add support for cortex-a53

2015-03-02 Thread Peter Crosthwaite
Similar to a53, but with different L1 I cache policy, phys addr size and different cache geometries. The cache sizes is implementation configurable, but use these values (from Xilinx MPSoC) as a default until cache size configurability is added. Signed-off-by: Peter Crosthwaite --- target-arm/cp

[Qemu-devel] [PATCH target-arm v2 07/15] net: cadence_gem: Split state struct and type into header

2015-03-02 Thread Peter Crosthwaite
To allow using the device with modern SoC programming conventions. The state struct needs to be visible to embed the device in SoC containers. Reviewed-by: Alistair Francis Signed-off-by: Peter Crosthwaite --- changed since v1: Fix /* Public */ comment spacing (Alistair review) hw/net/cadence_

[Qemu-devel] [PATCH target-arm v2 04/15] arm: xlnx-zynqmp: Add GIC

2015-03-02 Thread Peter Crosthwaite
And connect IRQ outputs to the CPUs. Reviewed-by: Alistair Francis Signed-off-by: Peter Crosthwaite --- hw/arm/xlnx-zynqmp.c | 19 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 21 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index

[Qemu-devel] [PATCH target-arm v2 12/15] arm: Add xlnx-ep108 machine

2015-03-02 Thread Peter Crosthwaite
Add a machine model for the Xilinx ZynqMP SoC EP108 board. Signed-off-by: Peter Crosthwaite --- Chaned since v1: Change board name to ep108 hw/arm/Makefile.objs | 2 +- hw/arm/xlnx-ep108.c | 52 2 files changed, 53 insertions(+), 1 deletion

[Qemu-devel] [PATCH target-arm v2 13/15] arm: xilinx-ep108: Add external RAM

2015-03-02 Thread Peter Crosthwaite
Zynq MPSoC supports external DDR RAM. Add a RAM at 0 to the model. Signed-off-by: Peter Crosthwaite --- changed since v1: Add ram size clamps and warnings hw/arm/xlnx-ep108.c | 21 + 1 file changed, 21 insertions(+) diff --git a/hw/arm/xlnx-ep108.c b/hw/arm/xlnx-ep108.c ind

[Qemu-devel] [PATCH target-arm v2 05/15] arm: xlnx-zynqmp: Connect CPU Timers to GIC

2015-03-02 Thread Peter Crosthwaite
Connect the GPIO outputs from the individual CPUs for the timers to the GIC. Signed-off-by: Peter Crosthwaite --- hw/arm/xlnx-zynqmp.c | 16 1 file changed, 16 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index b9bf8db..dc84192 100644 --- a/hw/arm/xlnx

Re: [Qemu-devel] [PATCH] Revert "target-ppc: Create versionless CPU class per family if KVM"

2015-03-02 Thread Alexey Kardashevskiy
On 03/03/2015 12:51 AM, Alexander Graf wrote: On 02.03.15 14:42, Andreas Färber wrote: Am 02.03.2015 um 14:37 schrieb Alexander Graf: On 01.03.15 01:31, Andreas Färber wrote: This reverts commit 5b79b1cadd3e565b6d1a5ba59764bd47af58b271 to avoid double-registration of types: Registering `

[Qemu-devel] [PULL 3/6] target-tricore: Add instructions of RRR2 opcode format

2015-03-02 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 149 +++ target-tricore/tricore-opcodes.h | 2 +- 2 files changed, 136 insertions(+), 15 deletions(-) diff --git a/target-tricore/translate.c b/target-tr

[Qemu-devel] [PULL 5/6] target-tricore: Add instructions of RRR1 opcode format, which have 0x43 as first opcode

2015-03-02 Thread Bastian Koppelmann
Add helpers: * madd64_q_ssov: multiply two 32 bit q-format number, add them with a 64 bit q-format number and saturate. * madd32_q_add_ssov: add two 64 bit q-format numbers and return a 32 bit result. * maddr_q_ssov: multiplay two 32 bit q-f

[Qemu-devel] [PULL 2/6] target-tricore: fix msub32_suov return wrong results

2015-03-02 Thread Bastian Koppelmann
If the signed result of the multiplication overflows, we would get a negative value, which would result in a addition instead of a subtraction. Now we do the overflow calculation and saturation by hand instead of using suov32_neg. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson

[Qemu-devel] [PULL 1/6] target-tricore: Fix RLC_ADDI, RLC_ADDIH using wrong microcode helper

2015-03-02 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-tricore/translate.c b/target-tricore/translate.c index 996435d..0f30508 100644 --- a/target-tricore/translate.c +++ b/tar

[Qemu-devel] [PULL 6/6] target-tricore: Add instructions of RRR1 opcode format, which have 0xc3 as first opcode

2015-03-02 Thread Bastian Koppelmann
Add helpers helper_addsur_h/_ssov which adds one halfword and subtracts one halfword, rounds / and saturates each half word independently. Add microcode helper functions: * gen_maddsu_h/sus_h: multiply two halfwords left justified and add to the first one word and sub

[Qemu-devel] [PULL 4/6] target-tricore: Add instructions of RRR1 opcode format, which have 0x83 as first opcode

2015-03-02 Thread Bastian Koppelmann
Add helpers: * add64_ssov: adds two 64 bit values and saturates the result. * addr_h/_ssov: adds two halfwords with two words in q-format with rounding / and saturates each result independetly. Add microcode generator: * gen_add64_d: adds two 64 bit values. * ge

[Qemu-devel] [PULL 0/6] tricore patches for 2.3

2015-03-02 Thread Bastian Koppelmann
The following changes since commit b8a173b25c887a606681fc35a46702c164d5b2d0: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-03-02 14:25:48 +) are available in the git repository at: https://github.com/bkoppelmann/qemu-tricore-upstream.git tags/

Re: [Qemu-devel] [PATCH v19 0/2] EEH Support for VFIO Devices

2015-03-02 Thread Gavin Shan
On Fri, Feb 20, 2015 at 03:58:51PM +1100, Gavin Shan wrote: agraf, could you help taking a look on this when you have available time? Thanks, Gavin >The series of patches adds support EEH for VFIO PCI devices on sPAPR platform. >It requires corresponding host kernel support, which was merged dur

[Qemu-devel] [PATCH 2/2] kvm_stat: add kvm_stat.1 man page

2015-03-02 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- Makefile | 9 scripts/kvm/kvm_stat.texi | 55 +++ 2 files changed, 64 insertions(+) create mode 100644 scripts/kvm/kvm_stat.texi diff --git a/Makefile b/Makefile index 6817c6f..509e9ad 1006

[Qemu-devel] [PATCH v2 00/17] block: transactionless incremental backup series

2015-03-02 Thread John Snow
New topic, new version, same great incremental backup taste. This series relies on [Qemu-devel] [PULL 30/69] blkdebug: fix "once" rule, part of Stefan's 69 patch pull request submitted 2015-02-27. This patchset enables the in-memory part of the incremental backup feature, without transactional su

Re: [Qemu-devel] [PATCH target-arm v1 00/15] Next Generation Xilinx Zynq SoC

2015-03-02 Thread Alistair Francis
On Tue, Mar 3, 2015 at 9:05 AM, Peter Crosthwaite wrote: > On Mon, Mar 2, 2015 at 2:53 PM, Alistair Francis > wrote: >> On Tue, Mar 3, 2015 at 6:06 AM, Peter Crosthwaite >> wrote: >>> On Thu, Feb 26, 2015 at 7:38 PM, Alistair Francis >>> wrote: On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosth

[Qemu-devel] [PATCH 1/2] kvm_stat: add column headers to text UI

2015-03-02 Thread Stefan Hajnoczi
The curses user interface shows both the accumulated total and the current event counts. Add column headers so it's clear what the numbers mean. Signed-off-by: Stefan Hajnoczi --- scripts/kvm/kvm_stat | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/kvm/kvm_stat b

[Qemu-devel] [PATCH 0/2] kvm_stat: add man page and tui column headers

2015-03-02 Thread Stefan Hajnoczi
This series makes kvm_stat easier to learn for newcomers by adding a man page and text UI column headers. Stefan Hajnoczi (2): kvm_stat: add column headers to text UI kvm_stat: add kvm_stat.1 man page Makefile | 9 scripts/kvm/kvm_stat | 5 - scripts/kvm/

Re: [Qemu-devel] [PATCH target-arm v1 13/15] arm: xilinx-zynq-mp-generic: Add external RAM

2015-03-02 Thread Alistair Francis
On Tue, Mar 3, 2015 at 8:59 AM, Peter Crosthwaite wrote: > On Mon, Mar 2, 2015 at 2:38 PM, Alistair Francis > wrote: >> On Tue, Mar 3, 2015 at 5:40 AM, Peter Crosthwaite >> wrote: >>> On Mon, Feb 23, 2015 at 6:24 PM, Alistair Francis >>> wrote: On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosth

[Qemu-devel] [PATCH v2 17/17] iotests: add incremental backup failure recovery test

2015-03-02 Thread John Snow
To test the failure case, we modify iotests.py to allow us to specify that we'd like to allow failures when we wait for block job events. Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/124| 57 ++- tests/qemu-iotests/124.ou

[Qemu-devel] [PATCH v2 10/17] qmp: add block-dirty-bitmap-clear

2015-03-02 Thread John Snow
Add bdrv_clear_dirty_bitmap and a matching QMP command, qmp_block_dirty_bitmap_clear that enables a user to reset the bitmap attached to a drive. This allows us to reset a bitmap in the event of a full drive backup. Reviewed-by: Max Reitz Signed-off-by: John Snow --- block.c | 8

[Qemu-devel] [PATCH v2 16/17] iotests: add simple incremental backup case

2015-03-02 Thread John Snow
Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/124 | 122 + tests/qemu-iotests/124.out | 4 +- 2 files changed, 124 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124 index 7985cd1.

[Qemu-devel] [PATCH v2 02/17] qapi: Add optional field "name" to block dirty bitmap

2015-03-02 Thread John Snow
From: Fam Zheng This field will be set for user created dirty bitmap. Also pass in an error pointer to bdrv_create_dirty_bitmap, so when a name is already taken on this BDS, it can report an error message. This is not global check, two BDSes can have dirty bitmap with a common name. Implemented

[Qemu-devel] [PATCH v2 08/17] block: Add bitmap successors

2015-03-02 Thread John Snow
A bitmap successor is an anonymous BdrvDirtyBitmap that is intended to be created just prior to a sensitive operation (e.g. Incremental Backup) that can either succeed or fail, but during the course of which we still want a bitmap tracking writes. On creating a successor, we "freeze" the parent bi

[Qemu-devel] [PATCH v2 09/17] qmp: Add support of "dirty-bitmap" sync mode for drive-backup

2015-03-02 Thread John Snow
For "dirty-bitmap" sync mode, the block job will iterate through the given dirty bitmap to decide if a sector needs backup (backup all the dirty clusters and skip clean ones), just as allocation conditions of "top" sync mode. Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Rei

[Qemu-devel] [PATCH v2 15/17] iotests: add invalid input incremental backup tests

2015-03-02 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/qemu-iotests/124 | 89 ++ tests/qemu-iotests/124.out | 5 +++ tests/qemu-iotests/group | 1 + 3 files changed, 95 insertions(+) create mode 100644 tests/qemu-iotests/124 create mode 10

[Qemu-devel] [PATCH v2 13/17] block: Ensure consistent bitmap function prototypes

2015-03-02 Thread John Snow
We often don't need the BlockDriverState for functions that operate on bitmaps. Remove it. Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 13 ++--- block/backup.c| 2 +- block/mirror.c| 26 ++ blockdev.c|

[Qemu-devel] [PATCH v2 04/17] qmp: Add block-dirty-bitmap-add and block-dirty-bitmap-remove

2015-03-02 Thread John Snow
The new command pair is added to manage a user created dirty bitmap. The dirty bitmap's name is mandatory and must be unique for the same device, but different devices can have bitmaps with the same names. The granularity is an optional field. If it is not specified, we will choose a default granu

[Qemu-devel] [PATCH v2 12/17] block: add BdrvDirtyBitmap documentation

2015-03-02 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 06b4264..55243f9 100644 --- a/block.c +++ b/block.c @@ -60,11 +60,11 @@ * or enabled. A frozen bitmap can only abdicate() or re

[Qemu-devel] [PATCH v2 07/17] block: Add bitmap disabled status

2015-03-02 Thread John Snow
Add a status indicating the enabled/disabled state of the bitmap. A bitmap is by default enabled, but you can lock the bitmap into a read-only state by setting disabled = true. A previous version of this patch added a QMP interface for changing the state of the bitmap, but it has since been remove

[Qemu-devel] [PATCH v2 14/17] block: Resize bitmaps on bdrv_truncate

2015-03-02 Thread John Snow
Signed-off-by: John Snow --- block.c| 22 include/block/block.h | 1 + include/qemu/hbitmap.h | 10 + util/hbitmap.c | 55 ++ 4 files changed, 88 insertions(+) diff --git a/block.c b/block.c in

[Qemu-devel] [PATCH v2 01/17] docs: incremental backup documentation

2015-03-02 Thread John Snow
Signed-off-by: John Snow --- docs/bitmaps.md | 311 1 file changed, 311 insertions(+) create mode 100644 docs/bitmaps.md diff --git a/docs/bitmaps.md b/docs/bitmaps.md new file mode 100644 index 000..df1c134 --- /dev/null +++ b/docs/b

[Qemu-devel] [PATCH v2 05/17] block: Introduce bdrv_dirty_bitmap_granularity()

2015-03-02 Thread John Snow
This returns the granularity (in bytes) of dirty bitmap, which matches the QMP interface and the existing query interface. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Eric Blake --- block.c | 8 ++-- include/block/block.h | 1 + 2 files changed, 7 insertions(

[Qemu-devel] [PATCH v2 03/17] qmp: Ensure consistent granularity type

2015-03-02 Thread John Snow
We treat this field with a variety of different types everywhere in the code. Now it's just uint32_t. Reviewed-by: Eric Blake Reviewed-by: Max Reitz Signed-off-by: John Snow --- block.c | 11 ++- block/mirror.c| 4 ++-- include/block/block.h | 2 +-

[Qemu-devel] [PATCH v2 11/17] qmp: Add dirty bitmap status fields in query-block

2015-03-02 Thread John Snow
Adds the "disabled" and "frozen" status booleans. Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 2 ++ qapi/block-core.json | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index d969b24..06b4264 1

[Qemu-devel] [PATCH v2 06/17] hbitmap: add hbitmap_merge

2015-03-02 Thread John Snow
We add a bitmap merge operation to assist in error cases where we wish to combine two bitmaps together. This is algorithmically O(bits) provided HBITMAP_LEVELS remains constant. For a full bitmap on a 64bit machine: sum(bits/64^k, k, 0, HBITMAP_LEVELS) ~= 1.01587 * bits We may be able to improve

Re: [Qemu-devel] [PATCH target-arm v1 00/15] Next Generation Xilinx Zynq SoC

2015-03-02 Thread Peter Crosthwaite
On Mon, Mar 2, 2015 at 2:53 PM, Alistair Francis wrote: > On Tue, Mar 3, 2015 at 6:06 AM, Peter Crosthwaite > wrote: >> On Thu, Feb 26, 2015 at 7:38 PM, Alistair Francis >> wrote: >>> On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite >>> wrote: Hi Peter and all, Xilinx's next ge

[Qemu-devel] [PATCH 8/9] MAINTAINERS: add myself as SPARC maintainer

2015-03-02 Thread Mark Cave-Ayland
Acked-by: Peter Maydell Signed-off-by: Mark Cave-Ayland --- MAINTAINERS |3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8c06739..7ef4879 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -159,6 +159,7 @@ F: hw/sh4/ SPARC M: Blue Swirl +M: Mark Cave-Ayla

[Qemu-devel] [PATCH 9/9] sun4u: switch m48t59 NVRAM to MMIO access

2015-03-02 Thread Mark Cave-Ayland
Real sun4u systems memory-map the NVRAM on the (ISA) ebus, so switch over to MMIO from ioport access whilst setting the base year to 1968 as used by Sun systems. This allows all SPARC64 OSs included in my tests to correctly detect the NVRAM IC and read the hardware clock correctly upon boot. Note

[Qemu-devel] [PATCH 3/9] m48t59: add a Nvram interface

2015-03-02 Thread Mark Cave-Ayland
From: Hervé Poussineau Signed-off-by: Hervé Poussineau CC: Andreas Färber Signed-off-by: Mark Cave-Ayland --- hw/timer/m48t59.c | 59 + include/hw/timer/m48t59.h | 24 ++ 2 files changed, 83 insertions(+) diff --git a/hw

[Qemu-devel] [PATCH 0/9] qemu-sparc updates

2015-03-02 Thread Mark Cave-Ayland
Here is the latest version of my qemu-sparc queue. The m48t59 QOM patches have been on-list for over 6 weeks with no comment and are a pre-requisite for the later sun4u changes. Since m48t59 has no official maintainer, I've merged the m48t59 patches into my queue with an added CC to Andreas as QO

[Qemu-devel] [PATCH 5/9] m48t59: introduce new base-year qdev property

2015-03-02 Thread Mark Cave-Ayland
Currently the m48t59 device uses the hardware model in order to determine whether the year value is offset from the hardware value. As this will soon be required by the x59 model, create a qdev base-year property to represent the base year and update the callers appropriately. Reviewed-by: Hervé P

[Qemu-devel] [PATCH 4/9] m48t59: let init functions return a Nvram object

2015-03-02 Thread Mark Cave-Ayland
From: Hervé Poussineau Remove left-overs from header file. Move some functions only used by PReP to hw/ppc/prep.c Signed-off-by: Hervé Poussineau CC: Andreas Färber Signed-off-by: Mark Cave-Ayland --- hw/ppc/ppc.c | 161 - hw/ppc/prep

[Qemu-devel] [PATCH 2/9] m48t59: register a QOM type for each nvram type we support

2015-03-02 Thread Mark Cave-Ayland
From: Hervé Poussineau As m48t59 devices can only be created with m48t59_init() or m48t59_init_isa(), we know exactly which nvram types are required. Register only those three types. Remove .model and .size properties as they can be infered from nvram name. Rename type to 'isa-*' (and 'sysbus-*

[Qemu-devel] [PATCH 6/9] m48t59: add m48t59 sysbus device

2015-03-02 Thread Mark Cave-Ayland
This is for subsequent use by the sun4u machine. Reviewed-by: Hervé Poussineau Signed-off-by: Mark Cave-Ayland --- hw/timer/m48t59.c |4 1 file changed, 4 insertions(+) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index d3d8079..8ab683d 100644 --- a/hw/timer/m48t59.c +++ b/hw/ti

[Qemu-devel] [PATCH 7/9] doc: minor updates to SPARC32 and SPARC64 documentation

2015-03-02 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland --- qemu-doc.texi |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index aabe8df..f5b0dc4 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -2052,7 +2052,7 @@ firmware implementation. The goal is to impleme

[Qemu-devel] [PATCH 1/9] m48t59: move ISA ports/memory regions registration to QOM constructor

2015-03-02 Thread Mark Cave-Ayland
From: Hervé Poussineau -device m48t59_isa can now be used to create a fully functional nvram. Signed-off-by: Hervé Poussineau CC: Andreas Färber Signed-off-by: Mark Cave-Ayland --- hw/timer/m48t59.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --g

Re: [Qemu-devel] [PATCH target-arm v1 13/15] arm: xilinx-zynq-mp-generic: Add external RAM

2015-03-02 Thread Peter Crosthwaite
On Mon, Mar 2, 2015 at 2:38 PM, Alistair Francis wrote: > On Tue, Mar 3, 2015 at 5:40 AM, Peter Crosthwaite > wrote: >> On Mon, Feb 23, 2015 at 6:24 PM, Alistair Francis >> wrote: >>> On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite >>> wrote: Zynq MPSoC supports external DDR RAM. Add a

Re: [Qemu-devel] [PATCH target-arm v1 00/15] Next Generation Xilinx Zynq SoC

2015-03-02 Thread Alistair Francis
On Tue, Mar 3, 2015 at 6:06 AM, Peter Crosthwaite wrote: > On Thu, Feb 26, 2015 at 7:38 PM, Alistair Francis > wrote: >> On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite >> wrote: >>> Hi Peter and all, >>> >>> Xilinx's next gen SoC has been announced. This series adds a SoC and >>> machine mod

Re: [Qemu-devel] [PATCH target-arm v1 13/15] arm: xilinx-zynq-mp-generic: Add external RAM

2015-03-02 Thread Alistair Francis
On Tue, Mar 3, 2015 at 5:40 AM, Peter Crosthwaite wrote: > On Mon, Feb 23, 2015 at 6:24 PM, Alistair Francis > wrote: >> On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite >> wrote: >>> Zynq MPSoC supports external DDR RAM. Add a RAM at 0 to the model. >>> >>> Signed-off-by: Peter Crosthwaite >

Re: [Qemu-devel] [PATCH target-arm v1 03/15] arm: Introduce Xilinx Zynq MPSoC

2015-03-02 Thread Peter Crosthwaite
On Tue, Feb 24, 2015 at 12:06 PM, Michal Simek wrote: > On 02/24/2015 12:04 AM, Peter Crosthwaite wrote: >> With quad Cortex-A53 CPUs. >> >> Signed-off-by: Peter Crosthwaite >> --- >> default-configs/aarch64-softmmu.mak | 2 +- >> hw/arm/Makefile.objs| 1 + >> hw/arm/xlnx-zynq-

Re: [Qemu-devel] [PATCH target-arm v1 03/15] arm: Introduce Xilinx Zynq MPSoC

2015-03-02 Thread Alistair Francis
On Tue, Mar 3, 2015 at 6:08 AM, Peter Crosthwaite wrote: > On Thu, Feb 26, 2015 at 5:50 PM, Alistair Francis > wrote: >> On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite >> wrote: >>> With quad Cortex-A53 CPUs. >>> >>> Signed-off-by: Peter Crosthwaite >>> --- >>> default-configs/aarch64-soft

Re: [Qemu-devel] [PATCH target-arm v1 10/15] char: cadence_uart: Split state struct and type into header

2015-03-02 Thread Peter Crosthwaite
On Thu, Feb 26, 2015 at 7:26 PM, Alistair Francis wrote: > On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite > wrote: >> To allow using the device with modern SoC programming conventions. The >> state struct needs to be visible to embed the device in SoC containers. >> >> Signed-off-by: Peter Cr

Re: [Qemu-devel] [PATCH target-arm v1 07/15] net: cadence_gem: Split state struct and type into header

2015-03-02 Thread Peter Crosthwaite
On Thu, Feb 26, 2015 at 7:12 PM, Alistair Francis wrote: > On Tue, Feb 24, 2015 at 9:04 AM, Peter Crosthwaite > wrote: >> To allow using the device with modern SoC programming conventions. The >> state struct needs to be visible to embed the device in SoC containers. >> >> Signed-off-by: Peter Cr

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-03-02 Thread Stefan Hajnoczi
On Sat, Feb 28, 2015 at 02:47:12PM +0800, Fam Zheng wrote: > I'm glad to announce the fresh Patchew server deployment: > > http://qemu.patchew.org/ Looks nice! Looking forward to email notifications. Stefan pgpggkvjub0_L.pgp Description: PGP signature

[Qemu-devel] [PATCH 2/2] docs: add memory-hotplug.txt

2015-03-02 Thread Luiz Capitulino
This document describes how to use memory hotplug in QEMU. Signed-off-by: Luiz Capitulino --- docs/memory-hotplug.txt | 76 + 1 file changed, 76 insertions(+) create mode 100644 docs/memory-hotplug.txt diff --git a/docs/memory-hotplug.txt b/docs/

[Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description

2015-03-02 Thread Luiz Capitulino
Add memory hotplug options to the command-line format. Also, add a complete command-line example and improve description. Signed-off-by: Luiz Capitulino --- qemu-options.hx | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/qemu-options.hx b/qemu-options

[Qemu-devel] [PATCH v2 0/2] improve memory hotplug documentation

2015-03-02 Thread Luiz Capitulino
Hi, I started playing with memory hotplug the other day and missed some good documentation explaining how to use the feature. I figured I could contribute some documentation myself, although I'm new to the feature so the chances of making mistakes is high. Review is very appreciated. v2 - Gram

Re: [Qemu-devel] [PATCH 2/6] arm_gic_kvm.c: restore config before pending IRQs

2015-03-02 Thread Christoffer Dall
On Wed, Feb 25, 2015 at 04:02:34PM +, Alex Bennée wrote: > As there is logic to deal with the difference between edge and level > triggered interrupts in the kernel we must ensure it knows the > configuration of the IRQs before we restore the pending state. > > Signed-off-by: Alex Bennée Ack

Re: [Qemu-devel] QEMU website (wiki) improvements

2015-03-02 Thread Stefan Hajnoczi
On Sat, Feb 28, 2015 at 04:29:44PM +0100, Stefan Weil wrote: > * It does not support secure access (https), so each login is insecure. > Can we get a free server certificate? This is on my todo list. I'm travelling right now but will work on it over the coming weeks. There are some gotchas: 1

Re: [Qemu-devel] [PATCH 2/2] docs: add memory-hotplug.txt

2015-03-02 Thread Luiz Capitulino
On Mon, 02 Mar 2015 10:59:59 +0100 Paulo Ricardo Paz Vital wrote: > In addition to Eric's review. > > On Thu, 2015-02-26 at 14:49 -0500, Luiz Capitulino wrote: > > This document describes how to use memory hotplug in QEMU. > > > > Signed-off-by: Luiz Capitulino > > --- > > docs/memory-hotplug

[Qemu-devel] [PULL 2/2] trace: add DTrace reserved words for .d files

2015-03-02 Thread Stefan Hajnoczi
DTrace on Mac OS X fails due to trace events using 'self' as an argument name: GEN trace/generated-tracers-dtrace.h dtrace: failed to compile script trace/generated-tracers-dtrace.dtrace: line 1330: syntax error, unexpected DT_KEY_SELF, expecting ) near "self" make: *** [trace/generated-trace

[Qemu-devel] [PULL 1/2] unbreak dtrace tracing due to double _ in rdma names

2015-03-02 Thread Stefan Hajnoczi
From: "Dr. David Alan Gilbert" It looks like the dtrace trace code gets upset if you have trace names with __ in, which the migration/rdma.c code does. Rename the functions and the associated traces. Fixes: 733252deb8b7d37beacda5976c2769e18642b2fa Signed-off-by: Dr. David Alan Gilbert Reporte

[Qemu-devel] [PULL 0/2] Tracing patches

2015-03-02 Thread Stefan Hajnoczi
The following changes since commit b8a173b25c887a606681fc35a46702c164d5b2d0: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-03-02 14:25:48 +) are available in the git repository at: git://github.com/stefanha/qemu.git tags/tracing-pull-request f

Re: [Qemu-devel] Delaying -rc0?

2015-03-02 Thread Stefan Hajnoczi
On Mon, Mar 02, 2015 at 01:33:23PM +0100, Paolo Bonzini wrote: > Looks like there are still a few pull requests pending, and Peter is on > vacation. Should we really enter hard feature freeze tomorrow? The 2.3 > planning page in the end never got out the "draft" state. > > A possible alternative

Re: [Qemu-devel] [PATCH] trace: add DTrace reserved words for .d files

2015-03-02 Thread Stefan Hajnoczi
On Thu, Aug 14, 2014 at 11:39:23AM +0100, Stefan Hajnoczi wrote: > DTrace on Mac OS X fails due to trace events using 'self' as an argument > name: > > GEN trace/generated-tracers-dtrace.h > dtrace: failed to compile script trace/generated-tracers-dtrace.dtrace: line > 1330: syntax error, une

[Qemu-devel] Qemu Intigrated with GNS#3 Donot support wiresahrk packet capturing

2015-03-02 Thread ashok kumar sahoo
Dear team , Please take care of the packet capturing problem by Wireshark of emulated Cisco devices by recent qemu versions .please work in this direction .please do something regarding this issue . 2.secondly please work on more RAM support by recent qemu releases . Regards Ashok

Re: [Qemu-devel] [PATCH RESEND 01/17] docs: incremental backup documentation

2015-03-02 Thread Max Reitz
On 2015-03-02 at 14:07, Max Reitz wrote: On 2015-03-02 at 13:48, John Snow wrote: On 03/02/2015 12:49 PM, Max Reitz wrote: On 2015-02-27 at 19:47, John Snow wrote: Signed-off-by: John Snow --- docs/bitmaps.md | 303 1 file changed,

  1   2   3   4   >