Re: [Qemu-devel] [PATCH v3] Add param Error ** for msi_init()

2016-03-31 Thread Cao jin
On 03/30/2016 05:00 PM, Marcel Apfelbaum wrote: On 03/30/2016 07:10 AM, Cao jin wrote: Hi, Yes, I should add more hint message. I don`t quite understand about: /have a "warning only" error type so the reporting party can decide to issue a warning or to fail/ Do you mean still using VM

Re: [Qemu-devel] [PATCH v3] Add param Error ** for msi_init()

2016-03-30 Thread Marcel Apfelbaum
On 03/30/2016 07:10 AM, Cao jin wrote: Hi Marcel, Thanks for your quick review for this big fat patch:) please see my comments inline. On 03/30/2016 04:56 AM, Marcel Apfelbaum wrote: On 03/28/2016 01:44 PM, Cao jin wrote: -#define VMXNET3_USE_64BIT (true) -#define VMXNET3_PE

Re: [Qemu-devel] [PATCH v3] Add param Error ** for msi_init()

2016-03-29 Thread Cao jin
Hi Marcel, Thanks for your quick review for this big fat patch:) please see my comments inline. On 03/30/2016 04:56 AM, Marcel Apfelbaum wrote: On 03/28/2016 01:44 PM, Cao jin wrote: -#define VMXNET3_USE_64BIT (true) -#define VMXNET3_PER_VECTOR_MASK (false) - -static bool -vm

Re: [Qemu-devel] [PATCH v3] Add param Error ** for msi_init()

2016-03-29 Thread Marcel Apfelbaum
On 03/28/2016 01:44 PM, Cao jin wrote: Add param Error **errp, and change pci_add_capability() to pci_add_capability2(), because pci_add_capability() report error, and msi_init() is widely used in realize(), so it is not suitable for realize(). Hi, The patch is looking good in my opinion, a fe

[Qemu-devel] [PATCH v3] Add param Error ** for msi_init()

2016-03-28 Thread Cao jin
Add param Error **errp, and change pci_add_capability() to pci_add_capability2(), because pci_add_capability() report error, and msi_init() is widely used in realize(), so it is not suitable for realize(). Also fix all the callers who should deal with the msi_init() failure but actually not. The a