qemu-e2k/hw/ide
Markus Armbruster 58ac321135 ide: Treat read/write beyond end as invalid
The block layer fails such reads and writes just fine.  However, they
then get treated like valid operations that fail: the error action
gets executed.  Unwanted; reporting the error to the guest is the only
sensible action.

Reject them before passing them to the block layer.  This bypasses the
error action and I/O accounting.  Not quite correct for DMA, because
DMA can fail after some success, and when that happens, the part that
succeeded isn't counted.  Tolerable, because I/O accounting is an
inconsistent mess anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-07-14 12:03:21 +02:00
..
ahci.c ahci: map memory via device's address space instead of address_space_memory 2014-07-07 10:22:43 +02:00
ahci.h ahci.c: mask unused flags when reading size PRDT DBC 2014-07-07 09:15:29 +02:00
atapi.c
cmd646.c
core.c ide: Treat read/write beyond end as invalid 2014-07-14 12:03:21 +02:00
ich.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
internal.h
isa.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
macio.c macio ide: Do remainder access asynchronously 2014-06-16 13:24:38 +02:00
Makefile.objs
microdrive.c hw: Fix qemu_allocate_irqs() leaks 2014-06-30 21:13:30 +02:00
mmio.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
pci.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
pci.h
piix.c blockdev: Remove unused DriveInfo reference count 2014-06-16 17:23:19 +08:00
qdev.c
via.c