From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack) Date: Wed, 03 Jun 2009 19:45:09 +0100 Message-ID: References: <940bcfd20906031057y254622c4n7003e11d099f41f2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <940bcfd20906031057y254622c4n7003e11d099f41f2@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dulloor Cc: Isaku Yamahata , Dan Magenheimer , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org Depends on the feature's impact when unused. -- Keir On 03/06/2009 18:57, "Dulloor" wrote: > Is it better to have the new option added by c/s(CONFIG_PCI_IOMULTI) defa= ult > 'n' ? >=20 > -dulloor >=20 > On Wed, Jun 3, 2009 at 1:48 PM, Keir Fraser w= rote: >> Perhaps post a diff of boot output with c/s 880 vs c/s 881. I've cc'ed >> Isaku, who submitted the patch that's causing your problem. >>=20 >> =A0-- Keir >>=20 >> On 03/06/2009 18:35, "Dan Magenheimer" wrot= e: >>=20 >>> OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing >>> my dom0 to crash. =A0Dom0 boots successfully at 880 and fails >>> with 881 or anything after. >>>=20 >>> Any ideas? >>>=20 >>>> -----Original Message----- >>>> From: Dan Magenheimer >>>> Sent: Tuesday, June 02, 2009 10:45 PM >>>> To: Dan Magenheimer; Keir Fraser; Dutch Meyer; Xen-Devel (E-mail) >>>> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack >>>>=20 >>>>=20 >>>> Followup: my dom0 boots failed with 888, boots fine with 876, >>>> then to ensure no pilot error, I rebuilt 888 again and it >>>> failed again. >>>>=20 >>>>> -----Original Message----- >>>>> From: Dan Magenheimer >>>>> Sent: Tuesday, June 02, 2009 5:50 PM >>>>> To: Keir Fraser; Dutch Meyer; Xen-Devel (E-mail) >>>>> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack >>>>>=20 >>>>>=20 >>>>> Thanks. =A0It is indeed a pilot error on my part but a bit >>>>> more bizarre. =A0I apparently have a linux-2.6-xen.hg directory >>>>> as both a sister and a child to xen-unstable.hg. =A0In this >>>>> case the build apparently chooses the child. =A0I was >>>>> looking at and modifying the un-updated child so >>>>> blktap2 wasn't even present yet. =A0Removing the child >>>>> causes the sibling to build. =A0BUT! Now dom0 is >>>>> crashing early on during boot. =A0(This is an Intel >>>>> Weybridge box.) =A0I'll look into this further tomorrow. >>>>>=20 >>>>> ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) >>>>> ata2.00: ATAPI, max UDMA/100 >>>>> ata2.00: configured for UDMA/100 >>>>> scsi2 : ahci >>>>> ata3: SATA link down (SStatus 0 SControl 300) >>>>> scsi3 : ahci >>>>> ata4: SATA link down (SStatus 0 SControl 300) >>>>> =A0 Vendor: ATA =A0 =A0 =A0 Model: ST3320620AS =A0 =A0 =A0 Rev: 3.AA >>>>> =A0 Type: =A0 Direct-Access =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ANSI SCSI revision: 05 >>>>> ata1: EH pending after completion, repeating EH (cnt=3D4) >>>>> =A0 Vendor: LITE-ON =A0 Model: DVDRW LH-20A1S =A0 =A0Rev: 9L03 >>>>> =A0 Type: =A0 CD-ROM =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ANSI SCSI revision: 05 >>>>> (XEN) PCI add device 00:1f.5 >>>>> ata_piix 0000:00:1f.5: MAP [ P0 P2 P1 P3 ] >>>>> ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 19 (level, low) -> IRQ 16 >>>>> ata5: SATA max UDMA/133 cmd 0x0 ctl 0x2 bmdma 0x0 irq 16 >>>>> ata6: SATA max UDMA/133 cmd 0x0 ctl 0x2 bmdma 0x0 irq 16 >>>>> scsi4 : ata_piix >>>>> scsi5 : ata_piix >>>>> device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: >>>>> dm-devel@redhat.com >>>>> Kernel panic - not syncing: Attempted to kill init! >>>>> =A0(XEN) Domain 0 crashed: rebooting machine in 5 seconds. >>>>>=20 >>>>>> -----Original Message----- >>>>>> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] >>>>>> Sent: Tuesday, June 02, 2009 4:45 PM >>>>>> To: Dan Magenheimer; Dutch Meyer; Xen-Devel (E-mail) >>>>>> Subject: Re: [Xen-devel] blktap2: need more than 3 values >>>> to unpack >>>>>>=20 >>>>>>=20 >>>>>> Probably you had an old .config hanging around in your build >>>>>> tree somewhere. >>>>>> c/s 889 should fix this for a fresh build. >>>>>>=20 >>>>>> =A0-- Keir >>>>>>=20 >>>>>> On 02/06/2009 18:33, "Dan Magenheimer" >>>>>> wrote: >>>>>>=20 >>>>>>> Thanks. =A0Looks like a partial configuration patch got checked >>>>>>> in for blktap2 (cs 886)? =A0CONFIG_XEN_BLKDEV_TAP2 must be >>>>> configured >>>>>>> but afaict is not turned on by default (yet?). =A0So a fresh >>>>>>> xen-unstable tip doesn't build the blktap2 driver. =A0See: >>>>>>>=20 >>>>>>>=20 >>>> http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227 >>>>>>>=20 >>>>>>> (I'm guessing since this was submitted by Isaku that blktap2 >>>>>>> shouldn't be the default on ia64?) >>>>>>>=20 >>>>>>> Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead >>>>>>> of CONFIG_XEN_BLKDEV_TAP, at least on x86? >>>>>>>=20 >>>>>>> I tried modifying >>>>>>>=20 >>>>>>> linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32 >>>>>>>=20 >>>>>>> (and also >>>>>>>=20 >>>>>>> linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32) >>>>>>>=20 >>>>>>> followed by: >>>>>>>=20 >>>>>>> KERNELS=3Dlinux-2.6-xen0 make linux-2.6-xen-config >>>>>> CONFIGMODE=3Doldconfig >>>>>>>=20 >>>>>>> (I don't need or want to go through a manual config process) >>>>>>>=20 >>>>>>> but BLKDEV_TAP is always selected, not BLKDEV_TAP2. >>>>>>>=20 >>>>>>> Finally, I resorted to manually changing >>>>>>>=20 >>>>>>> linux-2.6.18-xen.hg/drivers/xen/Kconfig >>>>>>>=20 >>>>>>> and this succeeds in turning it on, but it just reverses the >>>>>>> above checked-in patch, so I suspect that's not the right >>>>>>> answer either. >>>>>>>=20 >>>>>>>> -----Original Message----- >>>>>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca] >>>>>>>> Sent: Tuesday, June 02, 2009 9:05 AM >>>>>>>> To: Dan Magenheimer >>>>>>>> Subject: RE: [Xen-devel] blktap2: need more than 3 >>>>> values to unpack >>>>>>>>=20 >>>>>>>>=20 >>>>>>>> I think that you don't have the blktap2 driver loaded in >>>>>>>> dom0. =A0A clean >>>>>>>> build/install of the dom0 kernel image should sort you out. =A0If >>>>>>>> drivers/xen/blktap2 is compiled in it should be setting up >>>>>>>> these paths. >>>>>>>>=20 >>>>>>>> Let me know if that fixes things and I'll make python >>>>> spit out more >>>>>>>> meaningful errors, otherwise we can try to figure out the >>>>>>>> blktap2 kernel >>>>>>>> code isn't working. >>>>>>>>=20 >>>>>>>> --Dutch >>>>>>>>=20 >>>>>>>> On Tue, 2 Jun 2009, Dan Magenheimer wrote: >>>>>>>>=20 >>>>>>>>> It replies with "didn't find blktap-control in /proc/misc" >>>>>>>>>=20 >>>>>>>>> If that fails, perhaps the path doesn't exist, but I looked >>>>>>>>> and /sys/class/blktap2 doesn't exist. >>>>>>>>>=20 >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca] >>>>>>>>>> Sent: Monday, June 01, 2009 10:37 PM >>>>>>>>>> To: Dan Magenheimer >>>>>>>>>> Subject: RE: [Xen-devel] blktap2: need more than 3 >>>>>> values to unpack >>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>> Can you try this from the command line: >>>>>>>>>>=20 >>>>>>>>>> =A0 =A0 =A0tapdisk2 -n aio:/pathto/file.img >>>>>>>>>>=20 >>>>>>>>>> If successful, this will create your aio device and print a >>>>>>>>>> /dev device >>>>>>>>>> associated with it. >>>>>>>>>>=20 >>>>>>>>>> In that case you'll then be able to remove it with: >>>>>>>>>>=20 >>>>>>>>>> =A0 =A0 =A0echo 1 > /sys/class/blktap2//remove >>>>>>>>>>=20 >>>>>>>>>> Where will be obvious from the output of the >>>>>>>> tapdisk2 command. >>>>>>>>>>=20 >>>>>>>>>> However, I expect that this will fail. >>>>>>>>>>=20 >>>>>>>>>> --Dutch >>>>>>>>>>=20 >>>>>>>>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote: >>>>>>>>>>=20 >>>>>>>>>>>> Then I might be able to help, but I'm not sure how to >>>>>>>>>>>> reproduce it. =A0If >>>>>>>>>>>> you send a log file and config for this latter error I'll >>>>>>>>>>>> take a look. >>>>>>>>>>>=20 >>>>>>>>>>> Here ya go. >>>>>>>>>>>=20 >>>>>>>>>>> Thanks, >>>>>>>>>>> Dan >>>>>>>>>>>=20 >>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca] >>>>>>>>>>>> Sent: Monday, June 01, 2009 8:32 PM >>>>>>>>>>>> To: Dan Magenheimer >>>>>>>>>>>> Cc: Xen-Devel (E-mail) >>>>>>>>>>>> Subject: Re: [Xen-devel] blktap2: need more than 3 >>>>>>>> values to unpack >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>> The tap:aio:/pathto/file.img syntax that you're >>>> using in your >>>>>>>>>>>> config was >>>>>>>>>>>> changed before blktap2 was introduced. >>>>>>>>>>>> tap:tapdisk:aio:/pathto/file.img is >>>>>>>>>>>> apparently the correct syntax now, though the README didn't >>>>>>>>>>>> get updated to >>>>>>>>>>>> reflect this. =A0Our blktap2 documentation is no better - >>>>>>>> I'll try to >>>>>>>>>>>> remedy that this week. >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>> If you're still seeing this error: >>>>>>>>>>>> =A0 =A0 "Error: 'file' object has no attribute 'find'" >>>>>>>>>>>>=20 >>>>>>>>>>>> Then I might be able to help, but I'm not sure how to >>>>>>>>>>>> reproduce it. =A0If >>>>>>>>>>>> you send a log file and config for this latter error I'll >>>>>>>>>>>> take a look. >>>>>>>>>>>> Yang seems to be reporting the same thing in >>>> another thread. >>>>>>>>>>>>=20 >>>>>>>>>>>> --Dutch >>>>>>>>>>>>=20 >>>>>>>>>>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote: >>>>>>>>>>>>=20 >>>>>>>>>>>>> Hmmm... trying blktap2 for the first time, using 19682. >>>>>>>>>>>>> I had thought that the syntax hadn't changed, but I am >>>>>>>>>>>>> getting what appears to be a parsing error on my vbd line. >>>>>>>>>>>>>=20 >>>>>>>>>>>>> "ValueError: need more than 3 values to unpack" >>>>>>>>>>>>>=20 >>>>>>>>>>>>> Thinking maybe that "w!" was the culprit, I changed >>>>>>>>>>>>> it to "w" with no change in result. >>>>>>>>>>>>>=20 >>>>>>>>>>>>> Looking at the python code that generated the error, >>>>>>>>>>>>> I tried to figure out the syntax by experimentation >>>>>>>>>>>>> but without luck. =A0I tried: >>>>>>>>>>>>>=20 >>>>>>>>>>>>> tap:tapdisk:aio:/pathto/file.img >>>>>>>>>>>>>=20 >>>>>>>>>>>>> but got "Error: 'file' object has no attribute 'find'" >>>>>>>>>>>>>=20 >>>>>>>>>>>>> To see if I could use the old blktap, I tried >>>>>>>>>>>>>=20 >>>>>>>>>>>>> tap:tapdisk:ioemu:/pathto/file.img >>>>>>>>>>>>>=20 >>>>>>>>>>>>> but got the dreaded "Error: Device 768 (tap) could not be >>>>>>>>>>>>> connected. Hotplug scripts not working" >>>>>>>>>>>>>=20 >>>>>>>>>>>>> Am I missing something in the syntax for blktap2? >>>>>>>>>>>>> Is there a how-to or readme I didn't find? =A0Or >>>>>>>>>>>>> is there some required dependency I don't know about >>>>>>>>>>>>> that is missing? >>>>>>>>>>>>>=20 >>>>>>>>>>>>> I thought maybe I had a bad install, so rebuilt and >>>>>>>>>>>>> reinstalled with the same result. >>>>>>>>>>>>>=20 >>>>>>>>>>>>> xend.log and config file attached. >>>>>>>>>>>>>=20 >>>>>>>>>>>>> Thanks, >>>>>>>>>>>>> Dan >>>>>>>>>>>>>=20 >>>>>>>>>>>>> P.S. I am trying blktap2 because both blktap and >>>>>>>>>>>>> file-backed fail. =A0Blktap sometimes reads garbage >>>>>>>>>>>>> from the file and >>>>>>>>>>>>=20 >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> Xen-devel mailing list >>>>>>>>>>>> Xen-devel@lists.xensource.com >>>>>>>>>>>> http://lists.xensource.com/xen-devel >>>>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>=20 >>>>>>>=20 >>>>>>> _______________________________________________ >>>>>>> Xen-devel mailing list >>>>>>> Xen-devel@lists.xensource.com >>>>>>> http://lists.xensource.com/xen-devel >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>> _______________________________________________ >>>>> Xen-devel mailing list >>>>> Xen-devel@lists.xensource.com >>>>> http://lists.xensource.com/xen-devel >>>>>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >=20 >=20