Received: from [140.186.70.92] (port=52593 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFbcm-0003nx-Q1 for qemu-devel@nongnu.org; Mon, 08 Nov 2010 18:59:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFbcl-0004M9-R1 for qemu-devel@nongnu.org; Mon, 08 Nov 2010 18:59:44 -0500 Received: from mail-gy0-f173.google.com ([209.85.160.173]:50823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFbcl-0004M4-Ob for qemu-devel@nongnu.org; Mon, 08 Nov 2010 18:59:43 -0500 Received: by gya6 with SMTP id 6so4133613gya.4 for ; Mon, 08 Nov 2010 15:59:42 -0800 (PST) Date: Mon, 8 Nov 2010 18:59:37 -0500 From: Kevin O'Connor Message-ID: <20101108235937.GA12701@morn.localdomain> References: <20100915163144.GM3008@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100915163144.GM3008@redhat.com> Subject: [Qemu-devel] Re: [SeaBIOS] [PATCH] fix virtio-blk failure after reboot List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov , Anthony Liguori , Avi Kivity Cc: seabios@seabios.org, qemu-devel@nongnu.org On Wed, Sep 15, 2010 at 06:31:44PM +0200, Gleb Natapov wrote: > vring_virtqueue should be zeroed otherwise old values will be reused > after reboot. > > Signed-off-by: Gleb Natapov > diff --git a/src/virtio-blk.c b/src/virtio-blk.c > index 34d7863..7a25826 100644 > --- a/src/virtio-blk.c > +++ b/src/virtio-blk.c > @@ -109,6 +109,7 @@ init_virtio_blk(u16 bdf) > goto fail; > } > memset(vdrive_g, 0, sizeof(*vdrive_g)); > + memset(vq, 0, sizeof(*vq)); > vdrive_g->drive.type = DTYPE_VIRTIO; > vdrive_g->drive.cntl_id = bdf; > vdrive_g->vq = vq; This didn't make it into SeaBIOS v0.6.1. Should we add this to the stable branch as v0.6.1.2? Any other bugfixes that need to go in to the stable branch (maybe Isaku's pci overflow patches)? -Kevin