From: Ian Jackson Subject: Re: [PATCH 2/3] libxl_dm: Set an id to cdrom drives with qemuu. Date: Tue, 31 Jul 2012 13:45:55 +0100 Message-ID: <20503.54147.792150.345810@mariner.uk.xensource.com> References: <1343409451-30136-1-git-send-email-anthony.perard@citrix.com> <1343409451-30136-3-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343409451-30136-3-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anthony PERARD Cc: Roger Pau Monne , Ian Campbell , Xen Devel List-Id: xen-devel@lists.xenproject.org Anthony PERARD writes ("[PATCH 2/3] libxl_dm: Set an id to cdrom drives with qemuu."): > In order to eject and change a cdrom when using qemu-xen, this patch > adds an id the cdrom driver when starting the device model. > + (gc, "if=ide,index=%d,media=cdrom,id=ide-%s", > + disk, disks[i].vdev); You should not use the vdev string for this purpose because several different vdev strings can refer to the same virtual device. You should use the dev number instead. Ian.