qemu-devel
[Top][All Lists]
Advanced

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

RE: [Qemu-devel] About the code to detect a CD-ROM disk is unmounted


From: Yu, Xiaoyang
Subject: RE: [Qemu-devel] About the code to detect a CD-ROM disk is unmounted
Date: Mon, 4 Dec 2006 15:42:08 +0800

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: address@hidden [mailto:address@hidden On Behalf Of Lonnie Mendez
Sent: 2006年12月1日 17:01
To: address@hidden
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).




reply via email to

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