Stefan Hajnoczi 29d782710f block: drop bs_snapshots global variable
The bs_snapshots global variable points to the BlockDriverState which
will be used to save vmstate.  This is really a savevm.c concept but was
moved into block.c:bdrv_snapshots() when it became clear that hotplug
could result in a dangling pointer.

While auditing the block layer's global state I came upon bs_snapshots
and realized that a variable is not necessary here.  Simply find the
first BlockDriverState capable of internal snapshots each time this is
needed.

The behavior of bdrv_snapshots() is preserved across hotplug because new
drives are always appended to the bdrv_states list.  This means that
calling the new find_vmstate_bs() function is idempotent - it returns
the same BlockDriverState unless it was hot-unplugged.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-06-04 13:56:29 +02:00
2013-05-26 11:14:52 +00:00
2013-05-03 12:04:49 -05:00
2013-04-18 13:50:53 +02:00
2013-05-12 13:25:55 +04:00
2012-12-19 08:29:06 +01:00
2013-05-28 12:19:02 +02:00
2013-04-08 18:13:10 +02:00
2013-05-18 16:35:12 +04:00
2013-04-08 18:13:10 +02:00
2013-05-03 13:58:09 +02:00
…
2013-04-26 20:18:24 +02:00
2013-04-18 13:50:53 +02:00
…
2013-02-21 16:17:31 -06:00
2013-04-08 18:13:10 +02:00
…
…
…
2013-05-29 16:26:50 +02:00
2013-04-29 12:16:36 -05:00
2013-02-21 16:17:31 -06:00
2013-05-29 08:15:35 -05:00
…
2013-05-03 13:05:49 +02:00
2013-05-18 16:35:12 +04:00
2013-05-27 12:47:28 +02:00
2013-02-22 21:21:10 +01:00
2013-05-24 16:17:55 +02:00
…
2013-05-01 13:06:07 +02:00
…
2013-05-03 12:04:40 -05:00
2013-05-20 10:55:18 -05:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
708 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%