From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: miscalculated vring size in virtio-0.9.5.pdf? Date: Wed, 19 Sep 2012 15:12:43 +0930 Message-ID: <87a9wmpnzg.fsf@rustcorp.com.au> References: <5058EC85.5080402@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5058EC85.5080402@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Laszlo Ersek , virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org Laszlo Ersek writes: > Hi, > > the vring_size() formula in section 2.3 seems to miss > > (a) "vring_avail.used_event" in the first ALIGN(), and > > (b) "vring_used.flags", "vring_used.idx", "vring_used.avail_event" in > the second ALIGN(). > > vring_size() in Appendix A fixes (b) (no rounding up to page size > though), but (a) is wrong there too, I believe. Hi Laszlo, The effect is the same, due to ALIGN(). However, the latest copy of the spec on github should be consistent. Indeed, I cleaned up the header in the Appendix so it actually compiles... Cheers, Rusty.