[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/5] ide/atapi: Introduce NEED_DISK flag for com
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 5/5] ide/atapi: Introduce NEED_DISK flag for commands |
Date: |
Tue, 19 Apr 2011 15:45:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 |
Am 19.04.2011 15:18, schrieb Amit Shah:
> On (Tue) 19 Apr 2011 [14:36:43], Kevin Wolf wrote:
>
>> diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
>> index 032d1b0..88e7791 100644
>> --- a/hw/ide/atapi.c
>> +++ b/hw/ide/atapi.c
>> @@ -813,11 +813,7 @@ error_cmd:
>>
>> static void cmd_test_unit_ready(IDEState *s, uint8_t *buf)
>> {
>> - if (bdrv_is_inserted(s->bs)) {
>> - ide_atapi_cmd_ok(s);
>> - } else {
>> - ide_atapi_cmd_error(s, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT);
>> - }
>> + ide_atapi_cmd_ok(s);
>> }
>
> It'll look really weird to have test_unit_ready() to always return
> GOOD status (outside the context of this patch). A comment will help.
Ok, I'll add a comment for v2.
Kevin
- [Qemu-devel] [PATCH 0/5] atapi: Some code restructuring, Kevin Wolf, 2011/04/19
- [Qemu-devel] [PATCH 3/5] ide/atapi: Use table instead of switch for commands, Kevin Wolf, 2011/04/19
- [Qemu-devel] [PATCH 4/5] ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectors, Kevin Wolf, 2011/04/19
- [Qemu-devel] [PATCH 2/5] ide/atapi: Factor some commands out, Kevin Wolf, 2011/04/19
- [Qemu-devel] [PATCH 5/5] ide/atapi: Introduce NEED_DISK flag for commands, Kevin Wolf, 2011/04/19
- [Qemu-devel] [PATCH 1/5] ide: Split atapi.c out, Kevin Wolf, 2011/04/19
- Re: [Qemu-devel] [PATCH 0/5] atapi: Some code restructuring, Amit Shah, 2011/04/19