[Qemu-devel] [PATCH v2 1/3] qdev: using error_abort instead of using local_err

2014-08-20 Thread arei.gonglei
From: Gonglei This error can not happen normally. If it happens indicates something very wrong, we should abort QEMU. moreover, The user can only refer to /machine/peripheral, not /machine/unattached. Signed-off-by: Gonglei --- hw/core/qdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[Qemu-devel] [PATCH v2 3/3] pcie: don't assert when hotplug a PCIe device with 'function != 0'

2014-08-20 Thread arei.gonglei
From: Gonglei It's enough to report an error. Assert() is not acceptable because the error is not a fatal error. Signed-off-by: Gonglei --- hw/pci/pcie.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index a123c01..7b46140 100644 --- a/h

[Qemu-devel] [PATCH v2 2/3] qdev: add cleanup logic in device_set_realized() to avoid resource leak

2014-08-20 Thread arei.gonglei
From: Gonglei At present, this function doesn't have partial cleanup implemented, which will cause resource leak in some scenarios. Example: 1. Assuming that "dc->realize(dev, &local_err)" execute successful and local_err == NULL; 2. Executing device hotplug in hotplug_handler_plug(), but fa

[Qemu-devel] [PATCH v2 0/3] Refactor device_set_realized to avoid resource leak.

2014-08-20 Thread arei.gonglei
From: Gonglei after committing [PATCH v6 0/9] Refactor PCI/SHPC/PCIE hotplug to use a more generic hotplug API If devcie hotplugging failed, will casuse resource leak. This patch series include address resouce leak and two other issuses. v2 -> v1: - rewrite patch 1/3, using error_abort instea

Re: [Qemu-devel] [RFC PATCH v2 10/13] linux headers update for DDW

2014-08-20 Thread Alexey Kardashevskiy
On 08/21/2014 05:44 AM, Alex Williamson wrote: > On Wed, 2014-08-20 at 17:49 +1000, Alexey Kardashevskiy wrote: >> On 08/19/2014 03:42 AM, Alex Williamson wrote: >>> On Fri, 2014-08-15 at 20:12 +1000, Alexey Kardashevskiy wrote: Since the changes are not in upstream yet, no tag or branch is sp

Re: [Qemu-devel] [PATCH 5/6] build-sys: Change libqemuutil.a to qemuutil.o and link whole object

2014-08-20 Thread Fam Zheng
On Wed, 08/20 15:29, Paolo Bonzini wrote: > Il 20/08/2014 12:01, Fam Zheng ha scritto: > > + > > +qemuutil.o: CC_REL_FLAGS := -Wl,-r > > Why the target-specific rule? > > > +qemuutil.o: $(util-obj-y) > > + $(call quiet-command,$(CC) -nostdlib $(CC_REL_FLAGS) -o $@ $^," LD -r > > $(TARGET_DIR

Re: [Qemu-devel] [PATCH bugfix v1 3/3] qom: object.h: Update object_get_canon_path* doc

2014-08-20 Thread Peter Crosthwaite
On Thu, Aug 21, 2014 at 1:58 AM, Paolo Bonzini wrote: > Il 20/08/2014 11:07, Peter Maydell ha scritto: >> The other thing you need to say is that the returned string is >> only valid for as long as the object remains a child property >> of its parent. (Is that right? I'm not clear. It also sounds

Re: [Qemu-devel] [PATCH v1 1/1] target_arm: Make the reset rom_ptr a property

2014-08-20 Thread Peter Crosthwaite
On Thu, Aug 21, 2014 at 11:40 AM, Alistair Francis wrote: > Add Konstanty > > > On Thu, Aug 21, 2014 at 11:36 AM, Alistair Francis > wrote: >> This allows the board to set the reset address, which is required >> for some boards (the Netduino Plus 2 for example) >> The change is armv7m specific

Re: [Qemu-devel] [PATCH v2 1/3] qdev: using error_abort instead of using local_err

2014-08-20 Thread Peter Crosthwaite
On Thu, Aug 21, 2014 at 12:11 PM, wrote: > From: Gonglei > > This error can not happen normally. If it happens indicates > something very wrong, we should abort QEMU. moreover, The > user can only refer to /machine/peripheral, not > /machine/unattached. > > Signed-off-by: Gonglei Reviewed-by:

Re: [Qemu-devel] [PATCH v2 1/3] qdev: using error_abort instead of using local_err

2014-08-20 Thread Gonglei (Arei)
> Subject: Re: [Qemu-devel] [PATCH v2 1/3] qdev: using error_abort instead of > using local_err > > On Thu, Aug 21, 2014 at 12:11 PM, wrote: > > From: Gonglei > > > > This error can not happen normally. If it happens indicates > > something very wrong, we should abort QEMU. moreover, The > > us

Re: [Qemu-devel] [PATCH 6/6] iscsi: Move iqn generation code to util

2014-08-20 Thread Fam Zheng
On Wed, 08/20 15:32, Paolo Bonzini wrote: > > In any case, if we need it I think there's no need to keep the argument > to iqn_generate. How about multiple initiators? Should they use the same iqn? Fam

Re: [Qemu-devel] [PATCH v1 1/1] target_arm: Make the reset rom_ptr a property

2014-08-20 Thread Alistair Francis
On Thu, Aug 21, 2014 at 1:37 PM, Peter Crosthwaite wrote: > On Thu, Aug 21, 2014 at 11:40 AM, Alistair Francis > wrote: >> Add Konstanty >> >> >> On Thu, Aug 21, 2014 at 11:36 AM, Alistair Francis >> wrote: >>> This allows the board to set the reset address, which is required >>> for some boar

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-20 Thread Jason Wang
On 08/20/2014 05:23 PM, Zhangjie (HZ) wrote: > On 2014/8/19 12:56, Jason Wang wrote: >> commit a9f98bb5ebe6fb1869321dcc58e72041ae626ad8 vhost: multiqueue > call it before setting >> Zhang Jie, please test this patch to see if it fixes the issue. >> +static void vhost_net_set_vq_index(struct vhost_

Re: [Qemu-devel] [PATCH] pc: reserve more memory for ACPI for new machine types

2014-08-20 Thread Luiz Capitulino
On Wed, 20 Aug 2014 22:55:38 +0200 "Michael S. Tsirkin" wrote: > commit 868270f23d8db2cce83e4f082fe75e8625a5fbf9 > acpi-build: tweak acpi migration limits > broke kernel loading with -kernel/-initrd: it doubled > the size of ACPI tables but did not reserve > enough memory. > > As a result, i

Re: [Qemu-devel] [BUG] Possible ACPI regression in v2.1.0

2014-08-20 Thread Luiz Capitulino
On Wed, 20 Aug 2014 23:00:57 +0200 "Michael S. Tsirkin" wrote: > On Wed, Aug 20, 2014 at 04:41:25PM -0400, Luiz Capitulino wrote: > > > > Starting a QEMU instance manually configured to boot a Fedora installation > > kernel with the -kernel/-initrd command-line options cause ACPI to brake > > in

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-20 Thread Zhangjie (HZ)
On 2014/8/21 12:29, Jason Wang wrote: > On 08/20/2014 05:23 PM, Zhangjie (HZ) wrote: >> On 2014/8/19 12:56, Jason Wang wrote: >>> commit a9f98bb5ebe6fb1869321dcc58e72041ae626ad8 vhost: multiqueue >> call it before setting >>> Zhang Jie, please test this patch to see if it fixes the issue. >>> +st

Re: [Qemu-devel] [PATCH 1/1] vmdk: Use bdrv_nb_sectors() where sectors, not bytes are wanted

2014-08-20 Thread Markus Armbruster
Fam Zheng writes: > On Wed, 08/20 19:07, Markus Armbruster wrote: >> Instead of bdrv_getlength(). >> >> Commit 57322b7 did this all over block, but one more bdrv_getlength() >> has crept in since. >> >> Signed-off-by: Markus Armbruster >> --- >> block/vmdk.c | 11 +-- >> 1 file change

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-20 Thread Jason Wang
On 08/21/2014 02:28 PM, Zhangjie (HZ) wrote: > On 2014/8/21 12:29, Jason Wang wrote: >> On 08/20/2014 05:23 PM, Zhangjie (HZ) wrote: >>> On 2014/8/19 12:56, Jason Wang wrote: commit a9f98bb5ebe6fb1869321dcc58e72041ae626ad8 vhost: multiqueue >>> call it before setting Zhang Jie, please te

<    1   2   3