Stefan Hajnoczi
e2336043cc
loader: add rom transaction API
...
Image file loaders may add a series of roms. If an error occurs partway
through loading there is no easy way to drop previously added roms.
This patch adds a transaction mechanism that works like this:
rom_transaction_begin();
...call rom_add_*()...
rom_transaction_end(ok);
If ok is false then roms added in this transaction are dropped.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20180814162739.11814-5-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-08-16 14:05:28 +01:00
..
2018-06-29 12:32:10 +02:00
2018-06-11 22:19:57 +03:00
2018-02-09 13:50:17 +01:00
2018-07-02 15:41:14 +02:00
2018-08-16 14:05:28 +01:00
2018-07-24 17:02:02 +01:00
2018-08-15 12:50:39 +02:00
2018-01-22 09:51:00 +01:00
2018-07-17 17:06:32 +01:00
2018-08-16 14:05:28 +01:00
2018-07-17 13:12:49 +01:00
2018-07-02 15:41:15 +02:00
2018-08-07 15:03:58 +01:00
2018-06-26 17:50:40 +01:00
2018-06-01 15:14:31 +02:00
2018-07-02 15:41:14 +02:00
2018-07-03 09:56:52 +10:00
2018-08-03 11:35:21 +03:00
2018-08-15 12:50:39 +02:00
2018-06-29 15:04:18 +01:00
2018-08-14 17:17:21 +01:00
2018-07-02 15:41:12 +02:00
2018-06-12 12:07:30 +02:00
2018-06-16 19:46:54 -10:00
2018-07-02 15:41:15 +02:00
2018-07-02 15:41:14 +02:00
2018-06-28 19:05:34 +02:00
2018-07-23 15:21:25 +01:00
2018-07-02 19:07:19 +01:00
2018-08-16 14:05:28 +01:00
2018-04-26 13:57:00 +01:00
2018-07-20 08:30:48 +08:00
2018-07-02 15:41:15 +02:00
2018-07-02 15:41:16 +02:00
2018-04-26 13:57:00 +01:00
2018-03-20 15:48:34 +00:00
2018-02-13 16:33:31 +00:00
2018-07-02 15:41:16 +02:00
2016-01-29 15:07:25 +00:00
2018-08-01 11:01:38 +10:00
2018-07-02 15:41:17 +02:00
2018-07-19 09:05:48 -07:00
2018-07-30 17:41:52 +02:00
2018-08-15 12:50:39 +02:00
2018-07-23 15:21:26 +01:00
2018-07-02 15:41:15 +02:00
2018-07-02 15:41:12 +02:00
2018-07-02 19:07:19 +01:00
2018-07-02 19:07:19 +01:00
2018-06-26 17:50:40 +01:00
2018-07-09 14:51:34 +01:00
2018-05-24 12:07:04 -04:00
2018-07-02 15:41:14 +02:00
2018-03-12 16:12:48 +01:00
2018-08-15 12:50:39 +02:00
2018-07-11 13:43:57 -06:00
2018-08-03 11:35:21 +03:00
2018-06-15 15:23:34 +01:00
2018-06-22 13:28:42 +01:00
2018-07-02 15:41:13 +02:00
2018-07-02 15:41:14 +02:00
2018-06-01 15:14:31 +02:00