qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Josh Elsasser <josh@elsasser.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] TOC support for raw cdrom block devices
Date: Mon, 23 Oct 2006 12:30:52 -0700	[thread overview]
Message-ID: <20061023193052.GF43740@jade.elsasser.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

             reply	other threads:[~2006-10-23 19:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23 19:30 Josh Elsasser [this message]
2006-10-23 19:34 ` [Qemu-devel] Re: [patch] TOC support for raw cdrom block devices Josh Elsasser
  -- strict thread matches above, loose matches on Subject: below --
2006-10-24 21:25 [Qemu-devel] " Josh Elsasser
2006-10-25 11:47 ` Pascal Terjan
2006-10-25 15:59   ` Josh Elsasser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061023193052.GF43740@jade.elsasser.org \
    --to=josh@elsasser.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).