aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/atapi.c
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2015-11-17 15:06:25 -0500
committerJohn Snow <jsnow@redhat.com>2015-11-17 15:06:25 -0500
commit1d8c11d631545ee43aff16b0763aff7181b61f20 (patch)
tree8606957a184aa43146edb7771e3c1966d24ce1e4 /hw/ide/atapi.c
parentca78ecfa72f311cd647b12a41d93e1ce54f18e66 (diff)
ide: add support for IDEBufferedRequest
this patch adds a new aio readv compatible function which copies all data through a bounce buffer. These buffered requests can be flagged as orphaned which means that their original callback has already been invoked and the request has just not been completed by the backend storage. The bounce buffer guarantees that guest memory corruption is avoided when such a orphaned request is completed by the backend at a later stage. This trick only works for read requests as a write request completed at a later stage might corrupt data as there is no way to control if and what data has already been written to the storage. Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 1447345846-15624-4-git-send-email-pl@kamp.de Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'hw/ide/atapi.c')
0 files changed, 0 insertions, 0 deletions