Received: from [140.186.70.92] (port=35399 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHHcJ-0006va-H7 for qemu-devel@nongnu.org; Sat, 13 Nov 2010 10:02:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHHbG-0001dJ-I4 for qemu-devel@nongnu.org; Sat, 13 Nov 2010 10:02:04 -0500 Received: from mail-qw0-f45.google.com ([209.85.216.45]:59648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHHbG-0001cQ-Cl for qemu-devel@nongnu.org; Sat, 13 Nov 2010 10:01:06 -0500 Received: by qwi4 with SMTP id 4so807815qwi.4 for ; Sat, 13 Nov 2010 07:01:05 -0800 (PST) Date: Sat, 13 Nov 2010 10:01:01 -0500 From: Kevin O'Connor Message-ID: <20101113150101.GA12326@morn.localdomain> References: <20100915163144.GM3008@redhat.com> <20101108235937.GA12701@morn.localdomain> <20101109064643.GC9036@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101109064643.GC9036@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 Cc: seabios@seabios.org, Avi Kivity , qemu-devel@nongnu.org On Tue, Nov 09, 2010 at 08:46:43AM +0200, Gleb Natapov wrote: > On Mon, Nov 08, 2010 at 06:59:37PM -0500, Kevin O'Connor wrote: > > 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)? > > > Yes. Please add it to stable branch. I added it and tagged it as v0.6.1.2. -Kevin