[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Fix media detection on emulated CDROM

From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Fix media detection on emulated CDROM
Date: Tue, 18 Nov 2008 13:18:09 -0600
User-agent: Thunderbird (X11/20080925)

Gary Grebus wrote:
This patch tweaks the ATAPI CDROM emulation to fix an annoyance seen
when running a variety of Linux guests: the desktop GUI shows a CDROM
device as present, but is unable to automount the media and display its

The patch adds the PLAY_AUDIO capability bit to the data returned by
MODE_SENSE commands.  That convinces the guest kernel to determine what
kind of media is present.

Arguably Linux could be smarter about this, but it's my guess there are
few (if any) hardware CDROM drives that don't set the bit, and there are
a large number of Linux distros that exhibit this problem.

Signed-off-by: Gary Grebus <address@hidden>

Could you please include a comment to this effect in the code?


Anthony Liguori

reply via email to

[Prev in Thread] Current Thread [Next in Thread]