From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc5Vk-0000TR-LB for qemu-devel@nongnu.org; Mon, 23 Oct 2006 15:31:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc5Vg-0000RJ-Rn for qemu-devel@nongnu.org; Mon, 23 Oct 2006 15:31:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc5Vg-0000RG-MX for qemu-devel@nongnu.org; Mon, 23 Oct 2006 15:30:56 -0400 Received: from [216.99.193.136] (helo=jade.aracnet.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gc5Vg-0000xr-If for qemu-devel@nongnu.org; Mon, 23 Oct 2006 15:30:56 -0400 Received: from mail.elsasser.org (jade.elsasser.org [216.99.208.138]) (authenticated bits=0) by jade.aracnet.com (8.13.6/8.12.8) with ESMTP id k9NJUqaE030570 for ; Mon, 23 Oct 2006 12:30:53 -0700 Date: Mon, 23 Oct 2006 12:30:52 -0700 From: Josh Elsasser Message-ID: <20061023193052.GF43740@jade.elsasser.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BzCohdixPhurzSK4" Content-Disposition: inline Subject: [Qemu-devel] [patch] TOC support for raw cdrom block devices 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 --BzCohdixPhurzSK4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. There is only support for reading the TOC on the BSDs, MacOS X, and Linux, Win32 and other OSes will still fake one large data track. All tracks are reported as data, no attempt was made to support audio tracks. The ATAPI READ TOC/PMA/ATIP type 2 (read full TOC) command is unchanged, I did not have a way of testing it. The purpose of this patch, in case anyone was wondering, was to get the BeOS R5 CD booting in qemu. -jre --BzCohdixPhurzSK4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFPRhsz9XqP7gz/VARAoMgAJ0XrcVslqaQe2n7b9trsCAXDhrajACgtSaf QeYY3Xt4faoOfMOPeeGYntw= =X2b+ -----END PGP SIGNATURE----- --BzCohdixPhurzSK4--