Since 12289dc700d9 an ATAPI PIO read divides by cd_sector_size. It is 0
after a migration in the middle of a PIO burst (issue #5087) and after a
reset with a read in flight (issue #4512), and QEMU dies with SIGFPE.
Both are 11.2 regressions.
A PIO read interrupted by migration still fails on the destination, as
it did before 12289dc700. That needs more migration state and is left
for later.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Cc: John Snow <jsnow@redhat.com>
Cc: Peter Lieven <pl@kamp.de>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Hui Peng <benquike@gmail.com>
Denis V. Lunev (2):
hw/ide/atapi: fix division by zero in cd_read_sector after migration
hw/ide: fix crash on reset during an ATAPI PIO read
hw/ide/atapi.c | 4 +++-
hw/ide/core.c | 7 +++++++
2 files changed, 10 insertions(+), 1 deletion(-)
base-commit: fbb87b0d358a3e8ab11d59bcdf80ac34c97f6e3e
--
2.55.0