Received: from eggs.gnu.org ([2001:4830:134:3::10]:43176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX27Y-00071j-SO for qemu-devel@nongnu.org; Fri, 18 Oct 2013 00:57:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX27R-0003Ks-05 for qemu-devel@nongnu.org; Fri, 18 Oct 2013 00:57:08 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:33420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX27Q-0003Kd-Dj for qemu-devel@nongnu.org; Fri, 18 Oct 2013 00:57:00 -0400 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Oct 2013 10:26:50 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 8F8D51258055 for ; Fri, 18 Oct 2013 10:27:17 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r9I4uiwh37486630 for ; Fri, 18 Oct 2013 10:26:44 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r9I4ukE4029820 for ; Fri, 18 Oct 2013 10:26:47 +0530 From: Nikunj A Dadhania In-Reply-To: <525FE196.4060908@ozlabs.ru> References: <525E1E5C.4090002@ozlabs.ru> <525E33DA.8040106@redhat.com> <525E4759.10402@ozlabs.ru> <525FDA47.9050306@ozlabs.ru> <525FDE06.1000609@redhat.com> <525FE196.4060908@ozlabs.ru> Date: Fri, 18 Oct 2013 10:26:45 +0530 Message-ID: <87eh7jjhwy.fsf@abhimanyu.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy , Paolo Bonzini Cc: "qemu-devel@nongnu.org" , Alex Graf Alexey Kardashevskiy writes: > > "channel@0" -> ""? This is a generic scsi bus, cannot change this. > "disk@3,2" -> "disk@8302000000000000"? This is a generic scsi-cd, cannot > change this either > > >> On top of this, fix the remaining QEMU->OF differences using a callback >> in QEMUMachine. This callback would be called by >> qdev_get_fw_dev_path_helper and, if it returns something non-NULL, the >> result would be used instead of calling bus_get_fw_dev_path. > > > A single machine callback which will recognize all possible bootable > devices and replace things like "disk@3,2" -> "disk@8302000000000000"? Hm. That is constructed in SLOF/board-qemu/slof/vio-vscsi.fs: \ We use SRP luns of the form 8000 | (bus << 8) | (id << 5) | lun \ in the top 16 bits of the 64-bit LUN bus is target here. I guess that could be handled in Qemu, and both need to be in sync. Regards Nikunj