From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gpg1w-0003hJ-V3 for qemu-devel@nongnu.org; Thu, 30 Nov 2006 02:08:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gpg1v-0003f6-Ct for qemu-devel@nongnu.org; Thu, 30 Nov 2006 02:08:24 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gpg1v-0003ez-BD for qemu-devel@nongnu.org; Thu, 30 Nov 2006 02:08:23 -0500 Received: from [24.93.47.41] (helo=ms-smtp-02.texas.rr.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gpg1u-0005Mp-Tu for qemu-devel@nongnu.org; Thu, 30 Nov 2006 02:08:23 -0500 Received: from vaio (cpe-66-68-31-100.austin.res.rr.com [66.68.31.100]) by ms-smtp-02.texas.rr.com (8.13.6/8.13.6) with ESMTP id kAU78Lga019609 for ; Thu, 30 Nov 2006 01:08:21 -0600 (CST) Subject: Re: [Qemu-devel] About the code to detect a CD-ROM disk is unmounted From: Lonnie Mendez In-Reply-To: References: Content-Type: text/plain; charset=iso-8859-13 Date: Thu, 30 Nov 2006 01:08:15 -0600 Message-Id: <1164870495.19394.21.camel@vaio> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 On Thu, 2006-11-30 at 15:03 +0800, Yu, Xiaoyang wrote: > Hi guys, >=20 > =20 >=20 > I am using QEMU with Xen and Intel VT, and I have a question about > detecting the CD-ROM disk unmount event: When user ejects CD-ROM in > the guest domain, how can QEMU detect this event? >=20 > =20 >=20 > I know if we use =B4info block=A1 command before and after a CD-ROM dis= k > is ejected, we can see the difference. But I want to add code to > handle the CD-ROM unmount event, so I need to know which source file I > should take a look. It seems to be not =B4monitor.c=A1. Any comment wil= l > be appreciated. Thanks in advance! hw/ide.c, block.c:bdrv_eject()