[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Add HTTP protocol using curl
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH] Add HTTP protocol using curl |
Date: |
Fri, 10 Apr 2009 10:25:12 +0300 |
On 4/9/09, Alexander Graf <address@hidden> wrote:
> Currently Qemu can read from posix I/O and NBD. This patch adds a
> third protocol to the game: HTTP.
>
> In certain situations it can be useful to access HTTP data directly,
> for example if you want to try out an http provided OS image, but
> don't know if you want to download it yet.
>
> Using this patch you can now try it on on the fly. Just use it like:
>
> qemu -cdrom http://host/path/my.iso
>
> In order to not reinvent the wheel, this patch uses libcurl.
>
> Warning:
>
> With stock qemu I do get segmentation faults accessing http backed
> files, with kvm-userspace's IO threads I don't. I haven't tracked
> down why exactly that happens though.
>
> Signed-off-by: Alexander Graf <address@hidden>
The docs should be updated as well.
> + sprintf(s->range, "%lld-%lld", start, end);
Please use snprintf.