Re: [Qemu-devel] [PATCH v3 5/7] loader: add rom transaction API

2018-07-30 Thread Peter Maydell
On 25 July 2018 at 09:59, Stefan Hajnoczi wrote: > 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(); > ...

[Qemu-devel] [PATCH v3 5/7] loader: add rom transaction API

2018-07-25 Thread Stefan Hajnoczi
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