[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6E21E5352C11B742B20C142EB499E048081B5549@TK5EX14MBXC126.redmond.corp.microsoft.com>
Date: Wed, 31 Aug 2011 14:27:23 +0000
From: KY Srinivasan <kys@...rosoft.com>
To: Olaf Hering <olaf@...fle.de>, Greg KH <greg@...ah.com>
CC: "devel@...uxdriverproject.org" <devel@...uxdriverproject.org>,
"gregkh@...e.de" <gregkh@...e.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"virtualization@...ts.osdl.org" <virtualization@...ts.osdl.org>
Subject: RE: [PATCH 0000/0046] Staging: hv: Driver cleanup
> -----Original Message-----
> From: Olaf Hering [mailto:olaf@...fle.de]
> Sent: Tuesday, August 30, 2011 2:05 PM
> To: Greg KH
> Cc: KY Srinivasan; devel@...uxdriverproject.org; gregkh@...e.de; linux-
> kernel@...r.kernel.org; virtualization@...ts.osdl.org
> Subject: Re: [PATCH 0000/0046] Staging: hv: Driver cleanup
>
> On Tue, Aug 30, Greg KH wrote:
>
> > > > In my test system, the IDE drives are now discovered twice, once by
> > > > hv_storvsc and once by libata:
> > >
> > > This is a known (old problem). The way this was handled earlier was to have
> the
> > > modprobe rules in place to setup a dependency that would force the load of
> the
> > > hyper-v driver (blk / stor) ahead of the native driver and if the load of the PV
> > > driver succeeded, we would not load the native driver. In sles11 sp1, we had a
> rule for
> > > loading blkvsc. With the merge of blkvsc and storvsc, the only change we
> need to make
> > > is to have storvsc in the rule (instaed of blkvsc).
> >
> > Why do we need a rule at all? Shouldn't the module dependancy stuff
> > handle the autoloading of the drivers properly from the initrd now that
> > the hotplug logic is hooked up properly?
>
> There is no plan to load hv_vmbus (or xen-platform-pci) earlier than
> native drivers. That was the purpose of the modprobe.conf files. Now
> that there is a vmbus, that fact could be checked before any other
> attempt to load drivers is made and hv_vmbus should be loaded and all of
> its devices have to be probed manually by modprobe `cat modulealias`.
The strategy I was describing was what was used in sles11 sp1.
>
> > Or is the hotplug code not working correctly?
>
> There is nothing to hotplug. hv_vmbus has to be loaded first so that it
> can take over the devices. But it seems that there is no shutdown of the
> emulated hardware, thats why the disk "sda" is shown twice.
>
> I spot a flaw here.
> KY, can hv_vmbus shutdown emulated hardware? At least the disks, because
> cdroms are appearently still be handled by native drivers?
Olaf, unfortunately the vmbus driver does not stop the emulation of the disk devices.
The earlier modprobe rule was also instrumental in preventing the loading of the
native drivers if the hyperv- driver load succeeded.
Regards,
K. Y
Powered by blists - more mailing lists