Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-23 Thread Cao jin
On 03/23/2016 04:12 PM, Markus Armbruster wrote: Cao jin writes: Really appreciate your review, I just finished reading all the comments and discussion. Seems pci_add_capability2()(commit cd9aa33e introduced) doesn`t follow the new error reporting rule(report

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-23 Thread Markus Armbruster
Cao jin writes: > On 03/02/2016 05:13 PM, Markus Armbruster wrote: >> This got lost over the Christmas break, sorry. >> >> Cc'ing Marcel for additional PCI expertise. >> >> Cao jin writes: >> >>> msi_init() is a supporting function in PCI

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-22 Thread Cao jin
On 03/02/2016 05:13 PM, Markus Armbruster wrote: This got lost over the Christmas break, sorry. Cc'ing Marcel for additional PCI expertise. Cao jin writes: msi_init() is a supporting function in PCI device initialization, in order to convert .init() to .realize(),

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-04 Thread Michael S. Tsirkin
On Fri, Mar 04, 2016 at 01:57:05PM +0100, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: > > > On Fri, Mar 04, 2016 at 09:42:02AM +0100, Markus Armbruster wrote: > >> Plugging an MSI-capable device into an MSI-incapable board works just > >> fine, both for physical and

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-04 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Fri, Mar 04, 2016 at 09:42:02AM +0100, Markus Armbruster wrote: >> Plugging an MSI-capable device into an MSI-incapable board works just >> fine, both for physical and for virtual hardware. What doesn't work is >> plugging an MSI-capable device

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-04 Thread Michael S. Tsirkin
On Fri, Mar 04, 2016 at 09:42:02AM +0100, Markus Armbruster wrote: > Plugging an MSI-capable device into an MSI-incapable board works just > fine, both for physical and for virtual hardware. What doesn't work is > plugging an MSI-capable device into an MSI-capable board with *broken* > MSI

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-04 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Thu, Mar 03, 2016 at 04:03:16PM +0100, Markus Armbruster wrote: >> "Michael S. Tsirkin" writes: >> >> > On Thu, Mar 03, 2016 at 01:19:09PM +0200, Marcel Apfelbaum wrote: >> >> On 03/03/2016 12:45 PM, Michael S. Tsirkin wrote:

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Michael S. Tsirkin
On Thu, Mar 03, 2016 at 04:03:16PM +0100, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: > > > On Thu, Mar 03, 2016 at 01:19:09PM +0200, Marcel Apfelbaum wrote: > >> On 03/03/2016 12:45 PM, Michael S. Tsirkin wrote: > >> >On Thu, Mar 03, 2016 at 12:12:27PM +0200, Marcel

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Thu, Mar 03, 2016 at 01:19:09PM +0200, Marcel Apfelbaum wrote: >> On 03/03/2016 12:45 PM, Michael S. Tsirkin wrote: >> >On Thu, Mar 03, 2016 at 12:12:27PM +0200, Marcel Apfelbaum wrote: >> +int msi_init(struct PCIDevice *dev, uint8_t offset,

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Markus Armbruster
Marcel Apfelbaum writes: > On 03/02/2016 11:13 AM, Markus Armbruster wrote: >> This got lost over the Christmas break, sorry. >> >> Cc'ing Marcel for additional PCI expertise. >> >> Cao jin writes: >> >>> msi_init() is a supporting function in PCI

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Michael S. Tsirkin
On Thu, Mar 03, 2016 at 01:19:09PM +0200, Marcel Apfelbaum wrote: > On 03/03/2016 12:45 PM, Michael S. Tsirkin wrote: > >On Thu, Mar 03, 2016 at 12:12:27PM +0200, Marcel Apfelbaum wrote: > +int msi_init(struct PCIDevice *dev, uint8_t offset, unsigned int > nr_vectors, > +

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Marcel Apfelbaum
On 03/03/2016 12:45 PM, Michael S. Tsirkin wrote: On Thu, Mar 03, 2016 at 12:12:27PM +0200, Marcel Apfelbaum wrote: +int msi_init(struct PCIDevice *dev, uint8_t offset, unsigned int nr_vectors, + bool msi64bit, bool msi_per_vector_mask, Error **errp) { unsigned int

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Michael S. Tsirkin
On Thu, Mar 03, 2016 at 12:12:27PM +0200, Marcel Apfelbaum wrote: > >>+int msi_init(struct PCIDevice *dev, uint8_t offset, unsigned int > >>nr_vectors, > >>+ bool msi64bit, bool msi_per_vector_mask, Error **errp) > >> { > >> unsigned int vectors_order; > >>-uint16_t flags; >

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-03 Thread Marcel Apfelbaum
On 03/02/2016 11:13 AM, Markus Armbruster wrote: This got lost over the Christmas break, sorry. Cc'ing Marcel for additional PCI expertise. Cao jin writes: msi_init() is a supporting function in PCI device initialization, in order to convert .init() to .realize(),

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-02 Thread Cao jin
hi, Markus Thanks for still remembering this patch, and quite a lot response:) I will give a appropriate response after I read & understand them all.(so, not cc other guys here) On 03/02/2016 05:13 PM, Markus Armbruster wrote: This got lost over the Christmas break, sorry. Cc'ing Marcel for

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-02 Thread Markus Armbruster
This got lost over the Christmas break, sorry. Cc'ing Marcel for additional PCI expertise. Cao jin writes: > msi_init() is a supporting function in PCI device initialization, > in order to convert .init() to .realize(), it should be modified first. "Supporting

[Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2015-12-15 Thread Cao jin
msi_init() is a supporting function in PCI device initialization, in order to convert .init() to .realize(), it should be modified first. Also modify the callers Bonus: add more comment for msi_init(). Signed-off-by: Cao jin --- hw/audio/intel-hda.c | 10