Re: [PATCH] virtio_console: free unused buffers with virtio port

2019-03-11 Thread Michael S. Tsirkin
On Tue, Mar 05, 2019 at 02:09:06AM -0500, Pankaj Gupta wrote: > > Hello Michael, > > Thanks for your reply. > > > > > On Mon, Mar 04, 2019 at 06:35:11PM +0530, Pankaj Gupta wrote: > > > The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") > > > deffered detaching of unused

Re: [PATCH] virtio_console: free unused buffers with virtio port

2019-03-04 Thread Pankaj Gupta
Hello Michael, Thanks for your reply. > > On Mon, Mar 04, 2019 at 06:35:11PM +0530, Pankaj Gupta wrote: > > The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") > > deffered detaching of unused buffer to virtio device unplug time. > > > > This causes unplug/replug of

Re: [PATCH] virtio_console: free unused buffers with virtio port

2019-03-04 Thread Michael S. Tsirkin
On Mon, Mar 04, 2019 at 06:35:11PM +0530, Pankaj Gupta wrote: > The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") > deffered detaching of unused buffer to virtio device unplug time. > > This causes unplug/replug of single port in virtio device with an > error "Error

Re: [PATCH] virtio_console: free unused buffers with virtio port

2019-03-04 Thread Pankaj Gupta
Adding Gal in CC [Forgot to add] > > The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") > deffered detaching of unused buffer to virtio device unplug time. > > This causes unplug/replug of single port in virtio device with an > error "Error allocating inbufs\n". As we

[PATCH] virtio_console: free unused buffers with virtio port

2019-03-04 Thread Pankaj Gupta
The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") deffered detaching of unused buffer to virtio device unplug time. This causes unplug/replug of single port in virtio device with an error "Error allocating inbufs\n". As we don't free the unused buffers attached