[Qemu-devel] [PULL v2 04/11] lm32_uart/lm32_juart: use qemu_chr_fe_write_all()

2013-10-14 Thread Michael Walle
qemu_chr_fe_write() may return EAGAIN. Therefore, use qemu_chr_fe_write_all(). Signed-off-by: Michael Walle mich...@walle.cc --- hw/char/lm32_juart.c |2 +- hw/char/lm32_uart.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/char/lm32_juart.c

[Qemu-devel] [PULL v2 01/11] lm32_sys: increase test case name length limit

2013-10-14 Thread Michael Walle
The new MMU tests use longer names. Signed-off-by: Michael Walle mich...@walle.cc --- hw/misc/lm32_sys.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c index 9bdb781..8176cdb 100644 --- a/hw/misc/lm32_sys.c +++

[Qemu-devel] [PULL v2 06/11] target-lm32: kill cpu_abort() calls

2013-10-14 Thread Michael Walle
Instead of killing QEMU, translate instructions which are not available on the CPU model as a noop and issue a log message at translation time. On the real hardware CPU unknown opcodes results in undefined behaviour. These changes prepare the removal of CPULM32State from DisasContext. Cc:

[Qemu-devel] [PULL v2 07/11] target-lm32: move model features to LM32CPU

2013-10-14 Thread Michael Walle
This allows us to completely remove CPULM32State from DisasContext. Instead, copy the fields we need to DisasContext. Cc: Andreas Färber afaer...@suse.de Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/cpu-qom.h |1 + target-lm32/cpu.h | 12 +---

[Qemu-devel] [PULL v2 11/11] target-lm32: stop VM on illegal or unknown instruction

2013-10-14 Thread Michael Walle
Instead of translating the instruction to a no-op, pause the VM and display a message to the user. As a side effect, this also works for instructions where the operands are only known at runtime. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.h|1 +

[Qemu-devel] [PULL v2 02/11] tests: lm32: new rule for single test cases

2013-10-14 Thread Michael Walle
Introduce new target check_% to run indiviudal test caes, eg. make check_mmu Signed-off-by: Michael Walle mich...@walle.cc --- tests/tcg/lm32/Makefile |3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tcg/lm32/Makefile b/tests/tcg/lm32/Makefile index 9a00ef7..19e0664 100644 ---

[Qemu-devel] [PULL v2 10/11] lm32_sys: dump cpu state if test case fails

2013-10-14 Thread Michael Walle
This will ease debugging the test cases. Signed-off-by: Michael Walle mich...@walle.cc --- hw/misc/lm32_sys.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c index 6af0cca..1fd69ff 100644 --- a/hw/misc/lm32_sys.c +++ b/hw/misc/lm32_sys.c @@ -81,6

Re: [Qemu-devel] [RFC PATCH v2 3/6] hw: arm_gic: Keep track of SGI sources

2013-10-14 Thread Peter Maydell
On 14 October 2013 16:36, Peter Maydell peter.mayd...@linaro.org wrote: Are you sure the logic in this function is right? (ie that we should only clear the sgi_source[][] bit for this source, and not completely? If nothing else, I think the interrupt should stay pending if some other source

[Qemu-devel] [PULL v2 05/11] milkymist-vgafb: swap pixel data in source buffer

2013-10-14 Thread Michael Walle
In commit fc97bb5ba3e7239c0b6d24095df6784868dfebbf the lduw_raw() call was eliminated. But we are reading from the target buffer a 16-bit value, which is in big-endian format. Therefore, swap the bytes if we are building for a little-endian host. Cc: Paolo Bonzini pbonz...@redhat.com

Re: [Qemu-devel] [PATCH v2] map 64-bit PCI BARs at location provided by emulator

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 06:15:25PM +0200, Igor Mammedov wrote: On Mon, 14 Oct 2013 17:00:47 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Mon, Oct 14, 2013 at 03:04:45PM +0200, Gerd Hoffmann wrote: Hi, To me it makes more sense to just go the direct route and say

[Qemu-devel] [PULL v2 08/11] target-lm32: add breakpoint/watchpoint support

2013-10-14 Thread Michael Walle
This patch adds in-target breakpoint and watchpoint support. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/TODO|2 -- target-lm32/cpu.c |1 + target-lm32/cpu.h | 27 -- target-lm32/helper.c| 89

[Qemu-devel] [PULL v2 09/11] lm32_sys: print test result on stderr

2013-10-14 Thread Michael Walle
Do not use qemu_log(). Signed-off-by: Michael Walle mich...@walle.cc --- hw/misc/lm32_sys.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c index 8176cdb..6af0cca 100644 --- a/hw/misc/lm32_sys.c +++ b/hw/misc/lm32_sys.c @@ -80,7

Re: [Qemu-devel] [PATCH v13 5/8] module: implement module loading

2013-10-14 Thread Paolo Bonzini
Il 11/10/2013 03:16, Fam Zheng ha scritto: This patch adds loading, stamp checking and initialization of modules. The init function of dynamic module is no longer directly called as __attribute__((constructor)) in static linked version, it is called only after passed the checking of presense

[Qemu-devel] [PATCH 1/5] savevm: Coding style line length fix

2013-10-14 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/savevm.c b/savevm.c index 2f631d4..208e7c2 100644 --- a/savevm.c +++ b/savevm.c @@ -1729,7 +1729,8 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription

[Qemu-devel] [PATCH 0/5] vmstate: Add max_version_id field

2013-10-14 Thread Eduardo Habkost
This series cleans up the vmstate save/load code a little, and adds a max_version_id field to VMStateDescription. This will be useful in case we need to revert vmstate changes but keep compatibility with QEMU versions that had a higher version_id. No existing behavior will be changed by code that

[Qemu-devel] [PATCH 5/5] vmstate: Add max_version_id field to VMStateDescription

2013-10-14 Thread Eduardo Habkost
This will allow us to load data that has a high version_id, while using a lower version_id when saving. Useful in case we need to revert vmstate changes but keep compatibility with QEMU versions that had a higher version_id. Signed-off-by: Eduardo Habkost ehabk...@redhat.com ---

[Qemu-devel] [PATCH 3/5] vmstate: Simplify field-skipping load/save logic

2013-10-14 Thread Eduardo Habkost
This makes the code more readable, making each condition that makes a field be skipped much more visible, and reduces one level of indentation in the code. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c | 156 --- 1

[Qemu-devel] [PATCH 2/5] vmstate: Replace while (...) with for (...)

2013-10-14 Thread Eduardo Habkost
This will make it easier to add code that skips some fields, by simply using continue. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/savevm.c b/savevm.c index 208e7c2..9562669 100644 --- a/savevm.c

[Qemu-devel] [PATCH 4/5] vmstate: Use version_id when saving

2013-10-14 Thread Eduardo Habkost
This will allow fields to have version_id vmsd-version_id, to allow us to support loading data with higher version_id. This patch alone is not useful by itself, but it will be useful when introducing the max_version_id field to VMStateDescription. Signed-off-by: Eduardo Habkost

[Qemu-devel] [RFC PATCH] Update documentation for LTTng ust tracing

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai mohamad.ge...@polymtl.ca --- docs/tracing.txt | 31 +++ 1 file changed, 31 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..cbb3aaf 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,37 @@

Re: [Qemu-devel] [RFC PATCH v2 0/3] Fix UST backend for LTTng 2.x

2013-10-14 Thread Mohamad Gebai
Sorry for the delay, just submitted the updated documentation. Thanks, Mohamad On 13-10-07 08:36 AM, Alex Bennée wrote: mohamad.ge...@gmail.com writes: Version 2 * Fix tracepoint generation error in first version. * Avoid warnings and errors specific to LTTng ust 2.0. * If using LTTng ust

Re: [Qemu-devel] [PULL v2 05/11] milkymist-vgafb: swap pixel data in source buffer

2013-10-14 Thread Richard Henderson
On 10/14/2013 09:29 AM, Michael Walle wrote: +#ifndef HOST_WORDS_BIGENDIAN +rgb565 = bswap16(rgb565); +#endif be16_to_cpu, no ifdef needed. r~

Re: [Qemu-devel] [PULL v2 07/11] target-lm32: move model features to LM32CPU

2013-10-14 Thread Andreas Färber
Hi, Am 14.10.2013 18:29, schrieb Michael Walle: This allows us to completely remove CPULM32State from DisasContext. Instead, copy the fields we need to DisasContext. Cc: Andreas Färber afaer...@suse.de Signed-off-by: Michael Walle mich...@walle.cc Sorry for not getting to review this

Re: [Qemu-devel] [PULL v2 00/11] target-lm32 updates

2013-10-14 Thread Michael Walle
Am Montag, 14. Oktober 2013, 18:29:24 schrieb Michael Walle: This is a pull for various updates and fixes for the LatticeMico32 target. Please pull. changes since v1: - rebased - dropped patch target-lm32: register helper functions. This is no longer needed. - added patch

Re: [Qemu-devel] [PULL v2 05/11] milkymist-vgafb: swap pixel data in source buffer

2013-10-14 Thread Michael Walle
Am Montag, 14. Oktober 2013, 19:05:25 schrieb Richard Henderson: On 10/14/2013 09:29 AM, Michael Walle wrote: +#ifndef HOST_WORDS_BIGENDIAN +rgb565 = bswap16(rgb565); +#endif be16_to_cpu, no ifdef needed. r~ Thanks. I'll update the patch. -- michael

Re: [Qemu-devel] [PULL v2 06/11] target-lm32: kill cpu_abort() calls

2013-10-14 Thread Andreas Färber
Am 14.10.2013 18:29, schrieb Michael Walle: Instead of killing QEMU, translate instructions which are not available on the CPU model as a noop and issue a log message at translation time. On the real hardware CPU unknown opcodes results in undefined behaviour. These changes prepare the

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

2013-10-14 Thread Andreas Färber
Am 14.10.2013 14:09, schrieb Igor Mammedov: On Tue, 16 Jul 2013 00:25:53 +0200 Igor Mammedov imamm...@redhat.com wrote: It's reordered and rebased v8 plus CPUID feature bits conversion to properties and cleanups that are removing unused anymore *_feature_name arrays. dynamic = static

[Qemu-devel] [RFC PATCH v3 1/5] Fix configure script for LTTng 2.x

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai mohamad.ge...@polymtl.ca --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 23dbaaf..627054c 100755 --- a/configure +++ b/configure @@ -3287,15 +3287,14 @@ fi # For 'ust' backend, test if ust

[Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai mohamad.ge...@polymtl.ca --- docs/tracing.txt | 31 +++ 1 file changed, 31 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..64683db 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,37 @@

[Qemu-devel] [RFC PATCH v3 0/5] Fix UST backend for LTTng 2.x

2013-10-14 Thread Mohamad Gebai
Version 3 * Change component name to avoid potential namespace collision with another project. * Update ust documentation in docs/tracing.txt. * Add ust generated files to .gitignore. Mohamad Gebai (5): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x.

[Qemu-devel] [RFC PATCH v3 5/5] Add ust generated files to .gitignore

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai mohamad.ge...@polymtl.ca --- .gitignore |2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8e1b73f..e024a76 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ trace/generated-tracers-dtrace.h trace/generated-tracers.dtrace

[Qemu-devel] [RFC PATCH v3 2/5] Modified the tracetool framework for LTTng 2.x.

2013-10-14 Thread Mohamad Gebai
* A new format is required to generate definitions for ust tracepoints. Files ust_events_h.py and ust_events_c.py define common macros, while new function ust_events_h in events.py does the actual definition of each tracepoint. * ust.py generates the new interface for calling userspace

[Qemu-devel] [RFC PATCH v3 3/5] Adapt Makefiles to the new LTTng ust interface.

2013-10-14 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai mohamad.ge...@polymtl.ca --- Makefile|5 + trace/Makefile.objs | 29 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index

Re: [Qemu-devel] [RFC PATCH] drive-backup 'stream' mode

2013-10-14 Thread Wolfgang Richter
On Fri, Oct 11, 2013 at 11:38 AM, Eric Blake ebl...@redhat.com wrote: On 10/11/2013 09:18 AM, Wolfgang Richter wrote: Idea: Introduce a mode for drive-backup that duplicates writes to another target, not CoW. It is useful for introspecting (my use case), and for keeping a remote block device

Re: [Qemu-devel] [RFC PATCH] drive-backup 'stream' mode

2013-10-14 Thread Wolfgang Richter
On Sat, Oct 12, 2013 at 1:47 AM, Fam Zheng f...@redhat.com wrote: While mirroring write is a good idea, doing it with drive-backup is probably not. The function of this command is to 'backup' the image with existing data, instead of new data. With your 'stream' mode, this semantic is changed.

Re: [Qemu-devel] [RFC PATCH] drive-backup 'stream' mode

2013-10-14 Thread Eric Blake
On 10/14/2013 02:10 PM, Wolfgang Richter wrote: Add the designation '(since 1.7)' to make it obvious when this mode was introduced. Done. Is it better to place the updated patch in this thread or start a new one? http://wiki.qemu.org/Contribute/SubmitAPatch suggests submitting a new

Re: [Qemu-devel] [PULL 25/43] acpi: ssdt pcihp: updat generated file

2013-10-14 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: update generated file, not sure what changed Reviewed-by: Gerd Hoffmann kra...@redhat.com Tested-by: Gerd Hoffmann kra...@redhat.com Reviewed-by: Igor Mammedov imamm...@redhat.com Tested-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Michael

Re: [Qemu-devel] [PULL 41/43] pcihp: generalization of piix4 acpi

2013-10-14 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: Add ACPI based PCI hotplug library with bridge hotplug support. Design - each bus gets assigned bsel property. - ACPI code writes this number to a new BNUM register, then uses existing UP/DOWN registers to probe slot status;

Re: [Qemu-devel] [PULL 00/43] pci, pc, acpi fixes, enhancements

2013-10-14 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: Anthony, I know you wanted to review some of the patches, since you didn't respond either all's well or you could not find the time. I think we are better off merging them for 1.7 and then - worst case, if major issues surface - disabling the

[Qemu-devel] [PATCH v2] target-lm32: move model features to LM32CPU

2013-10-14 Thread Michael Walle
This allows us to completely remove CPULM32State from DisasContext. Instead, copy the fields we need to DisasContext. Cc: Andreas Färber afaer...@suse.de Signed-off-by: Michael Walle mich...@walle.cc --- changes since v1: - instead of storing a pointer to the cpu definitions, register

[Qemu-devel] blockdev.c - bug

2013-10-14 Thread Edivaldo de Araujo Pereira
Dear qemu developers, I've noticed about 3 days ago a bug, apparently introduced by the last massive modifications in blockdev.c, that prevents the use of a cdrom ISO without write permission, like in qemu-system-i386 -cdrom /some.iso ..., giving the message could not open disk image

Re: [Qemu-devel] blockdev.c - bug

2013-10-14 Thread Fam Zheng
On Mon, 10/14 17:28, Edivaldo de Araujo Pereira wrote: Dear qemu developers, I've noticed about 3 days ago a bug, apparently introduced by the last massive modifications in blockdev.c, that prevents the use of a cdrom ISO without write permission, like in qemu-system-i386 -cdrom

Re: [Qemu-devel] [PATCH] rdma: fix multiple VMs parallel migration

2013-10-14 Thread Michael R. Hines
On 10/10/2013 09:06 PM, Zhanghaoyu (A) wrote: When several VMs migrate with RDMA at the same time, the increased pressure cause packet loss probabilistically and make source and destination wait for each other. There might be some of VMs blocked during the migration. Fix the bug by using two

[Qemu-devel] [PATCH] blockdev: fix cdrom read_only flag

2013-10-14 Thread Fam Zheng
Since 0ebd24e0, cdrom doesn't have read-only on by default, which will error out when using an read only image. Fix it by setting the default value when parsing opts. Reported-by: Edivaldo de Araujo Pereira edivaldoapere...@yahoo.com.br Signed-off-by: Fam Zheng f...@redhat.com --- blockdev.c | 7

Re: [Qemu-devel] [PATCH] mirror: drop local_err in mirror_compelte

2013-10-14 Thread Fam Zheng
On Mon, 10/14 07:52, Eric Blake wrote: On 10/12/2013 12:33 AM, Fam Zheng wrote: There is errp passed in, so no need for local_err and error_propagate. s/compelte/complete/ in the subject Signed-off-by: Fam Zheng f...@redhat.com --- block/mirror.c | 4 +--- 1 file changed, 1

[Qemu-devel] [PATCH v2] mirror: drop local_err in mirror_complete

2013-10-14 Thread Fam Zheng
There is errp passed in, so no need for local_err and error_propagate. Also drop the backing_filename which is set but unused since 34b5d2c. Signed-off-by: Fam Zheng f...@redhat.com -- v2: fix typo in subject line. drop backing_filename. (Thanks Eric) Signed-off-by: Fam Zheng

[Qemu-devel] [PATCH] qemu-iotests: fix 030 for faster machines

2013-10-14 Thread Fam Zheng
If the block job completes too fast, the test can fail. Change the numbers so the qmp events are more stably captured by the script. A sleep is removed for the same reason. Signed-off-by: Fam Zheng f...@redhat.com --- tests/qemu-iotests/030 | 11 +-- 1 file changed, 5 insertions(+), 6

[Qemu-devel] [PATCH] .gitignore: ignore qmp-commands.txt

2013-10-14 Thread Fam Zheng
This file is moved out from QMP/ to BUILD dir, change the ignore file too. Signed-off-by: Fam Zheng f...@redhat.com --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8e1b73f..5584b5f 100644 --- a/.gitignore +++ b/.gitignore @@ -44,7

Re: [Qemu-devel] [PATCH v2] mirror: drop local_err in mirror_complete

2013-10-14 Thread Eric Blake
On 10/14/2013 08:23 PM, Fam Zheng wrote: There is errp passed in, so no need for local_err and error_propagate. Also drop the backing_filename which is set but unused since 34b5d2c. Signed-off-by: Fam Zheng f...@redhat.com -- Three dashes instead of two before 'git am' will notice that

Re: [Qemu-devel] [PATCH v2] mirror: drop local_err in mirror_complete

2013-10-14 Thread Fam Zheng
On Mon, 10/14 21:05, Eric Blake wrote: On 10/14/2013 08:23 PM, Fam Zheng wrote: There is errp passed in, so no need for local_err and error_propagate. Also drop the backing_filename which is set but unused since 34b5d2c. Signed-off-by: Fam Zheng f...@redhat.com -- Three dashes

Re: [Qemu-devel] [PATCH] hmp: Add '\n' in monitor_printf()

2013-10-14 Thread mike
On 10/14/2013 10:36 PM, Markus Armbruster wrote: Mike Qiu qiud...@linux.vnet.ibm.com writes: Without this, output of 'info block' scsi0-hd0: /images/f18-ppc64.qcow2 (qcow2) [not inserted] scsi0-cd2: [not inserted] Removable device: not locked, tray closed floppy0: [not inserted]

[Qemu-devel] [PATCH v2] net/net: Change the default mac address of nic

2013-10-14 Thread Mike Qiu
Changelog to v1: Find remainder of macaddr-a[5] by modulo 256, otherwise it may be overflow by add index++. The default mac address is 52:54:00:12:34:56 + index, this will cause problem that when we boot up more than one guest with all mac addresses unset by default, assume that

Re: [Qemu-devel] [PATCH v2] net/net: Change the default mac address of nic

2013-10-14 Thread Stefan Weil
Am 15.10.2013 06:17, schrieb Mike Qiu: Changelog to v1: Find remainder of macaddr-a[5] by modulo 256, otherwise it may be overflow by add index++. The default mac address is 52:54:00:12:34:56 + index, this will cause problem that when we boot up more than one guest with all mac

Re: [Qemu-devel] [PULL 41/43] pcihp: generalization of piix4 acpi

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 03:36:13PM -0700, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: Add ACPI based PCI hotplug library with bridge hotplug support. Design - each bus gets assigned bsel property. - ACPI code writes this number to a new BNUM

Re: [Qemu-devel] [PULL 25/43] acpi: ssdt pcihp: updat generated file

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 03:32:43PM -0700, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: update generated file, not sure what changed Reviewed-by: Gerd Hoffmann kra...@redhat.com Tested-by: Gerd Hoffmann kra...@redhat.com Reviewed-by: Igor Mammedov

Re: [Qemu-devel] [PATCH v6 2/5] hpet: enable to entitle more irq pins for hpet

2013-10-14 Thread liu ping fan
On Mon, Oct 14, 2013 at 10:18 PM, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Oct 11, 2013 at 10:59:40AM +0800, liu ping fan wrote: On Thu, Oct 10, 2013 at 7:41 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Oct 10, 2013 at 11:46:42AM +0200, Paolo Bonzini wrote: Il 10/10/2013

Re: [Qemu-devel] [PULL 00/43] pci, pc, acpi fixes, enhancements

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 03:42:37PM -0700, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: Anthony, I know you wanted to review some of the patches, since you didn't respond either all's well or you could not find the time. I think we are better off merging them for 1.7

Re: [Qemu-devel] [PULL 00/43] pci, pc, acpi fixes, enhancements

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 03:42:37PM -0700, Anthony Liguori wrote: This is a huge series and I still am not convinced this is the right path forward. Also, this kind of response is quite unexpected after this direction was discussed multiple times and largely agreed upon on the phone meeting, and

[Qemu-devel] [PATCH V4 0/6] qcow2: rollback the modification on fail in snapshot creation

2013-10-14 Thread Wenchao Xia
V2: 1: all fail case will goto fail section. 2: add the goto code. v3: Address Stefan's comments: 2: don't goto fail after allocation failure. 3: use sn-l1size correctly in qcow2_free_cluster(). 4-7: add test case to verify the error paths. Other: 1: new patch fix a existing bug,

[Qemu-devel] [PATCH V4 1/6] snapshot: add parameter *errp in snapshot create

2013-10-14 Thread Wenchao Xia
The return value is only used for error report before this patch, so change the function protype to return void. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- block/qcow2-snapshot.c| 27 +++ block/qcow2.h |4 +++- block/rbd.c

[Qemu-devel] [PATCH V4 6/6] qemu-iotests: add test for qcow2 snapshot

2013-10-14 Thread Wenchao Xia
This test will focus on the low level procedure of qcow2 snapshot operations, now it covers only the create operation. Overlap error paths are not checked since no good way to trigger those errors. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- tests/qemu-iotests/068 | 214

[Qemu-devel] [PATCH V4 4/6] qcow2: cancel the modification on fail in qcow2_snapshot_create()

2013-10-14 Thread Wenchao Xia
Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- block/qcow2-snapshot.c | 25 + 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c index c933b7f..6d0ffd4 100644 --- a/block/qcow2-snapshot.c +++

[Qemu-devel] [PATCH V4 2/6] qcow2: add error message in qcow2_write_snapshots()

2013-10-14 Thread Wenchao Xia
The function still returns int since qcow2_snapshot_delete() will return the number. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- block/qcow2-snapshot.c | 48 ++-- 1 files changed, 42 insertions(+), 6 deletions(-) diff --git

[Qemu-devel] [PATCH V4 5/6] blkdebug: add debug events for snapshot

2013-10-14 Thread Wenchao Xia
Some code in qcow2-snapshot.c directly access bs-file, so in those points error can't be injected by other events. Since the code in qcow2-snapshot.c is qcow2's internal detail similar as L1 table, so add some debug events. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com ---

[Qemu-devel] [PATCH V4 3/6] qcow2: do not free clusters when fail in header update in qcow2_write_snapshots

2013-10-14 Thread Wenchao Xia
Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- block/qcow2-snapshot.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c index 4bd494b..c933b7f 100644 --- a/block/qcow2-snapshot.c +++ b/block/qcow2-snapshot.c

Re: [Qemu-devel] [PATCH v2] net/net: Change the default mac address of nic

2013-10-14 Thread mike
On 10/15/2013 01:07 PM, Stefan Weil wrote: Am 15.10.2013 06:17, schrieb Mike Qiu: Changelog to v1: Find remainder of macaddr-a[5] by modulo 256, otherwise it may be overflow by add index++. The default mac address is 52:54:00:12:34:56 + index, this will cause problem that when

<    1   2