Received: from eggs.gnu.org ([2001:4830:134:3::10]:60877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEZTQ-0002iW-Rm for qemu-devel@nongnu.org; Mon, 13 Jul 2015 04:52:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEZTL-0007gR-Nz for qemu-devel@nongnu.org; Mon, 13 Jul 2015 04:52:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEZTL-0007gL-Io for qemu-devel@nongnu.org; Mon, 13 Jul 2015 04:52:23 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 2DEAF8F281 for ; Mon, 13 Jul 2015 08:52:23 +0000 (UTC) Date: Mon, 13 Jul 2015 14:22:14 +0530 From: Amit Shah Message-ID: <20150713085214.GB10280@grmbl.mre> References: <1436520840-28742-1-git-send-email-pagupta@redhat.com> <20150713060938.GA17241@grmbl.mre> <2021183425.31524217.1436770416516.JavaMail.zimbra@redhat.com> <20150713073445.GB17241@grmbl.mre> <20150713075555.GA12377@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150713075555.GA12377@redhat.com> Subject: Re: [Qemu-devel] [PATCH] virtio-rng: Bump up quota value only when guest requests entropy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Pankaj Gupta , qemu-devel@nongnu.org On (Mon) 13 Jul 2015 [10:55:55], Michael S. Tsirkin wrote: > On Mon, Jul 13, 2015 at 01:04:45PM +0530, Amit Shah wrote: > > That also saves us the trouble with live migration: if we hold onto a > > buffer, that becomes state, and we'll have to migrate it as well. > > This current model saves us from doing that. > > Timers hold state and have to be migrated, this seems to be missing > here. We do invoke virtio_rng_process in the load path, so that outstanding requests are serviced. Also, after migration, the guest will fetch data from the new host, so the new host will start doing the rate-limit. We can afford to not carry over the rate-limiting state we had from the src host. Amit