Re: [Qemu-devel] [PATCH v4 2/4] qdev: using NULL instead of local_err for qbus_child unrealize

2014-09-02 Thread Gonglei (Arei)
> From: peter.crosthwa...@petalogix.com > >> > > >> > Forcefully unrealize all children regardless of early-iteration > >> > errors(if happened). We should keep going with cleanup operation > >> > rather than report a error immediately. > >> > > >> > Signed-off-by: Gonglei > >> > --- > >> > hw/co

Re: [Qemu-devel] [PATCH v4 2/4] qdev: using NULL instead of local_err for qbus_child unrealize

2014-09-02 Thread Gonglei (Arei)
> > > > Forcefully unrealize all children regardless of early-iteration > > errors(if happened). We should keep going with cleanup operation > > rather than report a error immediately. > > > > Signed-off-by: Gonglei > > --- > > hw/core/qdev.c | 9 +++-- > > 1 file changed, 3 insertions(+), 6

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

2014-09-02 Thread Gonglei (Arei)
> > > Subject: [PATCH v4 1/4] qdev: using error_abort instead of using local_err > > > Importance: High > > > > > > 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 /

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

2014-09-02 Thread Gonglei (Arei)
> From: Gonglei (Arei) > Sent: Tuesday, September 02, 2014 4:04 PM > Subject: [PATCH v4 1/4] qdev: using error_abort instead of using local_err > Importance: High > > From: Gonglei > > This error can not happen normally. If it happens indicates > something very

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

2014-09-02 Thread Gonglei (Arei)
> -Original Message- > From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, September 02, 2014 3:00 PM > To: Gonglei (Arei) > Cc: Huangweidong (C); Michael S. Tsirkin; Luonengjun; >

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

2014-09-01 Thread Gonglei (Arei)
> From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, September 02, 2014 6:51 AM > >> On Mon, Sep 1, 2014 at 3:50 PM, wrote: > >> > From: Gonglei > >> > > >> > At present, this function doesn't have partial cleanup impl

Re: [Qemu-devel] [PATCH v6 02/27] bootindex: add del_boot_device_path function

2014-08-31 Thread Gonglei (Arei)
> From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Monday, September 01, 2014 2:43 PM > Subject: Re: [PATCH v6 02/27] bootindex: add del_boot_device_path function > Importance: High > > Hi, > > > +static bool is_same_fw_dev_path(DeviceState *src, DeviceState *dst) > > +{ > > +bool ret

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

2014-08-31 Thread Gonglei (Arei)
> -Original Message- > From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Monday, September 01, 2014 2:08 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org Developers; Huangweidong (C);

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

2014-08-31 Thread Gonglei (Arei)
> From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, August 26, 2014 10:25 AM > Subject: Re: [Qemu-devel] [PATCH v2 2/3] qdev: add cleanup logic in > device_set_realized() to avoid resource leak > > On Thu, Aug 21, 2014

Re: [Qemu-devel] [PATCH v2] ioh3420: Remove unused ioh3420_init() declaration

2014-08-31 Thread Gonglei (Arei)
Hi, Michael Do you plan to pick up this patch? Thanks. Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Monday, August 25, 2014 8:21 PM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; Huangweidong (C); knut.om...@oracle.com; > arm...@r

Re: [Qemu-devel] [PATCH v6 07/27] vl.c: add setter/getter functions for bootindex property

2014-08-31 Thread Gonglei (Arei)
> From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Sunday, August 31, 2014 5:58 PM > Subject: Re: [PATCH v6 07/27] vl.c: add setter/getter functions for bootindex > property > > On Sat, Aug 30, 2014 at 06:00:07PM +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > when we rem

Re: [Qemu-devel] [PATCH] numa: fix qerror_report_err not free issue

2014-08-29 Thread Gonglei (Arei)
> -Original Message- > From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of Michael Tokarev > Sent: Saturday, August 30, 2014 1:26 PM > To: Liuli (I) > Cc: qemu-triv...@nongnu.org; qemu-devel@nongnu.org >

Re: [Qemu-devel] USB PCI host bus adapter hot plug

2014-08-28 Thread Gonglei (Arei)
Hi, Gerd > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Thursday, August 28, 2014 4:36 PM > Subject: Re: [Qemu-devel] USB PCI host bus adapter hot plug > > Hi, > > > > The last missing bit (beside the make check failures) needed to finally > > > merge this is turning off hotplug in c

Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-28 Thread Gonglei (Arei)
> From: Eric Blake [mailto:ebl...@redhat.com] > Subject: Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function > for 'qom-set' > > On 08/27/2014 11:19 PM, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > In the subject: s/genneric/generic/, s/paring/parsing/ > OK. > > At

Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-28 Thread Gonglei (Arei)
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Subject: Re: [PATCH] qmp: using genneric string paring function for 'qom-set' > > Il 28/08/2014 07:19, arei.gong...@huawei.com ha scritto: > > From: Gonglei > > > > At present, 'qom-set' only can set string type property, > > which will restric

Re: [Qemu-devel] USB PCI host bus adapter hot plug

2014-08-28 Thread Gonglei (Arei)
> -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Thursday, August 28, 2014 4:25 PM > To: Gonglei (Arei) > Cc: Alexey Kardashevskiy; qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] USB PCI host bus adapter hot plug > > Hi, >

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-27 Thread Gonglei (Arei)
> From: Gerd Hoffmann [mailto:kra...@redhat.com] > Subject: Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take > effect after rebooting > > Hi, > > > 1. Does have ready-to-wear interface to get QOM path by qdev id,? > > You can simply use the id directly. Try this: > > qemu

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-26 Thread Gonglei (Arei)
> From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Tuesday, August 26, 2014 7:25 PM > Subject: Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take > effect after rebooting > > Gerd Hoffmann writes: > > > On Di, 2014-08-26 at 09:07 +, Go

Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports and downstream ports

2014-08-26 Thread Gonglei (Arei)
> From: Michael S. Tsirkin [mailto:m...@redhat.com] > Subject: Re: [PATCH v2 2/2] pci: add check for pcie root ports and downstream > ports > > On Thu, Aug 21, 2014 at 05:47:46PM +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > If ARI Forwarding is disabled, according to PCIe spec

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-26 Thread Gonglei (Arei)
Hi, Gerd Nice to meet you again in maillist. :) > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Tuesday, August 26, 2014 2:36 PM > Subject: Re: [PATCH v5 0/8] modify boot order of guest, and take effect after > rebooting > > > The patchsets add one qmp inte

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

2014-08-25 Thread Gonglei (Arei)
Hi, Peter. Firstly, I appreciate your so careful and useful comments very much. > -Original Message- > From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, August 26, 2014 10:25 AM > To: Gonglei (A

Re: [Qemu-devel] [PATCH] ioh3420: Remove unused ioh3420_init() declaration

2014-08-25 Thread Gonglei (Arei)
> From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Monday, August 25, 2014 7:51 PM > Subject: Re: [Qemu-devel] [PATCH] ioh3420: Remove unused ioh3420_init() > declaration > > Knut Omang writes: > > > On Mon, 2014-08-25 at 11:48 +0200, Markus Armbruster wrote: > >> writes: > >> > >> >

Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports and downstream ports

2014-08-25 Thread Gonglei (Arei)
> -Original Message- > From: Knut Omang [mailto:knut.om...@oracle.com] > Sent: Monday, August 25, 2014 7:02 PM > Subject: Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports > and > downstream ports > > On Mon, 2014-08-25 at 10:51 +, Gonglei

Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports and downstream ports

2014-08-25 Thread Gonglei (Arei)
> From: Knut Omang [mailto:knut.om...@oracle.com] > Sent: Monday, August 25, 2014 5:51 PM > Subject: Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports > and > downstream ports > > On Mon, 2014-08-25 at 09:23 +, Gonglei (Arei) wrote: > &

Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports and downstream ports

2014-08-25 Thread Gonglei (Arei)
> -Original Message- > From: Knut Omang [mailto:knut.om...@oracle.com] > Subject: Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports > and > downstream ports > > On Thu, 2014-08-21 at 17:47 +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > If ARI Forwarding

Re: [Qemu-devel] [PATCH v2 3/4] ioh3420: Remove obsoleted, unused ioh3420_init function

2014-08-25 Thread Gonglei (Arei)
> -Original Message- > From: Knut Omang [mailto:knut.om...@oracle.com] > Sent: Sunday, August 24, 2014 9:32 PM > To: qemu-devel@nongnu.org > Cc: Michael S. Tsirkin; Alexey Kardashevskiy; Juan Quintela; Marcel Apfelbaum; > Markus Armbruster; Paolo Bonzini; Gonglei (Ar

Re: [Qemu-devel] [bisected] VNC server can't get all sent chars correctly

2014-08-25 Thread Gonglei (Arei)
> From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Monday, August 25, 2014 3:30 PM > To: Michael Tokarev > Cc: qemu-devel; Gonglei (Arei); Gabriele Giacone; Gerd Hoffmann; > 758...@bugs.debian.org > Subject: Re: [Qemu-devel] [bisected] VNC server can't get all

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

2014-08-25 Thread Gonglei (Arei)
Ping, please. Any comments? Thanks. Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Thursday, August 21, 2014 10:11 AM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; Huangweidong (C); pbonz...@redhat.com; > afaer...@suse.de; i

Re: [Qemu-devel] [PATCH v2 4/4] ioh3420: Enable ARI forwarding

2014-08-24 Thread Gonglei (Arei)
> From: Michael S. Tsirkin [mailto:m...@redhat.com] > Subject: Re: [PATCH v2 4/4] ioh3420: Enable ARI forwarding > > On Sun, Aug 24, 2014 at 03:32:20PM +0200, Knut Omang wrote: > > Signed-off-by: Knut Omang > > BTW pcie_cap_is_arifwd_enabled is still unused. Not yet, but I have posted a patch s

Re: [Qemu-devel] [PATCH v2] monitor: fix debug print compiling error

2014-08-24 Thread Gonglei (Arei)
Hi, Cc'ing qemu-trivial. Please consider receiving, thanks. Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Thursday, August 21, 2014 9:03 PM > To: qemu-devel@nongnu.org > Cc: lcapitul...@redhat.com; Huangweidong (C); peter.crosthwa...@x

Re: [Qemu-devel] [bisected] VNC server can't get all sent chars correctly

2014-08-24 Thread Gonglei (Arei)
Hi, > From: Michael Tokarev [mailto:m...@tls.msk.ru] > Sent: Saturday, August 23, 2014 4:56 PM > To: qemu-devel > Cc: Gerd Hoffmann; Gonglei (Arei); 758...@bugs.debian.org; Gabriele > Giacone > Subject: [bisected] VNC server can't get all sent chars correctly > >

Re: [Qemu-devel] [Xen-devel] [PATCH v4] Hvmloader: Modify ACPI to only supply _EJ0 methods for PCIslots that support hotplug by runtime patching

2014-08-22 Thread Gonglei (Arei)
nongnu.org; xen-de...@lists.xen.org; > johannes.kra...@googlemail.com; Gonglei (Arei); Stefano Stabellini; Gaowei > (UVP); Jan Beulich; Anthony Perard > Subject: Re: [Xen-devel] [PATCH v4] Hvmloader: Modify ACPI to only supply _EJ0 > methods for PCIslots that support hotplug by runtime patching >

Re: [Qemu-devel] [PATCH] linux-user: fix file descriptor leaks

2014-08-22 Thread Gonglei (Arei)
> -Original Message- > From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of zhanghailiang > Sent: Friday, August 22, 2014 4:24 PM > To: qemu-devel@nongnu.org > Cc: qemu-triv...@nongnu.org; riku.voi...@iki

Re: [Qemu-devel] [PATCH v2 2/2] pci: add check for pcie root ports and downstream ports

2014-08-21 Thread Gonglei (Arei)
> From: Marcel Apfelbaum [mailto:marce...@redhat.com] > Sent: Friday, August 22, 2014 2:34 PM > Subject: Re: [PATCH v2 2/2] pci: add check for pcie root ports and downstream > ports > > On Thu, 2014-08-21 at 17:47 +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > If ARI Forwarding i

Re: [Qemu-devel] [PATCH v2 1/2] qdev: Introduce a function to get qbus's parent

2014-08-21 Thread Gonglei (Arei)
> From: Hu Tao [mailto:hu...@cn.fujitsu.com] > On Thu, Aug 21, 2014 at 05:47:45PM +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > We need to use qbus's parent and get its name. > > > > Signed-off-by: Gonglei > > --- > > hw/core/qdev.c | 7 +++ > > include/hw/qdev-core

Re: [Qemu-devel] [PATCH] monitor: fix debug print compiling error

2014-08-21 Thread Gonglei (Arei)
> -Original Message- > From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Thursday, August 21, 2014 8:54 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org Developers; Huangweidong (C); Luiz Capitu

Re: [Qemu-devel] [PATCH] pcie: Fix incorrect write to device ctl2 register

2014-08-21 Thread Gonglei (Arei)
> -Original Message- > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: Thursday, August 21, 2014 4:59 PM > To: Gonglei (Arei); qemu-devel@nongnu.org > Cc: Huangweidong (C); marce...@redhat.com; m...@redhat.com; > knut.om...@ora

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] pci_bridge: manually destroy memory regions within PCIBridgeWindows

2014-08-20 Thread Gonglei (Arei)
> -Original Message- > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: Wednesday, August 20, 2014 11:50 PM > To: qemu-devel@nongnu.org > Cc: peter.mayd...@linaro.org; Gonglei (Arei); knut.om...@oracle.com; > m...@redhat.

Re: [Qemu-devel] [PATCH 2/2] pci: add check for pcie root ports and downstream ports

2014-08-20 Thread Gonglei (Arei)
> From: Marcel Apfelbaum [mailto:marce...@redhat.com] > Subject: Re: [PATCH 2/2] pci: add check for pcie root ports and downstream > ports > > On Wed, 2014-08-20 at 03:20 +, Gonglei (Arei) wrote: > > Hi, > > > > > > Right now, ARI Forwarding dose not sup

Re: [Qemu-devel] [PATCH 3/3] ioh3420: Support ARI forwarding

2014-08-20 Thread Gonglei (Arei)
> > static int ioh3420_initfn(PCIDevice *d) > > { > > +PCIBridge* br = PCI_BRIDGE(d); > > PCIEPort *p = PCIE_PORT(d); > > PCIESlot *s = PCIE_SLOT(d); > > +uint8_t *exp_cap; > > int rc; > > char tmp[100]; > > sprintf(tmp, "pcie_port.%d", s->slot); > > @@ -121,6 +12

Re: [Qemu-devel] [PATCH 3/3] ioh3420: Support ARI forwarding

2014-08-20 Thread Gonglei (Arei)
Hi, > Subject: [PATCH 3/3] ioh3420: Support ARI forwarding > > > Enable the PCIe capability bit that indicates that this port is able to > support > and forward requests to > 8 functions for ARI capable devices. > > Signed-off-by: Knut Omang > --- > hw/pci-bridge/ioh3420.c | 7 +++ > 1 f

[Qemu-devel] [Bug] QEMU crashed with latest qemu master tree code

2014-08-20 Thread Gonglei (Arei)
Hi, Command line: #./qemu-system-x86_64 -enable-kvm -m 2048 -machine q35 -device ide-drive,bus=ide.2,drive=MacHDD \ -drive id=MacHDD,if=none,file=/mnt/sdb/gonglei/image/redhat_q35.img -monitor stdio -vnc :10 -readconfig ../docs/q35-chipset.cfg (qemu) Segmentation fault (core dumped) Some clews

Re: [Qemu-devel] [Question] Why doesn't PCIe hotplug work for Q35 machine?

2014-08-19 Thread Gonglei (Arei)
> On Wed, 2014-08-20 at 06:39 +0200, Knut Omang wrote: > > On Wed, 2014-08-20 at 02:16 +, Gonglei (Arei) wrote: > > > > -Original Message- > > > > From: Michael S. Tsirkin [mailto:m...@redhat.com] > > > > Sent: Wednesday, August 20, 2014

Re: [Qemu-devel] [PATCH 2/2] pci: add check for pcie root ports and downstream ports

2014-08-19 Thread Gonglei (Arei)
Hi, > > Right now, ARI Forwarding dose not support in QEMU. > I would replace the above sentence with "ARI Forwarding is not supported". > OK. > By the way, there is some support for ARI, I don't know if > is enabled yet. I'll have a look. > MST had pointed out the pcie_ari_init(), but not comp

Re: [Qemu-devel] [PATCH 2/2] pci: add check for pcie root ports and downstream ports

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Tuesday, August 19, 2014 11:09 PM > To: Marcel Apfelbaum; Gonglei (Arei) > Cc: qemu-devel@nongnu.org; m...@redhat.com; Huangweidong (C); > afaer...@suse.de; imamm...@redhat.com; peter.cros

Re: [Qemu-devel] [PATCH 0/2] add check for PCIe root ports and downstream ports

2014-08-19 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > On Tue, Aug 19, 2014 at 09:08:25PM +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > Root ports and downstream ports of switches are the hot > > pluggable ports in a PCI Express hierarchy. > > PCI

Re: [Qemu-devel] [PATCH 3/3] pcie: using error_setg instead of impolite assert

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, August 19, 2014 9:51 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org Developers; Huangweidong (C); Michael S. Ts

Re: [Qemu-devel] [PATCH 3/3] pcie: using error_setg instead of impolite assert

2014-08-19 Thread Gonglei (Arei)
> > --- > > 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/hw/pci/pcie.c > > +++ b/hw/pci/pcie.c > > @@ -254,7 +254,11 @@ void pcie_cap_slot_hotplug_cb(HotplugHandler > *hot

Re: [Qemu-devel] [PATCH 1/3] qdev: add missing error check

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Tuesday, August 19, 2014 10:03 PM > To: Peter Crosthwaite; Gonglei (Arei) > Cc: qemu-devel@nongnu.org Developers; Huangweidong (C); Michael S. Tsirkin; > Huangpeng (Peter); Igor Mammed

Re: [Qemu-devel] [PATCH 2/3] qdev: Refactor device_set_realized to avoid resource leak

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: peter.crosthwa...@petalogix.com > On Tue, Aug 19, 2014 at 7:41 PM, wrote: > > From: Gonglei > > > > At present, the local variable local_err is reused at multi-places, > > Which will cause resource leak in some scenarios. > > > > The problem isn't really the

Re: [Qemu-devel] [PATCH 1/3] qdev: add missing error check

2014-08-19 Thread Gonglei (Arei)
> > If local_err is not null, the next code logic is useless. > > > > Signed-off-by: Gonglei > > --- > > hw/core/qdev.c | 5 + > > 1 file changed, 5 insertions(+) > > > > diff --git a/hw/core/qdev.c b/hw/core/qdev.c > > index da1ba48..3e7085e 100644 > > --- a/hw/core/qdev.c > > +++ b/hw/core/

Re: [Qemu-devel] [PATCH] pcihp: fix possible array out of bounds

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, August 19, 2014 11:12 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org Developers; Huangweidong (C); Michael S. Tsi

Re: [Qemu-devel] [PATCH] pcihp: fix possible array out of bounds

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: Marcel Apfelbaum [mailto:marcel.apfelb...@gmail.com] > Sent: Tuesday, August 19, 2014 11:00 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Huangweidong (C); m...@redhat.com > Subject: Re: [Qemu-devel] [PATCH] pcihp: fix possible a

Re: [Qemu-devel] [Question] Why doesn't PCIe hotplug work for Q35 machine?

2014-08-19 Thread Gonglei (Arei)
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Wednesday, August 20, 2014 5:19 AM > To: Gonglei (Arei) > Cc: Paolo Bonzini; Marcel Apfelbaum; qemu-devel@nongnu.org; > imamm...@redhat.com; arm...@redhat.com; Huangweidong (C) > Subjec

Re: [Qemu-devel] [Question] Why doesn't PCIe hotplug work for Q35 machine?

2014-08-19 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Tuesday, August 19, 2014 4:06 PM > To: Gonglei (Arei); Marcel Apfelbaum; Michael S. Tsirkin > Cc: qemu-devel@nongnu.org; imamm...@redhat.com; arm...@redhat.com; > Huangweidong (C) > S

Re: [Qemu-devel] [Question] Why doesn't PCIe hotplug work for Q35 machine?

2014-08-18 Thread Gonglei (Arei)
> >> Subject: Re: [Question] Why doesn't PCIe hotplug work for Q35 machine? > >> > >> On Sun, 2014-08-17 at 13:00 +0200, Michael S. Tsirkin wrote: > >>> On Fri, Aug 15, 2014 at 07:33:29AM +, Gonglei (Arei) wrote: > >>>> Hi, > &

Re: [Qemu-devel] [Question] Why doesn't PCIe hotplug work for Q35 machine?

2014-08-18 Thread Gonglei (Arei)
Hi, > Subject: Re: [Question] Why doesn't PCIe hotplug work for Q35 machine? > > On Sun, 2014-08-17 at 13:00 +0200, Michael S. Tsirkin wrote: > > On Fri, Aug 15, 2014 at 07:33:29AM +, Gonglei (Arei) wrote: > > > Hi, > > > > > > I noticed that th

[Qemu-devel] [Question] Why doesn't PCIe hotplug work for Q35 machine?

2014-08-15 Thread Gonglei (Arei)
Hi, I noticed that the qemu-2.1 release change log says " PCIe: Basic hot-plug/hot-unplug support for Q35 machine." And then I made a testing for the hotplugging function of Q35. But I'm failed, and I got the dmesg log in guest os as below: [ 159.035250] Pciehp :05:00.0:pcie24: Button presse

Re: [Qemu-devel] [PATCH 2/3] net: Flush queues when runstate changes back to running

2014-08-14 Thread Gonglei (Arei)
Hi, > Subject: [Qemu-devel] [PATCH 2/3] net: Flush queues when runstate changes > back to running > > When the runstate changes back to running, we definitely need to flush > queues to get packets flowing again. > > Here we implement this in the net layer: > (1) add a member 'VMChangeStateEntry

Re: [Qemu-devel] USB PCI host bus adapter hot plug

2014-08-12 Thread Gonglei (Arei)
> >>> I noticed that QMP's "device_add usb-ehci,id=i2,bus=pci.0" fails on PCI > >>> hotplug. The same for pci-ohci and this is because their initfn() do > >>> "dc->hotpluggable = false". So I removed those and now I can hotplug > USB > >>> hosts but none of them is able to actually work: > >>> >

Re: [Qemu-devel] [PATCH] qemu-options.hx: fix a typo of chardev

2014-08-12 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH] qemu-options.hx: fix a typo of chardev > > Change host to port. > > Signed-off-by: Liming Wang > --- > qemu-options.hx | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Gonglei Cc'ing qemu-trivial@ Best regards, -Gonglei > diff --git a/

Re: [Qemu-devel] the whole virtual machine hangs when IO does not come back!

2014-08-11 Thread Gonglei (Arei)
Hi, Cc'ing Kevin, Stefan and Paolo for more attentions. Best regards, -Gonglei > -Original Message- > Subject: [Qemu-devel] the whole virtual machine hangs when IO does not come > back! > > Hi, > > I tested the reliability of qemu in the IPSAN environment as follows: > (1) create one

Re: [Qemu-devel] USB PCI host bus adapter hot plug

2014-08-10 Thread Gonglei (Arei)
Hi, > Subject: [Qemu-devel] USB PCI host bus adapter hot plug > > Hi! > > I noticed that QMP's "device_add usb-ehci,id=i2,bus=pci.0" fails on PCI > hotplug. The same for pci-ohci and this is because their initfn() do > "dc->hotpluggable = false". So I removed those and now I can hotplug USB >

Re: [Qemu-devel] [RFC PATCH v3 1/6] QEMUSizedBuffer/QEMUFile

2014-08-10 Thread Gonglei (Arei)
> -Original Message- > From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of Sanidhya Kashyap > Sent: Saturday, August 09, 2014 2:27 PM > To: qemu list > Cc: Sanidhya Kashyap; Joel Schopp; Stefan Berger; D

Re: [Qemu-devel] [patch] qcow2: double free snapshots

2014-08-10 Thread Gonglei (Arei)
Hi, > Subject: [Qemu-devel] [patch] qcow2: double free snapshots > > In qcow2_open(), if qcow2_read_snapshots() failed, qcow2_open() -> > qcow2_free_snapshots() will be called, NULL snapshots dereference happened. > because qcow2_free_snapshots has been performed before in the fail case of > qcow

Re: [Qemu-devel] [PATCH v3 0/2] ivshmem: update documentation, add client/server tools

2014-08-08 Thread Gonglei (Arei)
Hi, > Subject: Re: [Qemu-devel] [PATCH v3 0/2] ivshmem: update documentation, > add client/server tools > > Hello Gonglei, > > On 08/08/2014 11:30 AM, Gonglei (Arei) wrote: > > If you can describe the steps of using example about > > your ivshmem-client and ivs

Re: [Qemu-devel] [PATCH v3 0/2] ivshmem: update documentation, add client/server tools

2014-08-08 Thread Gonglei (Arei)
Hi, > Subject: [Qemu-devel] [PATCH v3 0/2] ivshmem: update documentation, add > client/server tools > > Here is a patchset containing an update on ivshmem specs documentation and > importing ivshmem server and client tools. > These tools have been written from scratch and are not related to what

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Gonglei (Arei)
> Subject: Re: [PATCH v5 0/8] modify boot order of guest, and take effect after > rebooting > > Il 07/08/2014 13:50, Gonglei (Arei) ha scritto: > > Hi, > > > > Ping... please. > > > > TBH, I am confused which maintainer can maintain the patch serials ab

Re: [Qemu-devel] [PATCH v6 7/7] exec: add parameter errp to gethugepagesize

2014-08-07 Thread Gonglei (Arei)
> -Original Message- > From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of Peter Crosthwaite > Sent: Thursday, August 07, 2014 7:47 PM > To: Hu Tao > Cc: Yasunori Goto; Paolo Bonzini; Yasuaki Isimatu; qe

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Gonglei (Arei)
Hi, Ping... please. TBH, I am confused which maintainer can maintain the patch serials about bootindex. Gerd is seemingly not in maillist later two weeks. Markus? Paolo? MST? PMM? Eduardo? Thanks for any help. Best regards, -Gonglei > -Original Message- > From: Gonglei

Re: [Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by fopen()

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by > fopen() > > The function fopen() may fail, so check its return value. > > Signed-off-by: zhanghailiang > Signed-off-by: Li Liu > --- > qtest.c | 5 + > tests/bios-tables-test.c | 2 ++ > 2 files

Re: [Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc()

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc() > > Signed-off-by: zhanghailiang > --- > slirp/misc.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/slirp/misc.c b/slirp/misc.c > index b8eb74c..0109c9f 100644 > --- a/slirp/misc.c

Re: [Qemu-devel] [PATCH v3 05/10] util/path: check return value of malloc()

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 05/10] util/path: check return value of > malloc() > > Signed-off-by: zhanghailiang > --- Reviewed-by: Gonglei Best regards, -Gonglei > util/path.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/util/path.c b/util/path.c

Re: [Qemu-devel] [PATCH v3 02/10] monitor: fix access freed memory

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 02/10] monitor: fix access freed memory > > The function monitor_fdset_dup_fd_find_remove() references member of > 'mon_fdset' > which may be freed in function monitor_fdset_cleanup() > > Signed-off-by: zhanghailiang > --- Reviewed-by: Gonglei Best regards, -

Re: [Qemu-devel] [PATCH v3 1/8] CODING_STYLE: Section about conditional statement

2014-08-05 Thread Gonglei (Arei)
Hi, > > > > > >> > Yoda conditions lack readability, and QEMU has a > > >> > strict compiler configuration for checking a common > > >> > mistake like "if (dev = NULL)". Make it a written rule. > > > > >> > > >> I know this is my suggested text, but now that I'm re-reading it, I'd > > >> recommen

Re: [Qemu-devel] [PATCH v3 for-2.2 0/8] don't use Yoda conditions

2014-08-05 Thread Gonglei (Arei)
Hi, > > > > $WHATEVER: don't use 'Yoda conditions' > > > > 'Yoda conditions' are not part of idiomatic QEMU coding > > style, so rewrite them in the more usual order. > > > OK but why stop at these files? How about this > instead? > I just search c files by using key words like "NULL ==" etc.

Re: [Qemu-devel] [PATCH v4 0/8] don't use Yoda conditions

2014-08-05 Thread Gonglei (Arei)
Hi, > > > > $WHATEVER: don't use 'Yoda conditions' > > > > 'Yoda conditions' are not part of idiomatic QEMU coding > > style, so rewrite them in the more usual order. > > > > v4: > > - trivial typo for patch 1/8 suggested by Eric, thanks. > > Series: Reviewed-by: Eric Blake > > Adding qemu-tri

Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command

2014-08-04 Thread Gonglei (Arei)
Hi, > >> >> >> >> Subject: Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex > >> >> command > >> >> >> >> > >> >> >> >> On Fri, Jul 25, 2014 at 02:52:50PM +0800, > arei.gong...@huawei.com > >> >> wrote: > >> >> >> >> > From: Gonglei > >> >> >> >> > > >> >> >> >> > Adds "set-bootindex id=xx,

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-04 Thread Gonglei (Arei)
Hi, I' am so sorry for missing cc'ed Eduardo. Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Monday, August 04, 2014 8:46 PM > To: qemu-devel@nongnu.org > Subject: [PATCH v5 0/8] modify boot order of guest, and take effect af

Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command

2014-08-04 Thread Gonglei (Arei)
Hi, Markus > > > >> >> >> Subject: Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex > >> command > >> >> >> > >> >> >> On Fri, Jul 25, 2014 at 02:52:50PM +0800, arei.gong...@huawei.com > >> wrote: > >> >> >> > From: Gonglei > >> >> >> > > >> >> >> > Adds "set-bootindex id=xx,bootindex=xx,suf

Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command

2014-08-04 Thread Gonglei (Arei)
Hi, Markus > >> >> Subject: Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex > command > >> >> > >> >> On Fri, Jul 25, 2014 at 02:52:50PM +0800, arei.gong...@huawei.com > wrote: > >> >> > From: Gonglei > >> >> > > >> >> > Adds "set-bootindex id=xx,bootindex=xx,suffix=xx" QMP command. > >> >

Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command

2014-08-04 Thread Gonglei (Arei)
Hi, > >> Subject: Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command > >> > >> On Fri, Jul 25, 2014 at 02:52:50PM +0800, arei.gong...@huawei.com wrote: > >> > From: Gonglei > >> > > >> > Adds "set-bootindex id=xx,bootindex=xx,suffix=xx" QMP command. > >> > > >> > Example QMP command:

Re: [Qemu-devel] [PATCH v4 1/8] bootindex: add modify_boot_device_path function

2014-08-04 Thread Gonglei (Arei)
Hi, > >> > >> > On Thu, Jul 31, 2014 at 05:47:26PM +0800, arei.gong...@huawei.com > wrote: > >> > [...] > >> > > +void modify_boot_device_path(int32_t bootindex, DeviceState *dev, > >> > > + const char *suffix) > >> > > +{ > >> > > +FWBootEntry *i, *old_entry = NULL

Re: [Qemu-devel] [PATCH v4 1/8] bootindex: add modify_boot_device_path function

2014-08-04 Thread Gonglei (Arei)
Hi, > > > On Thu, Jul 31, 2014 at 05:47:26PM +0800, arei.gong...@huawei.com wrote: > > [...] > > > +void modify_boot_device_path(int32_t bootindex, DeviceState *dev, > > > + const char *suffix) > > > +{ > > > +FWBootEntry *i, *old_entry = NULL; > > > + > > > +a

Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command

2014-08-03 Thread Gonglei (Arei)
Hi, > Subject: Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command > > On Fri, Jul 25, 2014 at 02:52:50PM +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > Adds "set-bootindex id=xx,bootindex=xx,suffix=xx" QMP command. > > > > Example QMP command: > > -> { "execute": "se

Re: [Qemu-devel] [PATCH v4 4/8] bootindex: delete bootindex when device is removed

2014-08-03 Thread Gonglei (Arei)
Best regards, -Gonglei > -Original Message- > From: Eduardo Habkost [mailto:ehabk...@redhat.com] > Sent: Friday, August 01, 2014 10:46 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; chenliang (T); Huangweidong (C); > m...@redhat.com; a...@ozlabs.ru; hu...@cn.

Re: [Qemu-devel] [PATCH v2 4/7] bootindex: delete bootindex when device is removed

2014-08-03 Thread Gonglei (Arei)
Hi, > > > > > > > +del_boot_device_path(dev); > > > > > > You can call this from device_finalize() instead of placing it into each > > > individual device. > > > > > Maybe put this call in device_finalize is not a good idea. > > I have three reasons: > > > > 1. the device's some memory have be

Re: [Qemu-devel] [PATCH v3 1/8] CODING_STYLE: Section about conditional statement

2014-08-03 Thread Gonglei (Arei)
Hi, > > Yoda conditions lack readability, and QEMU has a > > strict compiler configuration for checking a common > > mistake like "if (dev = NULL)". Make it a written rule. > > > > Signed-off-by: Gonglei > > --- > > CODING_STYLE | 14 ++ > > 1 file changed, 14 insertions(+) > > > > d

Re: [Qemu-devel] [PATCH v2 2/8] usb: a trivial code change for more idiomatic writing style

2014-07-31 Thread Gonglei (Arei)
Hi, > Subject: Re: [Qemu-devel] [PATCH v2 2/8] usb: a trivial code change for more > idiomatic writing style > > Andreas Färber writes: > > > Am 01.08.2014 05:32, schrieb Gonglei (Arei): > >> Hi, > >> > >>> Subject: Re: [PATCH v2 2/8] usb: a t

Re: [Qemu-devel] [PATCH v2 2/8] usb: a trivial code change for more idiomatic writing style

2014-07-31 Thread Gonglei (Arei)
Hi, > Subject: Re: [PATCH v2 2/8] usb: a trivial code change for more idiomatic > writing > style > > Am 01.08.2014 05:32, schrieb Gonglei (Arei): > > Hi, > > > >> Subject: Re: [PATCH v2 2/8] usb: a trivial code change for more idiomatic > writing >

Re: [Qemu-devel] [PATCH v2 2/8] usb: a trivial code change for more idiomatic writing style

2014-07-31 Thread Gonglei (Arei)
Hi, > Subject: Re: [PATCH v2 2/8] usb: a trivial code change for more idiomatic > writing > style > > On 07/31/2014 08:32 PM, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > Signed-off-by: Gonglei > > --- > > hw/usb/dev-audio.c | 2 +- > > hw/usb/dev-mtp.c | 4 ++-- > > hw/usb/hcd-

Re: [Qemu-devel] [PATCH v2 1/8] CODING_STYLE: Section about conditional statement

2014-07-31 Thread Gonglei (Arei)
Hi, > Subject: Re: [PATCH v2 1/8] CODING_STYLE: Section about conditional > statement > > On 07/31/2014 08:32 PM, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > Yoda conidtions lack of readability, and QEMU have a > > s/conidtions/conditions/ > s/of // > s/have/has/ > OK. > > strict

Re: [Qemu-devel] [PATCH v2 for-2.2 0/8] about Yoda conditions

2014-07-31 Thread Gonglei (Arei)
Hi, > Subject: Re: [PATCH v2 for-2.2 0/8] about Yoda conditions > > On 07/31/2014 08:32 PM, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > $WHATEVER: don't use 'Yoda conditions' > > > > 'Yoda conditions' are not part of idiomatic QEMU coding > > style, so rewrite them in the more usual

Re: [Qemu-devel] [PATCH for-2.2 0/7] a trivial code change for more idiomatic writing style

2014-07-31 Thread Gonglei (Arei)
Hi, > Subject: Re: [Qemu-devel] [PATCH for-2.2 0/7] a trivial code change for more > idiomatic writing style > > On Thu, Jul 31, 2014 at 10:39 PM, Peter Maydell > wrote: > > On 31 July 2014 13:28, wrote: > >> From: Gonglei > >> > >> Gonglei (7): > >> usb: a trivial code change for more idio

Re: [Qemu-devel] [PATCH for-2.2 0/7] a trivial code change for more idiomatic writing style

2014-07-31 Thread Gonglei (Arei)
Hi, PMM > -Original Message- > From: Peter Maydell [mailto:peter.mayd...@linaro.org] > Sent: Thursday, July 31, 2014 8:40 PM > Subject: Re: [PATCH for-2.2 0/7] a trivial code change for more idiomatic > writing > style > > On 31 July 2014 13:28, wrote: > > From: Gonglei > > > > Gongle

Re: [Qemu-devel] [PATCH v3 2/7] bootindex: add del_boot_device_path function

2014-07-30 Thread Gonglei (Arei)
Hi, > > Introduce a del_boot_device_path() cleanup fw_cfg content > > when hot-unplugging devcie refer to bootindex. > > s/devcie/device/ > > sounds odd; maybe: > > Introduce del_boot_device_path() to clean up fw_cfg content when > hot-unplugging a device that refers to a bootindex. > OK. Than

Re: [Qemu-devel] [PATCH v3 5/7] qmp: add set-bootindex command

2014-07-30 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Eric Blake [mailto:ebl...@redhat.com] > Sent: Thursday, July 31, 2014 6:37 AM > Subject: Re: [PATCH v3 5/7] qmp: add set-bootindex command > > On 07/25/2014 10:45 PM, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > Adds "set-bootindex id=xx,booti

Re: [Qemu-devel] [PATCH v2 4/7] bootindex: delete bootindex when device is removed

2014-07-30 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Friday, July 25, 2014 5:52 PM > > > +del_boot_device_path(dev); > > You can call this from device_finalize() instead of placing it into each > individual device. > Maybe put this call in device_finaliz

Re: [Qemu-devel] [PATCH v2 1/7] bootindex: add modify_boot_device_path function

2014-07-29 Thread Gonglei (Arei)
Hi, Gerd > > > > > > > I think it is ok to allow only *changing* the bootindex. > > > > > > > > > > > > > Yes, that's no problem. > > > > > > > > > > But then yoy always will have a old entry where you can take the > > > > > suffix > > > > > from, and you don't need the suffix as parameter for t

<    2   3   4   5   6   7   8   9   10   >