Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-10-10 Thread Dmitry Fleytman
> On 11 Oct 2016, at 6:35, Cao jin wrote: > > > >> On 10/06/2016 05:39 PM, Dmitry Fleytman wrote: >> > >> >> Hello, >> >> Yes, from what I see, this call is wrong and leads to >> reference leaks on device unload at migration target. >> It should be removed. >> >> Best regards, >> Dmitry >

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-10-10 Thread Cao jin
On 10/06/2016 05:39 PM, Dmitry Fleytman wrote: Hello, Yes, from what I see, this call is wrong and leads to reference leaks on device unload at migration target. It should be removed. Best regards, Dmitry Hi,Dmitry From what I saw, current code will call msix_vector_use twice on

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-10-06 Thread Dmitry Fleytman
> On 6 Oct 2016, at 17:43, Dr. David Alan Gilbert wrote: > > * Dmitry Fleytman (dmi...@daynix.com) wrote: >> >>> On 30 Sep 2016, at 15:08 PM, Markus Armbruster wrote: >>> >>> Cao jin writes: >>> > On 09/29/2016 10:42 PM, Markus Armbruster wrote: > Cao jin writes: > >

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-10-06 Thread Dr. David Alan Gilbert
* Dmitry Fleytman (dmi...@daynix.com) wrote: > > > On 30 Sep 2016, at 15:08 PM, Markus Armbruster wrote: > > > > Cao jin writes: > > > >> On 09/29/2016 10:42 PM, Markus Armbruster wrote: > >>> Cao jin writes: > >>> > >> > static int vmxnet3_post_load(void *opaque, int version_id) > >>

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-10-06 Thread Dmitry Fleytman
> On 30 Sep 2016, at 15:08 PM, Markus Armbruster wrote: > > Cao jin writes: > >> On 09/29/2016 10:42 PM, Markus Armbruster wrote: >>> Cao jin writes: >>> >> static int vmxnet3_post_load(void *opaque, int version_id) { VMXNET3State *s = opaque; -PCIDevice *d =

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-09-30 Thread Markus Armbruster
Cao jin writes: > On 09/29/2016 10:42 PM, Markus Armbruster wrote: >> Cao jin writes: >> > >>> static int vmxnet3_post_load(void *opaque, int version_id) >>> { >>> VMXNET3State *s = opaque; >>> -PCIDevice *d = PCI_DEVICE(s); >>> >>> net_tx_pkt_init(&s->tx_pkt, PCI_DEVICE(s),

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-09-30 Thread Cao jin
On 09/29/2016 10:42 PM, Markus Armbruster wrote: Cao jin writes: static int vmxnet3_post_load(void *opaque, int version_id) { VMXNET3State *s = opaque; -PCIDevice *d = PCI_DEVICE(s); net_tx_pkt_init(&s->tx_pkt, PCI_DEVICE(s), s->max_tx_frags, s->p

Re: [Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-09-29 Thread Markus Armbruster
Cao jin writes: > The corresponding msi flag is already dropped in commit 1070048e. Repeating the rationale for the change wouldn't hurt: Internal flag msix_used is unnecessary, it has the same effect as msix_enabled(). The corresponding msi flag is already dropped in commit 107004

[Qemu-devel] [PATCH v3 8/8] vmxnet3: remove unnecessary internal msix state flag

2016-09-14 Thread Cao jin
The corresponding msi flag is already dropped in commit 1070048e. CC: Dmitry Fleytman CC: Jason Wang CC: Michael S. Tsirkin CC: Markus Armbruster CC: Marcel Apfelbaum Signed-off-by: Cao jin --- hw/net/vmxnet3.c | 38 ++ 1 file changed, 14 insertions(+), 2