<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/block/cow.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/block/cow.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/block/cow.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2014-09-22T10:39:45+00:00</updated>
<entry>
<title>block: delete cow block driver</title>
<updated>2014-09-22T10:39:45+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2014-09-16T14:24:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=550830f9351291c585c963204ad9127998b1c1ce'/>
<id>urn:sha1:550830f9351291c585c963204ad9127998b1c1ce</id>
<content type='text'>
This patch removes support for the cow file format.

Normally we do not break backwards compatibility but in this case there
is no impact and it is the most logical option.  Extraordinary claims
require extraordinary evidence so I will show why removing the cow block
driver is the right thing to do.

The cow file format is the disk image format for Usermode Linux, a way
of running a Linux system in userspace.  The performance of UML was
never great and it was hacky, but it enjoyed some popularity before
hardware virtualization support became mainstream.

QEMU's block/cow.c is supposed to read this image file format.
Unfortunately the file format was underspecified:

1. Earlier Linux versions used the MAXPATHLEN constant for the backing
   filename field.  The value of MAXPATHLEN can change, so Linux
   switched to a 4096 literal but QEMU has a 1024 literal.

2. Padding was not used on the header struct (both in the Linux kernel
   and in QEMU) so the struct layout varied across architectures.  In
   particular, i386 and x86_64 were different due to int64_t alignment
   differences.  Linux now uses __attribute__((packed)), QEMU does not.

Therefore:

1. QEMU cow images do not conform to the Linux cow image file format.

2. cow images cannot be shared between different host architectures.

This means QEMU cow images are useless and QEMU has not had bug reports
from users actually hitting these issues.

Let's get rid of this thing, it serves no purpose and no one will be
affected.

Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-id: 1410877464-20481-1-git-send-email-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: round up file size to nearest sector</title>
<updated>2014-09-12T13:43:06+00:00</updated>
<author>
<name>Hu Tao</name>
</author>
<published>2014-09-10T09:05:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c2eb918e3299f930fd0d0ae48d002cf2599de250'/>
<id>urn:sha1:c2eb918e3299f930fd0d0ae48d002cf2599de250</id>
<content type='text'>
Currently the file size requested by user is rounded down to nearest
sector, causing the actual file size could be a bit less than the size
user requested. Since some formats (like qcow2) record virtual disk
size in bytes, this can make the last few bytes cannot be accessed.

This patch fixes it by rounding up file size to nearest sector so that
the actual file size is no less than the requested file size.

Signed-off-by: Hu Tao &lt;hutao@cn.fujitsu.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/cow: Avoid use of uninitialized cow_bs in error path</title>
<updated>2014-07-01T08:15:34+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2014-06-30T18:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6764579f894950afe87d8ec3b323adde8925d4fd'/>
<id>urn:sha1:6764579f894950afe87d8ec3b323adde8925d4fd</id>
<content type='text'>
Commit 25814e8987 introduced an error-exit code path which does
a "goto exit" before the cow_bs variable is initialized, meaning
we would call bdrv_unref() on an uninitialized variable and
likely segfault. Fix this by moving the NULL-initialization
to the top of the function and making the exit code path handle
the case where it is NULL.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Catch backing files assigned to non-COW drivers</title>
<updated>2014-06-26T11:51:01+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2014-06-04T13:09:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8ee79e707a005c9274df7ce34265bb7d008b8cef'/>
<id>urn:sha1:8ee79e707a005c9274df7ce34265bb7d008b8cef</id>
<content type='text'>
Since we parse backing.* options to add a backing file from the command
line when the driver didn't assign one, it has been possible to have a
backing file for e.g. raw images (it just was never accessed).

This is obvious nonsense and should be rejected.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>cleanup QEMUOptionParameter</title>
<updated>2014-06-16T09:23:21+00:00</updated>
<author>
<name>Chunyan Liu</name>
</author>
<published>2014-06-05T09:21:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c282e1fdf7ec9659c7f320123be397477a359d01'/>
<id>urn:sha1:c282e1fdf7ec9659c7f320123be397477a359d01</id>
<content type='text'>
Now that all backend drivers are using QemuOpts, remove all
QEMUOptionParameter related codes.

Signed-off-by: Dong Xu Wang &lt;wdongxu@linux.vnet.ibm.com&gt;
Signed-off-by: Chunyan Liu &lt;cyliu@suse.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>cow.c: replace QEMUOptionParameter with QemuOpts</title>
<updated>2014-06-16T09:23:20+00:00</updated>
<author>
<name>Chunyan Liu</name>
</author>
<published>2014-06-05T09:20:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25814e89871b4462638b290a4b17212526a01af3'/>
<id>urn:sha1:25814e89871b4462638b290a4b17212526a01af3</id>
<content type='text'>
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Signed-off-by: Dong Xu Wang &lt;wdongxu@linux.vnet.ibm.com&gt;
Signed-off-by: Chunyan Liu &lt;cyliu@suse.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>change block layer to support both QemuOpts and QEMUOptionParamter</title>
<updated>2014-06-16T09:23:20+00:00</updated>
<author>
<name>Chunyan Liu</name>
</author>
<published>2014-06-05T09:20:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=83d0521a1e35989b0cb7235aef48455fedda3ca4'/>
<id>urn:sha1:83d0521a1e35989b0cb7235aef48455fedda3ca4</id>
<content type='text'>
Change block layer to support both QemuOpts and QEMUOptionParameter.
After this patch, it will change backend drivers one by one. At the end,
QEMUOptionParameter will be removed and only QemuOpts is kept.

Signed-off-by: Dong Xu Wang &lt;wdongxu@linux.vnet.ibm.com&gt;
Signed-off-by: Chunyan Liu &lt;cyliu@suse.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Use correct width in format strings</title>
<updated>2014-04-30T12:46:17+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2014-04-29T17:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=521b2b5df0ccad764cf95164c6e428f855067a6f'/>
<id>urn:sha1:521b2b5df0ccad764cf95164c6e428f855067a6f</id>
<content type='text'>
Instead of blindly relying on a normal integer having a width of 32 bits
(which is a pretty good assumption, but we should not rely on it if
there is no need), use the correct format string macros.

This does not touch DEBUG output.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: do not abuse EMEDIUMTYPE</title>
<updated>2014-02-21T20:02:24+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2014-02-17T13:44:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=76abe4071d111a9ca6dcc9b9689a831c39ffa718'/>
<id>urn:sha1:76abe4071d111a9ca6dcc9b9689a831c39ffa718</id>
<content type='text'>
Returning "Wrong medium type" for an image that does not have a valid
header is a bit weird.  Improve the error by mentioning what format
was trying to open it.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Fam Zheng &lt;famz@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>cow: correctly propagate errors</title>
<updated>2014-02-21T20:02:23+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2014-02-17T13:43:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f8d924e48167ec14ec4556441ec7999a30ef6640'/>
<id>urn:sha1:f8d924e48167ec14ec4556441ec7999a30ef6640</id>
<content type='text'>
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Fam Zheng &lt;famz@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
</feed>
