[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] ui/cocoa.m: Adds device menu items to Machi
Re: [Qemu-devel] [PATCH 2/3] ui/cocoa.m: Adds device menu items to Machine menu
Mon, 18 May 2015 15:24:55 +0200
Am 17.05.2015 um 00:21 hat Peter Maydell geschrieben:
> On 11 May 2015 at 23:16, Programmingkid <address@hidden> 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 <address@hidden>
> 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
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.