From: "Nicholas A. Bellinger" Subject: Re: [PATCH] block: Make BSG detection more sane in hdev_open() Date: Sun, 22 Aug 2010 17:27:47 -0700 Message-ID: <1282523267.25074.14.camel@haakon2.linux-iscsi.org> References: <1282431675-16021-1-git-send-email-nab@linux-iscsi.org> <20100822083121.GA29452@lst.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: FUJITA Tomonori , Hannes Reinecke , Kevin Wolf , Gerd Hoffmann , Mark Harvey , kvm-devel , qemu-devel To: Christoph Hellwig Return-path: Received: from smtp126.sbc.mail.sp1.yahoo.com ([69.147.65.185]:38848 "HELO smtp126.sbc.mail.sp1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751304Ab0HWAbi (ORCPT ); Sun, 22 Aug 2010 20:31:38 -0400 In-Reply-To: <20100822083121.GA29452@lst.de> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, 2010-08-22 at 10:31 +0200, Christoph Hellwig wrote: > On Sat, Aug 21, 2010 at 04:01:15PM -0700, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > Greetings hch, tomo and Co, > > What tree is this against? I can't see any specificc BSG support in qemu. > The Megasas / SGL passthrough friendly qemu-kvm.git/scsi-bsg updated to v0.12.5 is here: http://git.kernel.org/?p=virt/kvm/nab/qemu-kvm.git;a=shortlog;h=refs/heads/scsi-bsg and the BSG driver is here: http://git.kernel.org/?p=virt/kvm/nab/qemu-kvm.git;a=blob;f=hw/scsi-bsg.c;hb=refs/heads/scsi-bsg > Even more I think all this in the wrong place. The only reason > SG_IO support was shoe-horned into raw-posix is that we only had -drive > and no way to specify other devices. We now have -device and a scsi > generic device should be just that without an attached driver, so that > we can get rid of all the special casing for sd devices. > Hmmm, Ok, I think I see what you mean here.. So dropping the explict checking in raw-posix.c to rensure a '-drive file=/dev/bsg/H:C:T:L' used with '-device scsi-bsg' is really a BSG major is OK. And this should instead do similar checks to my rev1 patch in hw/scsi-bsg.c:bsg_generic_initfn(), and just drop the bdrv_is_bsg() (and brdv_is_sg() for hw/scsi-generic.c) stuff altogether, yes..? Thanks! --nab