From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GchDv-00038T-V7 for qemu-devel@nongnu.org; Wed, 25 Oct 2006 07:47:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GchDq-000344-B6 for qemu-devel@nongnu.org; Wed, 25 Oct 2006 07:47:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GchDp-00033k-WB for qemu-devel@nongnu.org; Wed, 25 Oct 2006 07:47:02 -0400 Received: from [66.249.82.226] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GchDp-0007Hm-UC for qemu-devel@nongnu.org; Wed, 25 Oct 2006 07:47:02 -0400 Received: by wx-out-0506.google.com with SMTP id r21so121587wxc for ; Wed, 25 Oct 2006 04:47:01 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2006 13:47:00 +0200 From: "Pascal Terjan" Subject: Re: [Qemu-devel] [patch] TOC support for raw cdrom block devices In-Reply-To: <20061024212531.GA79722@jade.elsasser.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061024212531.GA79722@jade.elsasser.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 10/24/06, Josh Elsasser wrote: > The current raw block drvice code fakes a TOC with one track covering > the entire disc. With this patch it attempts to read the TOC from a > cdrom device and make that information available to the ide driver > when the guest issues an ATAPI READ TOC/PMA/ATIP type 0 (read TOC) > command. I recently sent a patch to add this for linux but then I thought of a better way to do it. I the TOC was stored in a struct somewhere, built when starting (or changing media) using either .toc, .cue, real CD or maybe even a list of track files this would allow to use such methods. Would be really useful for me actually to be able to use a list of tracks but generating toc/cue is quite easy.