From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752106Ab1FHQc6 (ORCPT ); Wed, 8 Jun 2011 12:32:58 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:52548 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741Ab1FHQcy (ORCPT ); Wed, 8 Jun 2011 12:32:54 -0400 X-Sasl-enc: FBpceo/h1UTo5JxqegItgXVlN4M69WAmZoaoj5A4WlxI 1307550773 Date: Wed, 8 Jun 2011 09:22:22 -0700 From: Greg KH To: KY Srinivasan Cc: Christoph Hellwig , "gregkh@suse.de" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "virtualization@lists.osdl.org" , Haiyang Zhang , "Abhishek Kane (Mindtree Consulting PVT LTD)" Subject: Re: [PATCH 12/49] Staging: hv: storvsc: Add a DMI signature to support auto-loading Message-ID: <20110608162222.GF21645@kroah.com> References: <1307400540-13193-1-git-send-email-kys@microsoft.com> <1307400613-13234-1-git-send-email-kys@microsoft.com> <1307400613-13234-12-git-send-email-kys@microsoft.com> <20110606231259.GA18222@infradead.org> <6E21E5352C11B742B20C142EB499E0480813D84D@TK5EX14MBXC122.redmond.corp.microsoft.com> <20110607185813.GA3531@kroah.com> <6E21E5352C11B742B20C142EB499E0480813DD09@TK5EX14MBXC122.redmond.corp.microsoft.com> <20110607222444.GA26968@kroah.com> <6E21E5352C11B742B20C142EB499E0480813DFC1@TK5EX14MBXC122.redmond.corp.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6E21E5352C11B742B20C142EB499E0480813DFC1@TK5EX14MBXC122.redmond.corp.microsoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2011 at 02:44:35AM +0000, KY Srinivasan wrote: > > On Tue, Jun 07, 2011 at 10:19:06PM +0000, KY Srinivasan wrote: > > > Thanks Greg. Can you give me some pointers here as to what needs to be > > > done here. Looking at the code for virtio, it looks like I would need to add stuff > > > to scripts/mod/file2alias.c as well as to include/linux/mod_devicetable.h. Will > > you > > > accept patches for these files to support an ID space for Hyper-V vmbus drivers. > > > > Yes, I will take patches for those files to implement this. > > > > Along with those files, you also need a way to tell userspace that new > > UIDS are found before the individual drivers are loaded. Hopefully you > > can do that now, but if not, it will need to be implemented. > > Could you elaborate on what user level changes I will have to do. It's all kernel code, but you need to be emiting "device found" messages to userspace through the hotplug bus event when you find the devices. Just fill in the correct fields in your hotplug callback and you should be fine. Look at the PCI bus hotplug callback as an example of what is needed if you need an example. hope this helps, greg k-h