mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
ahci: add rwerror=stop support for ncq
Handle NCQ failures for cases where we want to halt the VM on IO errors. Upon a VM state change, retry the halted NCQ commands. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1435767578-32743-7-git-send-email-jsnow@redhat.com
This commit is contained in:
parent
54f3223730
commit
7c03a69107
4 changed files with 44 additions and 2 deletions
|
@ -2371,6 +2371,13 @@ static void ide_restart_bh(void *opaque)
|
|||
* called function can set a new error status. */
|
||||
bus->error_status = 0;
|
||||
|
||||
/* The HBA has generically asked to be kicked on retry */
|
||||
if (error_status & IDE_RETRY_HBA) {
|
||||
if (s->bus->dma->ops->restart) {
|
||||
s->bus->dma->ops->restart(s->bus->dma);
|
||||
}
|
||||
}
|
||||
|
||||
if (error_status & IDE_RETRY_DMA) {
|
||||
if (error_status & IDE_RETRY_TRIM) {
|
||||
ide_restart_dma(s, IDE_DMA_TRIM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue