Received: from eggs.gnu.org ([140.186.70.92]:50884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCApa-0005PK-RY for qemu-devel@nongnu.org; Tue, 19 Apr 2011 09:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCApZ-00088p-Tx for qemu-devel@nongnu.org; Tue, 19 Apr 2011 09:19:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCApZ-00088g-Gp for qemu-devel@nongnu.org; Tue, 19 Apr 2011 09:19:01 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3JDIxrd023401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Apr 2011 09:18:59 -0400 Date: Tue, 19 Apr 2011 18:48:54 +0530 From: Amit Shah Message-ID: <20110419131854.GG16567@amit-x200.redhat.com> References: <1303216603-11658-1-git-send-email-kwolf@redhat.com> <1303216603-11658-6-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1303216603-11658-6-git-send-email-kwolf@redhat.com> 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: Kevin Wolf Cc: qemu-devel@nongnu.org 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. Amit