From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvA7X-0005Bd-7v for qemu-devel@nongnu.org; Mon, 13 Sep 2010 10:35:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvA74-0005Cg-8r for qemu-devel@nongnu.org; Mon, 13 Sep 2010 10:34:40 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:47301) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvA74-0005BR-24 for qemu-devel@nongnu.org; Mon, 13 Sep 2010 10:34:30 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o8DEMIPY001543 for ; Mon, 13 Sep 2010 08:22:18 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id o8DEYRgI260448 for ; Mon, 13 Sep 2010 08:34:27 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o8DEYR0B024326 for ; Mon, 13 Sep 2010 08:34:27 -0600 Date: Mon, 13 Sep 2010 09:34:24 -0500 From: Ryan Harper Subject: Re: [Qemu-devel] virtio block device and sysfs Message-ID: <20100913143424.GS30086@us.ibm.com> References: <20100321161638.GA4174@shareable.org> <4BA70D83.4070806@third-harmonic.com> <20100322124224.GG30984@torres.zugschlus.de> <4BA785C8.5050702@third-harmonic.com> <20100629181522.GH8174@torres.zugschlus.de> <20100629183333.GG1647@us.ibm.com> <20100913085548.GA28448@torres.zugschlus.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100913085548.GA28448@torres.zugschlus.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc Haber Cc: john cooper , john cooper , Ryan Harper , qemu-devel@nongnu.org * Marc Haber [2010-09-13 03:56]: > Hi John and Ryan, > > On Tue, Jun 29, 2010 at 01:33:33PM -0500, Ryan Harper wrote: > > We've got a sysfs 'serial' attribute for virtio-blk devices upstream[1]. > > I've got udev support for using this attribute to create disk/by-id (and > > a fix for by-path) symlinks[2]. All that remains is to > > re-spin/post the qemu virtio-blk serial patches[3] and get that in and > > we'll have the full stack working as I've already tested libvirt (which > > has disk serial support). > > How is this going to work once the patches have been applied? Even > qemu 0.11's -drive definition allows a serial= option, but currently > (qemu-kvm 0.12.5, and 2.6.35.4 in the guest) the string passed to it > isn't seen anywhere in the guest's /sys/block/vda. It'll only be available to guests launched with newer qemu (0.13) as virtio-blk serial support is a new feature. > > My test call was > kvm -cdrom ~/bigstuff/grml64-small_sid_20100913.iso \ > -drive file=test.qcow2,if=virtio,media=disk,serial=foo > > Greetings > Marc > > -- > ----------------------------------------------------------------------------- > Marc Haber | "I don't trust Computers. They | Mailadresse im Header > Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 > Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx ryanh@us.ibm.com