[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH] atapi: allow 0 transfer bytes for read_cd command
From: |
Hervé Poussineau |
Subject: |
[Qemu-block] [PATCH] atapi: allow 0 transfer bytes for read_cd command |
Date: |
Thu, 18 Aug 2016 11:48:33 +0200 |
This fixes Windows NT4 startup when a cdrom is inserted.
Fixes: 9ef2e93f9b1888c7d0deb4a105149138e6ad2e98
Signed-off-by: Hervé Poussineau <address@hidden>
---
hw/ide/atapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 6189675..63312f2 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -1289,7 +1289,7 @@ static const struct AtapiCmd {
[ 0xad ] = { cmd_read_dvd_structure, CHECK_READY },
[ 0xbb ] = { cmd_set_speed, NONDATA },
[ 0xbd ] = { cmd_mechanism_status, 0 },
- [ 0xbe ] = { cmd_read_cd, CHECK_READY },
+ [ 0xbe ] = { cmd_read_cd, CHECK_READY | NONDATA },
/* [1] handler detects and reports not ready condition itself */
};
--
2.1.4
- [Qemu-block] [PATCH] atapi: allow 0 transfer bytes for read_cd command,
Hervé Poussineau <=