[Top][All Lists]
[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: |
Lonnie Mendez |
Subject: |
Re: [Qemu-devel] About the code to detect a CD-ROM disk is unmounted |
Date: |
Thu, 30 Nov 2006 01:08:15 -0600 |
On Thu, 2006-11-30 at 15:03 +0800, Yu, Xiaoyang wrote:
> Hi guys,
>
>
>
> 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?
>
>
>
> I know if we use “info block” command before and after a CD-ROM disk
> 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 “monitor.c”. Any comment will
> be appreciated. Thanks in advance!
hw/ide.c, block.c:bdrv_eject()