Received: from [140.186.70.92] (port=46961 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov4pp-0004di-55 for qemu-devel@nongnu.org; Mon, 13 Sep 2010 04:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ov4pn-0007l1-Th for qemu-devel@nongnu.org; Mon, 13 Sep 2010 04:56:21 -0400 Received: from torres.zugschlus.de ([85.214.131.164]:41162) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov4pn-0007j5-Ni for qemu-devel@nongnu.org; Mon, 13 Sep 2010 04:56:19 -0400 Date: Mon, 13 Sep 2010 10:55:48 +0200 From: Marc Haber Subject: Re: [Qemu-devel] virtio block device and sysfs Message-ID: <20100913085548.GA28448@torres.zugschlus.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100629183333.GG1647@us.ibm.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ryan Harper Cc: john cooper , john cooper , qemu-devel@nongnu.org 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. 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