On Wed, 17 Aug 2022 08:58:20 -0700, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > On Tue, Aug 16, 2022 at 11:47 PM Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx> wrote: > > > > + BUG_ON(num != virtqueue_get_vring_size(vq)); > > + > > Please, no more BUG_ON. > > Add a WARN_ON_ONCE() and return an error. OK, I will post v2 with WARN_ON_ONCE(). Thanks. > > Linus _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization