From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCBCR-0004mB-NA for qemu-devel@nongnu.org; Tue, 19 Apr 2011 09:42:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCBCQ-0005KR-LI for qemu-devel@nongnu.org; Tue, 19 Apr 2011 09:42:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCBCQ-0005KF-Bs for qemu-devel@nongnu.org; Tue, 19 Apr 2011 09:42:38 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3JDgb12000861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Apr 2011 09:42:37 -0400 Message-ID: <4DAD91E3.1050700@redhat.com> Date: Tue, 19 Apr 2011 15:45:07 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1303216603-11658-1-git-send-email-kwolf@redhat.com> <1303216603-11658-6-git-send-email-kwolf@redhat.com> <20110419131854.GG16567@amit-x200.redhat.com> In-Reply-To: <20110419131854.GG16567@amit-x200.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/5] ide/atapi: Introduce NEED_DISK flag for commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu-devel@nongnu.org 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