Re: [PATCH v19 3/7] xbitmap: add more operations

2017-12-15 Thread Matthew Wilcox
On Sat, Dec 16, 2017 at 01:31:24PM +0900, Tetsuo Handa wrote: > Michael S. Tsirkin wrote: > > On Sat, Dec 16, 2017 at 01:21:52AM +0900, Tetsuo Handa wrote: > > > My understanding is that virtio-balloon wants to handle sparsely spreaded > > > unsigned long values (which is PATCH 4/7) and wants to fi

Re: [PATCH] drm/virtio: Add window server support

2017-12-15 Thread kbuild test robot
Hi Tomeu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.15-rc3] [cannot apply to drm/drm-next drm-exynos/exynos-drm/for-next next-20171215] [if your patch is applied to the wrong git tree, please drop us a note to

Re: [PATCH] drm/virtio: Add window server support

2017-12-15 Thread kbuild test robot
Hi Tomeu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.15-rc3] [cannot apply to drm/drm-next drm-exynos/exynos-drm/for-next next-20171215] [if your patch is applied to the wrong git tree, please drop us a note to

Re: [PATCH v19 3/7] xbitmap: add more operations

2017-12-15 Thread Matthew Wilcox
On Fri, Dec 15, 2017 at 10:49:15AM -0800, Matthew Wilcox wrote: > Here's the API I'm looking at right now. The user need take no lock; > the locking (spinlock) is handled internally to the implementation. I looked at the API some more and found some flaws: - how does xbit_alloc communicate back

Re: [PATCH v19 3/7] xbitmap: add more operations

2017-12-15 Thread Matthew Wilcox
On Sat, Dec 16, 2017 at 01:21:52AM +0900, Tetsuo Handa wrote: > My understanding is that virtio-balloon wants to handle sparsely spreaded > unsigned long values (which is PATCH 4/7) and wants to find all chunks of > consecutive "1" bits efficiently. Therefore, I guess that holding the values > in a

Re: [PATCH v19 3/7] xbitmap: add more operations

2017-12-15 Thread Matthew Wilcox
On Tue, Dec 12, 2017 at 07:55:55PM +0800, Wei Wang wrote: > +int xb_preload_and_set_bit(struct xb *xb, unsigned long bit, gfp_t gfp); I'm struggling to understand when one would use this. The xb_ API requires you to handle your own locking. But specifying GFP flags here implies you can sleep. S

Re: [PATCH v19 3/7] xbitmap: add more operations

2017-12-15 Thread Michael S. Tsirkin
On Sat, Dec 16, 2017 at 01:21:52AM +0900, Tetsuo Handa wrote: > My understanding is that virtio-balloon wants to handle sparsely spreaded > unsigned long values (which is PATCH 4/7) and wants to find all chunks of > consecutive "1" bits efficiently. Therefore, I guess that holding the values > in a

[PULL] vhost: regression fixes

2017-12-15 Thread Michael S. Tsirkin
The following changes since commit 03e9f8a05bce7330bcd9c5cc54c8e42d0fcbf993: virtio_net: fix return value check in receive_mergeable() (2017-12-07 18:34:52 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to f

Re: [PATCH v19 1/7] xbitmap: Introduce xbitmap

2017-12-15 Thread Matthew Wilcox
On Fri, Dec 15, 2017 at 07:05:07PM +0800, kbuild test robot wrote: > 21struct radix_tree_node *node; > 22void **slot; ^^^ missing __rcu annotation here. Wei, could you fold that change into your next round? Thanks!

Re: [PATCH v2 1/3] virtio_pci: use put_device instead of kfree

2017-12-15 Thread Cornelia Huck
On Fri, 15 Dec 2017 03:48:09 +0200 "Michael S. Tsirkin" wrote: > Also just to make sure, none of this is a regression and none > of this causes actual known issues right? > > I think it's preferrable to defer to next merge cycle unless this > is a regression. I noticed this while looking at the

Re: [PATCH v2 1/3] virtio_pci: use put_device instead of kfree

2017-12-15 Thread Cornelia Huck
On Thu, 14 Dec 2017 21:13:28 +0200 "Michael S. Tsirkin" wrote: > On Tue, Dec 12, 2017 at 09:24:02PM +0800, weiping zhang wrote: > > As mentioned at drivers/base/core.c: > > /* > > * NOTE: _Never_ directly free @dev after calling this function, even > > * if it returned an error! Always use put_

Re: [PATCH v19 1/7] xbitmap: Introduce xbitmap

2017-12-15 Thread kbuild test robot
-Wang/Virtio-balloon-Enhancement/20171215-100525 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) vim +29 lib/xbitmap.c 5 6 /** 7 * xb_set_bit - set a