]> git.proxmox.com Git - mirror_qemu.git/commit
esp: move handle_ti_cmd() cleanup code to esp_do_dma().
authorLaurent Vivier <laurent@vivier.eu>
Sat, 26 Oct 2019 16:45:36 +0000 (18:45 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 28 Oct 2019 18:01:01 +0000 (19:01 +0100)
commit15407433e822f47f85bfd17835ec9663d6dc8556
tree91c483cc9120747baf79e37edf7f2ee173f4bcd6
parent7bc8f9734213b76e76631a483be13d6737c2adbc
esp: move handle_ti_cmd() cleanup code to esp_do_dma().

To prepare following patches move do_cmd and DMA special case
from handle_ti() to esp_do_dma().

This part of the code must be only executed with real DMA, not with
pseudo-DMA. And PDMA is detected in esp_do_dma(), so move this part
of the code in esp_do_dma(). We keep the code in handle_ti_cmd()
in the case no DMA is done.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20191026164546.30020-2-laurent@vivier.eu>
hw/scsi/esp.c