Yes raw_close() will be triggered when issue "eject CD-ROM" command in guest 
OS.  Thanks a lot for your help. Much appreciated. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lonnie Mendez
Sent: 2006年12月1日 17:01
To: qemu-devel@nongnu.org
Subject: RE: [Qemu-devel] About the code to detect a CD-ROM disk is unmounted

On Fri, 2006-12-01 at 16:21 +0800, Yu, Xiaoyang wrote:
> Great! Thanks a lot for the information! I found the function definition in 
> the files you pointed out, by looking into the latest CVS snapshot. 
> 
> It seems that code changed a lot since version 0.8.2 released. So if I still 
> use version 0.8.2, is there some files or function I should look at instead? 
> Thanks a lot!

I found this just by searching for 'eject' in the source.  It does look
like qemu from cvs has nicely refactored the code for dealing with
removable media since the qemu 0.8.2 release.  Follow the path of the
bdrv_close handler (for cdrom raw_close() is called).  The call is made
from hw/ide.c (GPCMD_START_STOP_UNIT).


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to