WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] Status of CoW on xenppc based on blktap - could someone reprodu

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] Status of CoW on xenppc based on blktap - could someone reproduce my issue?
From: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx>
Date: Wed, 16 May 2007 13:43:48 +0200
Delivery-date: Wed, 16 May 2007 04:41:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070301)
CoW on xenppc based on blktap

on boot and also when I try to start blktapctrl later manually I get no running blktapctrl, but this in /var/log/messages:
BLKTAPCTRL[2776]: blktapctrl: v1.0.0
BLKTAPCTRL[2776]: Found driver: [raw image (aio)]
BLKTAPCTRL[2776]: Found driver: [raw image (sync)]
BLKTAPCTRL[2776]: Found driver: [vmware image (vmdk)]
BLKTAPCTRL[2776]: Found driver: [ramdisk image (ram)]
BLKTAPCTRL[2776]: Found driver: [qcow disk (qcow)]
BLKTAPCTRL[2776]: Unable to start blktapctrl

- Add DPRINTF to code and re-install with "make install-tools"
this shows that it fails related to this
   693     if ((ret = xc_find_device_number("blktap0")) < 0) {
   694         DPRINTF("couldn't find device number - got '%d'\n",ret);
   695         goto open_failed;
   696     }
-> May 16 09:46:32 c08b01-0 BLKTAPCTRL[7045]: couldn't find device number - got '-1'

internally using the function xc_find_device_number it searches the
directories:
/sys/class/misc/blktap0/dev
/sys/class/xen/blktap0/dev

I patched xc_linux.c to check if it really tries that and not fails because of other unexpected reasons:
root@c08b01-0[0]:~/xen/xen-unstable.hg# cat /tmp/xc_linux.log
found sysfsdir '/sys'
try opening full sysfsdir '/sys/class/xen/blktap0/dev'
found sysfsdir '/sys'
try opening full sysfsdir '/sys/class/misc/blktap0/dev'

And it is right, these directories/files are not there ...

On my system are only a few entries in /sys/class/misc and no /sys/class/xen
root@c08b01-0[0]:/# ll /sys/class/misc/
total 0
0 drwxr-xr-x 2 root root 0 2007-05-16 11:01 evtchn
0 drwxr-xr-x 2 root root 0 2007-05-16 11:00 rtc
root@c08b01-0[0]:/# ll /sys/class/xen
ls: /sys/class/xen: No such file or directory

So, the question is - why is there no /sys/class/[xen|misc]/blktap0/dev ?
Unfortunately I have no other xenppc installation and no x86 xen installation too. Can someone on the list which has xenx86 and xenppc running please cross-check if these missing directories are a local issues of my installation/setup ?

--

Grüsse / regards, Christian Ehrhardt

IBM Linux Technology Center, Open Virtualization
+49 7031/16-3385
Ehrhardt@xxxxxxxxxxxxxxxxxxx
Ehrhardt@xxxxxxxxxx

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen Geschäftsführung: Herbert Kircher Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>