<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/include/block/snapshot.h, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/include/block/snapshot.h?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/include/block/snapshot.h?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-03-04T17:18:25+00:00</updated>
<entry>
<title>include/block/snapshot: global state API + assertions</title>
<updated>2022-03-04T17:18:25+00:00</updated>
<author>
<name>Emanuele Giuseppe Esposito</name>
</author>
<published>2022-03-03T15:16:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6b573efec853b84e99cae060dccc6d71e58af511'/>
<id>urn:sha1:6b573efec853b84e99cae060dccc6d71e58af511</id>
<content type='text'>
Snapshots run also under the BQL, so they all are
in the global state API. The aiocontext lock that they hold
is currently an overkill and in future could be removed.

Signed-off-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Message-Id: &lt;20220303151616.325444-23-eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: rename and alter bdrv_all_find_snapshot semantics</title>
<updated>2021-02-08T11:19:51+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-02-04T12:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3d3e9b1f669b60d9d3cb857edbfc3d54cbb9c0ef'/>
<id>urn:sha1:3d3e9b1f669b60d9d3cb857edbfc3d54cbb9c0ef</id>
<content type='text'>
Currently bdrv_all_find_snapshot() will return 0 if it finds
a snapshot, -1 if an error occurs, or if it fails to find a
snapshot. New callers to be added want to distinguish between
the error scenario and failing to find a snapshot.

Rename it to bdrv_all_has_snapshot and make it return -1 on
error, 0 if no snapshot is found and 1 if snapshot is found.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20210204124834.774401-7-berrange@redhat.com&gt;
Signed-off-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: allow specifying name of block device for vmstate storage</title>
<updated>2021-02-08T11:19:51+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-02-04T12:48:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c22d644ca78dcccdfc4a2e2bc3594bd27c1f4fe5'/>
<id>urn:sha1:c22d644ca78dcccdfc4a2e2bc3594bd27c1f4fe5</id>
<content type='text'>
Currently the vmstate will be stored in the first block device that
supports snapshots. Historically this would have usually been the
root device, but with UEFI it might be the variable store. There
needs to be a way to override the choice of block device to store
the state in.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20210204124834.774401-6-berrange@redhat.com&gt;
Signed-off-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: add ability to specify list of blockdevs during snapshot</title>
<updated>2021-02-08T11:19:51+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-02-04T12:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=cf3a74c94f3da92fdf8d45047756f0e43657be1a'/>
<id>urn:sha1:cf3a74c94f3da92fdf8d45047756f0e43657be1a</id>
<content type='text'>
When running snapshot operations, there are various rules for which
blockdevs are included/excluded. While this provides reasonable default
behaviour, there are scenarios that are not well handled by the default
logic. Some of the conditions do not have a single correct answer.

Thus there needs to be a way for the mgmt app to provide an explicit
list of blockdevs to perform snapshots across. This can be achieved
by passing a list of node names that should be used.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20210204124834.774401-5-berrange@redhat.com&gt;
Signed-off-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: push error reporting into bdrv_all_*_snapshot functions</title>
<updated>2021-02-08T11:19:51+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-02-04T12:48:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e26f98e2097cf17db04462e9aa2e423b93e7455c'/>
<id>urn:sha1:e26f98e2097cf17db04462e9aa2e423b93e7455c</id>
<content type='text'>
The bdrv_all_*_snapshot functions return a BlockDriverState pointer
for the invalid backend, which the callers then use to report an
error message. In some cases multiple callers are reporting the
same error message, but with slightly different text. In the future
there will be more error scenarios for some of these methods, which
will benefit from fine grained error message reporting. So it is
helpful to push error reporting down a level.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
[PMD: Initialize variables]
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20210204124834.774401-2-berrange@redhat.com&gt;
Signed-off-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
</content>
</entry>
<entry>
<title>migration: introduce icount field for snapshots</title>
<updated>2020-10-06T06:34:49+00:00</updated>
<author>
<name>Pavel Dovgalyuk</name>
</author>
<published>2020-10-03T17:13:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b39847a50553b7679d6d7fefbe6a108a17aacf8d'/>
<id>urn:sha1:b39847a50553b7679d6d7fefbe6a108a17aacf8d</id>
<content type='text'>
Saving icount as a parameters of the snapshot allows navigation between
them in the execution replay scenario.
This information can be used for finding a specific snapshot for proceeding
the recorded execution to the specific moment of the time.
E.g., 'reverse step' action (introduced in one of the following patches)
needs to load the nearest snapshot which is prior to the current moment
of time.
This patch also updates snapshot test which verifies qemu monitor output.

Signed-off-by: Pavel Dovgalyuk &lt;Pavel.Dovgalyuk@ispras.ru&gt;
Acked-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Acked-by: Kevin Wolf &lt;kwolf@redhat.com&gt;

--

v4 changes:
 - squashed format update with test output update
v7 changes:
 - introduced the spaces between the fields in snapshot info output
 - updated the test to match new field widths
Message-Id: &lt;160174518865.12451.14327573383978752463.stgit@pasha-ThinkPad-X280&gt;

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/snapshot: rename Error ** parameter to more common errp</title>
<updated>2019-12-18T07:43:19+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2019-12-05T17:46:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e53a578a8beb34249025e273c29ce0f4927bd1cf'/>
<id>urn:sha1:e53a578a8beb34249025e273c29ce0f4927bd1cf</id>
<content type='text'>
Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@Redhat.com&gt;
Message-Id: &lt;20191205174635.18758-11-vsementsov@virtuozzo.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/snapshot: remove bdrv_snapshot_delete_by_id_or_name</title>
<updated>2019-02-25T14:03:18+00:00</updated>
<author>
<name>Daniel Henrique Barboza</name>
</author>
<published>2018-11-07T13:09:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8c04093c8ce13fb67122b4ecedaa9857dc8ada98'/>
<id>urn:sha1:8c04093c8ce13fb67122b4ecedaa9857dc8ada98</id>
<content type='text'>
After the previous patch, the only instance of this function left
is inside qemu-img.c.

qemu-img is using it inside the 'img_snapshot' function to delete
snapshots in the SNAPSHOT_DELETE case, based on a "snapshot_name"
string that refers to the tag, not ID, of the QEMUSnapshotInfo struct.
This can be verified by checking the SNAPSHOT_CREATE case that
comes shortly before SNAPSHOT_DELETE. In that case, the same
"snapshot_name" variable is being strcpy to the 'name' field
of the QEMUSnapshotInfo struct sn:

pstrcpy(sn.name, sizeof(sn.name), snapshot_name);

Based on that, it is unlikely that "snapshot_name" might contain
an "id" in SNAPSHOT_DELETE.

This patch changes SNAPSHOT_DELETE to use snapshot_find() and
snapshot_delete() instead of bdrv_snapshot_delete_by_id_or_name.
After that, there is no instances left of bdrv_snapshot_delete_by_id_or_name
in the code, so it is safe to remove it entirely.

Suggested-by: Murilo Opsfelder Araujo &lt;muriloo@linux.ibm.com&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>Move include qemu/option.h from qemu-common.h to actual users</title>
<updated>2018-02-09T12:52:16+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2018-02-01T11:18:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=922a01a013d2270682a188258cbccacfecf8129c'/>
<id>urn:sha1:922a01a013d2270682a188258cbccacfecf8129c</id>
<content type='text'>
qemu-common.h includes qemu/option.h, but most places that include the
former don't actually need the latter.  Drop the include, and add it
to the places that actually need it.

While there, drop superfluous includes of both headers, and
separate #include from file comment with a blank line.

This cleanup makes the number of objects depending on qemu/option.h
drop from 4545 (out of 4743) to 284 in my "build everything" tree.

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20180201111846.21846-20-armbru@redhat.com&gt;
[Semantic conflict with commit bdd6a90a9e in block/nvme.c resolved]
</content>
</entry>
<entry>
<title>block: Add errp to bdrv_all_goto_snapshot()</title>
<updated>2017-11-21T13:48:22+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2017-11-20T14:36:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2b624fe079ee7123797f6c685e714795665c0e01'/>
<id>urn:sha1:2b624fe079ee7123797f6c685e714795665c0e01</id>
<content type='text'>
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Denis V. Lunev &lt;den@openvz.org&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
</feed>
