[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] ide: Fix status register after short PRDs
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 5/5] ide: Fix status register after short PRDs |
Date: |
Wed, 21 Nov 2012 11:12:32 +0100 |
From: Kevin Wolf <address@hidden>
When failing a request because the length of the regions described by
the PRDT was too short for the requested number of sectors, the IDE
emulation forgot to update the status register, so that the device would
keep the BSY flag set indefinitely.
Signed-off-by: Kevin Wolf <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/ide/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ide/core.c b/hw/ide/core.c
index c2ab787..8da894f 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -625,6 +625,7 @@ void ide_dma_cb(void *opaque, int ret)
if (s->bus->dma->ops->prepare_buf(s->bus->dma, ide_cmd_is_read(s)) == 0) {
/* The PRDs were too short. Reset the Active bit, but don't raise an
* interrupt. */
+ s->status = READY_STAT | SEEK_STAT;
goto eot;
}
--
1.8.0
- [Qemu-devel] [PULL 1.3-rc1 0/5] Block patches for QEMU 1.3-rc1, Stefan Hajnoczi, 2012/11/21
- [Qemu-devel] [PATCH 2/5] vdi: don't override libuuid symbols, Stefan Hajnoczi, 2012/11/21
- [Qemu-devel] [PATCH 4/5] ide: Fix crash with too long PRD, Stefan Hajnoczi, 2012/11/21
- [Qemu-devel] [PATCH 1/5] block: add bdrv_reopen() support for raw hdev, floppy, and cdrom, Stefan Hajnoczi, 2012/11/21
- [Qemu-devel] [PATCH 3/5] use int64_t for return values from rbd instead of int, Stefan Hajnoczi, 2012/11/21
- [Qemu-devel] [PATCH 5/5] ide: Fix status register after short PRDs,
Stefan Hajnoczi <=
- Re: [Qemu-devel] [PULL 1.3-rc1 0/5] Block patches for QEMU 1.3-rc1, Anthony Liguori, 2012/11/26