Daniel Stekloff
2006-Mar-14 00:42 UTC
[Xen-devel] [PATCH][XM-TEST] Add mounting /sys to ramdisk
Hi, This patch adds mounting /sys for xm-test ramdisk. I tested on the para virt as well as the HVM disk.img. Thanks, Dan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Woody Marvel
2006-Mar-14 03:10 UTC
Re: [Xen-devel] [PATCH][XM-TEST] Add mounting /sys to ramdisk
Dan Is that the only check you can used is 2.6 from uname? Is there any other piece of info you can check? <not knowing sysfs that well> wm ======================On Mon, 2006-03-13 at 16:42 -0800, Daniel Stekloff wrote:> Hi, > > This patch adds mounting /sys for xm-test ramdisk. I tested on the para > virt as well as the HVM disk.img. > > Thanks, > > Dan > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel-- Sincerely, Woody Marvel IBM Linux Technology Center Open Source Virtualization email: marvel@us.ibm.com 503-578-3833 Beaverton, OR 97006 ********************************** _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Dan Smith
2006-Mar-14 16:21 UTC
Re: [Xen-devel] [PATCH][XM-TEST] Add mounting /sys to ramdisk
WM> Dan Is that the only check you can used is 2.6 from uname? Is WM> there any other piece of info you can check? <not knowing sysfs WM> that well> Checking for 2.6 is a perfectly reasonable way to decide whether or not to mount /sys, IMHO. -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Luciano Miguel Ferreira Rocha
2006-Mar-14 17:03 UTC
Re: [Xen-devel] [PATCH][XM-TEST] Add mounting /sys to ramdisk
On Tue, Mar 14, 2006 at 08:21:25AM -0800, Dan Smith wrote:> > WM> Dan Is that the only check you can used is 2.6 from uname? Is > WM> there any other piece of info you can check? <not knowing sysfs > WM> that well> > > Checking for 2.6 is a perfectly reasonable way to decide whether or > not to mount /sys, IMHO.And there''s grep sysfs /proc/filesystems (|| modprobe -q sysfs, if compile-as-module is ever added to sysfs). (Sorry for replying to this post instead of the initial one, I deleted it already.) -- lfr 0/0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Daniel Stekloff
2006-Mar-14 17:10 UTC
Re: [Xen-devel] [PATCH][XM-TEST] Add mounting /sys to ramdisk
On Mon, 2006-03-13 at 19:10 -0800, Woody Marvel wrote:> Dan > > Is that the only check you can used is 2.6 from uname? Is there any > other piece of info you can check? <not knowing sysfs that well>Hi Woody, Yeah... sysfs is compiled into the 2.6 domU kernel, which we are assuming is the kernel for the ramdisk. The HVM disk.img, which goes and finds its own non-xen kernel, could be an issue - if the kernel it finds doesn''t compile in sysfs - such as an embedded kernel. I''m not sure this really is an issue, however. Even if it shouldn''t find sysfs to mount, the image will still boot and still be able to run tests. Is that ok? Thanks, Dan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Woody Marvel
2006-Mar-14 17:26 UTC
Re: [Xen-devel] [PATCH][XM-TEST] Add mounting /sys to ramdisk
Dan Great, thanks for the reply. I was not inferring any thing on the requirement of mounting sysfs, just trying to understand if there was another method of checking for sysfs prior to the mount. And the one that came from the list was what I was looking for. =================And there''s grep sysfs /proc/filesystems (|| modprobe -q sysfs, if compile-as-module is ever added to sysfs). ================== Thanks Dan, thanks for the patch. On Tue, 2006-03-14 at 09:10 -0800, Daniel Stekloff wrote:> On Mon, 2006-03-13 at 19:10 -0800, Woody Marvel wrote: > > Dan > > > > Is that the only check you can used is 2.6 from uname? Is there any > > other piece of info you can check? <not knowing sysfs that well> > > > Hi Woody, > > Yeah... sysfs is compiled into the 2.6 domU kernel, which we are > assuming is the kernel for the ramdisk. The HVM disk.img, which goes and > finds its own non-xen kernel, could be an issue - if the kernel it finds > doesn''t compile in sysfs - such as an embedded kernel. I''m not sure this > really is an issue, however. Even if it shouldn''t find sysfs to mount, > the image will still boot and still be able to run tests. > > Is that ok? > > Thanks, > Dan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel-- Sincerely, Woody Marvel IBM Linux Technology Center Open Source Virtualization email: marvel@us.ibm.com 503-578-3833 Beaverton, OR 97006 ********************************** _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel