From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQKqD-00068u-J8 for qemu-devel@nongnu.org; Tue, 05 Aug 2008 07:36:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQKqB-00065H-MH for qemu-devel@nongnu.org; Tue, 05 Aug 2008 07:36:36 -0400 Received: from [199.232.76.173] (port=56647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQKqA-00064k-Fb for qemu-devel@nongnu.org; Tue, 05 Aug 2008 07:36:34 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:14256 helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQKqA-0003pO-3U for qemu-devel@nongnu.org; Tue, 05 Aug 2008 07:36:34 -0400 Date: Tue, 5 Aug 2008 12:36:32 +0100 From: Samuel Thibault Subject: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 5/7] xen: add block device backend driver. Message-ID: <20080805113632.GP4478@implementation.uk.xensource.com> References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-6-git-send-email-kraxel@redhat.com> <48975D9A.7070109@redhat.com> <20080804213456.GA4518@implementation> <4897F8AA.3060303@redhat.com> <20080805104751.GN4478@implementation.uk.xensource.com> <48983488.6010207@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48983488.6010207@redhat.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Blue Swirl , xen-devel@lists.xensource.com, qemu-devel@nongnu.org Gerd Hoffmann, le Tue 05 Aug 2008 13:07:52 +0200, a écrit : > Samuel Thibault wrote: > > Gerd Hoffmann, le Tue 05 Aug 2008 08:52:26 +0200, a écrit : > >>> There is: the info node, which is an OR of the > >>> VDISK_CDROM/REMOVABLE/READONLY flags. > >> Who sets that node? Backend driver or xend? > > > > backend, see linux/driver/xen/blkback/xenbus.c > > Hmm, ok. > > mode="r" (in backend directory) means readonly, ok. > device-type="cdrom" (backend dir too) means cdrom, ok. These are set by xend, i.e. when they come from the config, indeed. > removable can't be indicated to the backend via xenstore? Doesn't look like it is possible. Why would you want to do that? > btw: Looks like blktap doesn't set any VDISK_* flags? I guess that's because blktap doesn't have the information. The "info" node is information about the underlying source of data, detected by the block backend, while "mode" and "device-type" are configured by the user (and should override the "info" information I guess). Samuel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: Re: [Qemu-devel] [PATCH 5/7] xen: add block device backend driver. Date: Tue, 5 Aug 2008 12:36:32 +0100 Message-ID: <20080805113632.GP4478@implementation.uk.xensource.com> References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-6-git-send-email-kraxel@redhat.com> <48975D9A.7070109@redhat.com> <20080804213456.GA4518@implementation> <4897F8AA.3060303@redhat.com> <20080805104751.GN4478@implementation.uk.xensource.com> <48983488.6010207@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <48983488.6010207@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Hoffmann Cc: Blue Swirl , xen-devel@lists.xensource.com, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org Gerd Hoffmann, le Tue 05 Aug 2008 13:07:52 +0200, a =E9crit : > Samuel Thibault wrote: > > Gerd Hoffmann, le Tue 05 Aug 2008 08:52:26 +0200, a =E9crit : > >>> There is: the info node, which is an OR of the > >>> VDISK_CDROM/REMOVABLE/READONLY flags. > >> Who sets that node? Backend driver or xend? > >=20 > > backend, see linux/driver/xen/blkback/xenbus.c=20 >=20 > Hmm, ok. >=20 > mode=3D"r" (in backend directory) means readonly, ok. > device-type=3D"cdrom" (backend dir too) means cdrom, ok. These are set by xend, i.e. when they come from the config, indeed. > removable can't be indicated to the backend via xenstore? Doesn't look like it is possible. Why would you want to do that? > btw: Looks like blktap doesn't set any VDISK_* flags? I guess that's because blktap doesn't have the information. The "info" node is information about the underlying source of data, detected by the block backend, while "mode" and "device-type" are configured by the user (and should override the "info" information I guess). Samuel