Received: from eggs.gnu.org ([2001:4830:134:3::10]:56090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuL2X-0000WL-Ip for qemu-devel@nongnu.org; Mon, 18 May 2015 09:25:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuL2T-0007Wi-Iu for qemu-devel@nongnu.org; Mon, 18 May 2015 09:25:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuL2T-0007W4-Aj for qemu-devel@nongnu.org; Mon, 18 May 2015 09:25:01 -0400 Date: Mon, 18 May 2015 15:24:55 +0200 From: Kevin Wolf Message-ID: <20150518132455.GE5999@noname.str.redhat.com> References: <810C0446-745B-4F71-A769-3F55B58ECA8D@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 2/3] ui/cocoa.m: Adds device menu items to Machine menu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Programmingkid , qemu-devel qemu-devel Am 17.05.2015 um 00:21 hat Peter Maydell geschrieben: > On 11 May 2015 at 23:16, Programmingkid wrote: > > Adds all removable devices to the Machine menu as a Change and Eject menu > > item pair. > > ide-cd0 would have a "Change ide-cd0..." and "Eject ide-cd0" menu items. > > > > Signed-off-by: John Arbuckle > > Kevin -- is there a block layer API for a UI to be informed > of hotplugged/unplugged block devices so we can update our menu > entries as removable devices appear or disappear? I don't think we have that today. Also, I'm not sure if that should be block device backends or actual block devices. If you mean the former, then backends that are not connected to a device yet will appear; if you mean the latter, you should probably ask qdev/QOM rather than the block layer. Also, media change is another thing that you may want to be informed of. The qdev device and the backend stay the same, but the file name changes. We have notifiers for the device emulation on media change, but we don't have anything for the UI. (Or can the UI use QMP events?) If we need something, we can probably add it, though. Kevin