From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMJY-0006f1-6Q for qemu-devel@nongnu.org; Thu, 13 Dec 2012 22:51:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjMJU-0008R5-CW for qemu-devel@nongnu.org; Thu, 13 Dec 2012 22:51:56 -0500 Received: from ozlabs.org ([203.10.76.45]:41433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMJU-0008Nc-1U for qemu-devel@nongnu.org; Thu, 13 Dec 2012 22:51:52 -0500 From: Rusty Russell In-Reply-To: <87bodzrm4z.fsf@codemonkey.ws> References: <20121212144758.GF15555@redhat.com> <50C89C47.7040108@redhat.com> <20121212152508.GB16750@redhat.com> <50C8A855.4050607@redhat.com> <20121212163713.GD17446@redhat.com> <50C8B627.606@redhat.com> <20121212171423.GB18597@redhat.com> <50C8C143.2010503@redhat.com> <20121212192336.GA20201@redhat.com> <50C8F075.4000206@redhat.com> <20121212211926.GA23087@redhat.com> <87bodzrm4z.fsf@codemonkey.ws> Date: Fri, 14 Dec 2012 11:36:30 +1030 Message-ID: <8738z94f3d.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCHv2] virtio: verify that all outstanding buffers are flushed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , "Michael S. Tsirkin" , Paolo Bonzini Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, Stefan Hajnoczi Anthony Liguori writes: > Yes, take a look at the series I sent out that scrubs all of this to > just send the index and the addresses of the element. > > We technically should save the addresses and sizes too. It makes it a > heck of a lot safer then re-reading guest memory since we do some > validation on the size of the sg elements. Not really. The guest puts the descriptors in the ring and leaves them there until the device acks. If it changes them once they're exposed but before they're acked, it can get either before or after version, and always could. Cheers, Rusty.