From: Gleb Natapov <gleb@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [PATCHv2] Support for booting from virtio disks
Date: Mon, 10 May 2010 11:29:39 +0300 [thread overview]
Message-ID: <20100510082939.GL24787@redhat.com> (raw)
In-Reply-To: <AANLkTinlBuVia3qDSpEdnnui4geZvJzQy0iKBI0zCGmo@mail.gmail.com>
On Mon, May 10, 2010 at 09:25:20AM +0100, Stefan Hajnoczi wrote:
> > diff --git a/src/virtio-blk.c b/src/virtio-blk.c
> > new file mode 100644
> > index 0000000..a41c336
> > --- /dev/null
> > +++ b/src/virtio-blk.c
> > @@ -0,0 +1,155 @@
> > +// Virtio blovl boot support.
>
> Just noticed the "blovl" typo.
>
> > + char *desc = malloc_tmphigh(MAXDESCSIZE);
> > + struct virtiodrive_s *vdrive_g = malloc_fseg(sizeof(*vdrive_g));
> > + struct vring_virtqueue *vq = malloc_low(sizeof(*vq));
> > + if (!vdrive_g || !desc || !vq) {
> > + warn_noalloc();
> > + return;
> > + }
>
> This error return can still leak.
>
Oh Gosh, programming is hard. Why don't we write bios in python?
--
Gleb.
WARNING: multiple messages have this Message-ID (diff)
From: Gleb Natapov <gleb@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks
Date: Mon, 10 May 2010 11:29:39 +0300 [thread overview]
Message-ID: <20100510082939.GL24787@redhat.com> (raw)
In-Reply-To: <AANLkTinlBuVia3qDSpEdnnui4geZvJzQy0iKBI0zCGmo@mail.gmail.com>
On Mon, May 10, 2010 at 09:25:20AM +0100, Stefan Hajnoczi wrote:
> > diff --git a/src/virtio-blk.c b/src/virtio-blk.c
> > new file mode 100644
> > index 0000000..a41c336
> > --- /dev/null
> > +++ b/src/virtio-blk.c
> > @@ -0,0 +1,155 @@
> > +// Virtio blovl boot support.
>
> Just noticed the "blovl" typo.
>
> > + char *desc = malloc_tmphigh(MAXDESCSIZE);
> > + struct virtiodrive_s *vdrive_g = malloc_fseg(sizeof(*vdrive_g));
> > + struct vring_virtqueue *vq = malloc_low(sizeof(*vq));
> > + if (!vdrive_g || !desc || !vq) {
> > + warn_noalloc();
> > + return;
> > + }
>
> This error return can still leak.
>
Oh Gosh, programming is hard. Why don't we write bios in python?
--
Gleb.
next prev parent reply other threads:[~2010-05-10 8:29 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 8:11 [PATCHv2] Support for booting from virtio disks Gleb Natapov
2010-05-10 8:11 ` [Qemu-devel] " Gleb Natapov
2010-05-10 8:25 ` Stefan Hajnoczi
2010-05-10 8:25 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-10 8:29 ` Gleb Natapov [this message]
2010-05-10 8:29 ` Gleb Natapov
2010-05-10 15:48 ` Anthony Liguori
2010-05-10 15:48 ` [Qemu-devel] " Anthony Liguori
2010-05-10 15:54 ` Gleb Natapov
2010-05-10 15:54 ` [Qemu-devel] " Gleb Natapov
2010-05-10 15:58 ` Anthony Liguori
2010-05-10 15:58 ` [Qemu-devel] " Anthony Liguori
2010-05-10 16:09 ` Gleb Natapov
2010-05-10 16:09 ` [Qemu-devel] " Gleb Natapov
2010-05-13 16:49 ` [SeaBIOS] " Avi Kivity
2010-05-13 16:49 ` [Qemu-devel] " Avi Kivity
2010-05-16 8:28 ` Gleb Natapov
2010-05-16 8:28 ` [Qemu-devel] " Gleb Natapov
2010-05-11 8:19 ` Avi Kivity
2010-05-11 8:19 ` [Qemu-devel] " Avi Kivity
2010-05-11 9:04 ` Stefan Hajnoczi
2010-05-11 9:04 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-11 12:33 ` Gleb Natapov
2010-05-11 12:33 ` [Qemu-devel] " Gleb Natapov
2010-05-11 12:45 ` [SeaBIOS] " Kevin O'Connor
2010-05-11 12:45 ` [Qemu-devel] " Kevin O'Connor
2010-05-11 12:47 ` Gleb Natapov
2010-05-11 12:47 ` [Qemu-devel] " Gleb Natapov
2010-05-12 0:44 ` Kevin O'Connor
2010-05-12 0:44 ` [Qemu-devel] " Kevin O'Connor
2010-05-11 12:31 ` Gleb Natapov
2010-05-11 12:31 ` [Qemu-devel] " Gleb Natapov
2010-05-12 7:22 ` Avi Kivity
2010-05-12 7:22 ` [Qemu-devel] " Avi Kivity
2010-05-12 7:55 ` Gleb Natapov
2010-05-12 7:55 ` [Qemu-devel] " Gleb Natapov
2010-05-12 12:57 ` Kevin O'Connor
2010-05-12 12:57 ` [Qemu-devel] " Kevin O'Connor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100510082939.GL24787@redhat.com \
--to=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.