Skip to contentSkip to conversation

blktap2: need more than 3 values to unpack

DISCUSSION Dan Magenheimer 4 participants 20 messages Jun 2, 2009 – Jun 4, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be configured but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config CONFIGMODE=oldconfig

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 147 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

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.

--Dutch

Quoted 25 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 20 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 64 lines
Quoted 63 lines
Quoted 62 lines
Quoted 62 lines

remedy that this week.

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Probably you had an old .config hanging around in your build tree somewhere. c/s 889 should fix this for a fresh build.

-- Keir

Quoted 189 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be configured but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config CONFIGMODE=oldconfig

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 74 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

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.

--Dutch

Quoted 25 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 20 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 73 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 64 lines
Quoted 63 lines
Quoted 62 lines
Quoted 62 lines

remedy that this week.

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM 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: [email protected]

Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 210 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

-- Keir

Quoted 17 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be configured but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 5 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Quoted 40 lines

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 32 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

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.

--Dutch

Quoted 10 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 120 lines
Quoted 42 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 73 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 64 lines
Quoted 63 lines
Quoted 62 lines
Quoted 62 lines

remedy that this week.

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw

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.

Quoted 260 lines

-----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

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM 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:
[email protected]

Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 7 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 11 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

-- Keir

Quoted 2 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 15 lines
Quoted 15 lines

but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 26 lines
Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 5 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 129 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 120 lines
Quoted 42 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 73 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 64 lines
Quoted 63 lines
Quoted 62 lines
Quoted 62 lines

remedy that this week.

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash. Dom0 boots successfully at 880 and fails with 881 or anything after.

Any ideas?

Quoted 275 lines

-----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

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.

Quoted 38 lines

-----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

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM 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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

-- Keir

Quoted 2 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 40 lines
Quoted 11 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 26 lines
Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 70 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 62 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 43 lines
Quoted 43 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

Quoted 68 lines
Quoted 55 lines
Quoted 55 lines
Quoted 54 lines
Quoted 53 lines
Quoted 52 lines
Quoted 51 lines
Quoted 51 lines

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

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.

-- Keir

Quoted 281 lines · Dan Magenheimer

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash. Dom0 boots successfully at 880 and fails with 881 or anything after.

Any ideas?

Quoted 275 lines

-----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

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.

Quoted 38 lines

-----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

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM 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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

-- Keir

Quoted 2 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 40 lines
Quoted 11 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 26 lines
Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 70 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 62 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 43 lines
Quoted 43 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

Quoted 68 lines
Quoted 55 lines
Quoted 55 lines
Quoted 54 lines
Quoted 53 lines
Quoted 52 lines
Quoted 51 lines
Quoted 51 lines

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Is it better to have the new option added by c/s(CONFIG_PCI_IOMULTI) default 'n' ?

-dulloor

Quoted 291 lines · Keir Fraser

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.

-- Keir

Quoted 4 lines · Dan Magenheimer

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash. Dom0 boots successfully at 880 and fails with 881 or anything after.

Quoted 277 lines

Any ideas?

Quoted 275 lines

-----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

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.

Quoted 38 lines

-----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

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM 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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

-- Keir

Quoted 2 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 40 lines
Quoted 11 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 26 lines
Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 70 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort you out. If drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 62 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 43 lines
Quoted 43 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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. Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

Quoted 68 lines
Quoted 55 lines
Quoted 55 lines
Quoted 54 lines
Quoted 53 lines
Quoted 52 lines
Quoted 51 lines
Quoted 51 lines

--Dutch

Quoted 32 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

Quoted 8 lines

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#8 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Depends on the feature's impact when unused.

-- Keir

Quoted 303 lines · Dulloor

Is it better to have the new option added by c/s(CONFIG_PCI_IOMULTI) default 'n' ?

-dulloor

Quoted 295 lines · Keir Fraser

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.

 -- Keir

Quoted 4 lines · Dan Magenheimer

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash.  Dom0 boots successfully at 880 and fails with 881 or anything after.

Quoted 277 lines

Any ideas?

Quoted 275 lines

-----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

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.

Quoted 38 lines

-----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

Thanks.  It is indeed a pilot error on my part but a bit more bizarre.  I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg.  In this case the build apparently chooses the child.  I was looking at and modifying the un-updated child so blktap2 wasn't even present yet.  Removing the child causes the sibling to build.  BUT! Now dom0 is crashing early on during boot.  (This is an Intel Weybridge box.)  I'll look into this further tomorrow.

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)
  Vendor: ATA       Model: ST3320620AS       Rev: 3.AA
  Type:   Direct-Access                      ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
  Vendor: LITE-ON   Model: DVDRW LH-20A1S    Rev: 9L03
  Type:   CD-ROM                             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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!

 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.

Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

 -- Keir

Quoted 2 lines · Dan Magenheimer

Thanks.  Looks like a partial configuration patch got checked in for blktap2 (cs 886)?  CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?).  So a fresh xen-unstable tip doesn't build the blktap2 driver.  See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 40 lines
Quoted 11 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 26 lines
Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 70 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that you don't have the blktap2 driver loaded in dom0.  A clean
build/install of the dom0 kernel image should sort you out.  If drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 62 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 43 lines
Quoted 43 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

     tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

     echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to reproduce it.  If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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.  Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
    "Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it.  If
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.

Quoted 68 lines
Quoted 55 lines
Quoted 55 lines
Quoted 54 lines
Quoted 53 lines
Quoted 52 lines
Quoted 51 lines
Quoted 51 lines

--Dutch

Quoted 40 lines · Dan Magenheimer

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed
it to "w" with no change in result.

Looking at the python code that generated the error,
I tried to figure out the syntax by experimentation
but without luck.  I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be
connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2?
Is there a how-to or readme I didn't find?  Or
is there some required dependency I don't know about
that is missing?

I thought maybe I had a bad install, so rebuilt and
reinstalled with the same result.

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and
file-backed fail.  Blktap sometimes reads garbage
from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#9 lore raw

RE: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Quoted 2 lines
Quoted 2 lines

Is it better to have the new option added by
c/s(CONFIG_PCI_IOMULTI) default 'n' ?

Turning off that option doesn't stop my dom0 from crashing. Reverting 881 DOES stop my dom0 from crashing. Attached are the boot output for fail and success (the only difference between the two dom0's is the success has 881 reverted).

Of note, the fail log has three lines of the type:

"Driver 'xxx' needs updating - please use bus_type methods"

(xxx = usbfs, hub, usb) and the success log has a line that says:

"PCI IO multiplexer device installed"

which is missing in the fail log.

Quoted 334 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 12:45 PM
To: Dulloor
Cc: Isaku Yamahata; Dan Magenheimer; Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Depends on the feature's impact when unused.

-- Keir

Quoted 1 line · Dulloor

Is it better to have the new option added by

c/s(CONFIG_PCI_IOMULTI) default

Quoted 5 lines

'n' ?

-dulloor

On Wed, Jun 3, 2009 at 1:48 PM, Keir Fraser

Quoted 1 line · <[email protected]> wrote:
Quoted 1 line

Perhaps post a diff of boot output with c/s 880 vs c/s

881. I've cc'ed

Quoted 5 lines
Quoted 5 lines

Isaku, who submitted the patch that's causing your problem.

 -- Keir

On 03/06/2009 18:35, "Dan Magenheimer"

Quoted 5 lines · <[email protected]> wrote:
Quoted 5 lines
Quoted 5 lines

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash.  Dom0 boots successfully at 880 and fails with 881 or anything after.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Any ideas?

Quoted 5 lines

-----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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

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.

Quoted 5 lines

-----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

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Thanks.  It is indeed a pilot error on my part but a bit more bizarre.  I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg.  In this case the build apparently chooses the child.  I was looking at and modifying the un-updated child so blktap2 wasn't even present yet.  Removing the child causes the sibling to build.  BUT! Now dom0 is crashing early on during boot.  (This is an Intel Weybridge box.)  I'll look into this further tomorrow.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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)
  Vendor: ATA       Model: ST3320620AS       Rev: 3.AA
  Type:   Direct-Access                      ANSI SCSI

revision: 05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

ata1: EH pending after completion, repeating EH (cnt=4)
  Vendor: LITE-ON   Model: DVDRW LH-20A1S    Rev: 9L03
  Type:   CD-ROM                             ANSI SCSI

revision: 05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(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

Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 6 lines

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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!

 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.

Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

 -- Keir

Quoted 2 lines · Dan Magenheimer

Thanks.  Looks like a partial configuration patch got checked in for blktap2 (cs 886)?  CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?).  So a fresh xen-unstable tip doesn't build the blktap2 driver.  See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 37 lines
Quoted 37 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

values to unpack

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I think that you don't have the blktap2 driver loaded in dom0.  A clean
build/install of the dom0 kernel image should sort

you out.  If

Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 61 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 42 lines
Quoted 42 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

     tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

     echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to
reproduce it.  If
you send a log file and config for this latter error I'll
take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config was
changed before blktap2 was introduced.
tap:tapdisk:aio:/pathto/file.img is
apparently the correct syntax now, though the

README didn't

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

get updated to
reflect this.  Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
    "Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to
reproduce it.  If
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.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

--Dutch

On Mon, 1 Jun 2009, Dan Magenheimer wrote:

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.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed
it to "w" with no change in result.

Looking at the python code that generated the error,
I tried to figure out the syntax by experimentation
but without luck.  I tried:

tap:tapdisk:aio:/pathto/file.img

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap)

could not be

Quoted 44 lines
Quoted 44 lines
Quoted 41 lines
Quoted 41 lines
Quoted 41 lines
Quoted 28 lines
Quoted 28 lines
Quoted 27 lines
Quoted 26 lines
Quoted 25 lines
Quoted 24 lines
Quoted 24 lines

connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2?
Is there a how-to or readme I didn't find?  Or
is there some required dependency I don't know about
that is missing?

I thought maybe I had a bad install, so rebuilt and
reinstalled with the same result.

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and
file-backed fail.  Blktap sometimes reads garbage
from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 6 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Changeset 881 is "pcie io space multiplex: backport of bus event notification patch", right? I don't believe that you are reverting just that patch, for two reasons:
1. It only adds extra functionality which by default would not do anything.
Just reading the patch I can see it's harmless by itself as it merely introduces a new notifier chain which noone registers on.
2. Changeset 882 depends on 881. If you revert just 881 then the tree will
not build.

-- Keir

Quoted 357 lines · Dan Magenheimer
Quoted 2 lines
Quoted 2 lines

Is it better to have the new option added by
c/s(CONFIG_PCI_IOMULTI) default 'n' ?

Turning off that option doesn't stop my dom0 from crashing. Reverting 881 DOES stop my dom0 from crashing. Attached are the boot output for fail and success (the only difference between the two dom0's is the success has 881 reverted).

Of note, the fail log has three lines of the type:

"Driver 'xxx' needs updating - please use bus_type methods"

(xxx = usbfs, hub, usb) and the success log has a line that says:

"PCI IO multiplexer device installed"

which is missing in the fail log.

Quoted 339 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 12:45 PM
To: Dulloor
Cc: Isaku Yamahata; Dan Magenheimer; Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Depends on the feature's impact when unused.

-- Keir

Quoted 1 line · Dulloor

Is it better to have the new option added by

c/s(CONFIG_PCI_IOMULTI) default

Quoted 5 lines

'n' ?

-dulloor

On Wed, Jun 3, 2009 at 1:48 PM, Keir Fraser

Quoted 1 line · <[email protected]> wrote:
Quoted 1 line

Perhaps post a diff of boot output with c/s 880 vs c/s

881. I've cc'ed

Quoted 5 lines
Quoted 5 lines

Isaku, who submitted the patch that's causing your problem.

-- Keir

On 03/06/2009 18:35, "Dan Magenheimer"

Quoted 5 lines · <[email protected]> wrote:
Quoted 5 lines
Quoted 5 lines

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash. Dom0 boots successfully at 880 and fails with 881 or anything after.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Any ideas?

Quoted 5 lines

-----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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

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.

Quoted 5 lines

-----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

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI

revision: 05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM ANSI SCSI

revision: 05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(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

Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 6 lines

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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

-- Keir

Quoted 2 lines · Dan Magenheimer

Thanks. Looks like a partial configuration patch got checked in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 37 lines
Quoted 37 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

values to unpack

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort

you out. If

Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 61 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 42 lines
Quoted 42 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

On Mon, 1 Jun 2009, Dan Magenheimer wrote:

Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 2 lines
Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config was
changed before blktap2 was introduced. tap:tapdisk:aio:/pathto/file.img is apparently the correct syntax now, though the

README didn't

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

get updated to
reflect this. Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to reproduce it. If
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.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

--Dutch

On Mon, 1 Jun 2009, Dan Magenheimer wrote:

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.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed it to "w" with no change in result.

Looking at the python code that generated the error, I tried to figure out the syntax by experimentation but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap)

could not be

Quoted 44 lines
Quoted 44 lines
Quoted 41 lines
Quoted 41 lines
Quoted 41 lines
Quoted 28 lines
Quoted 28 lines
Quoted 27 lines
Quoted 26 lines
Quoted 25 lines

connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2? Is there a how-to or readme I didn't find? Or is there some required dependency I don't know about that is missing?

I thought maybe I had a bad install, so rebuilt and reinstalled with the same result.

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and file-backed fail. Blktap sometimes reads garbage from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 6 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#11 lore raw

RE: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Well, hmmm.

Quoted 4 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself as it merely introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

1) I build* 889 successfully. (It fails to run and I reboot to Linux.)
2) I revert 881 with

# cd .../xen-unstable.hg
# cd linux-2.6.18-xen.hg
# hg diff -r880 -r881 | patch -p1 -R
# # the patch output shows the same four files as 881
# cd ..

3) I insert a syntax error in include/linux/device.h and build* again. Build fails (as expected).
4) I remove the syntax error and build* again, build succeeds, installs and reboots fine.

* My build process is:

# cd .../xen-unstable.hg
# KERNELS=linux-2.6-xen0 make linux-2.6-xen-clean
# yes "" | KERNELS=linux-2.6-xen0 make \
  linux-2.6-xen-config CONFIGMODE=oldconfig
# KERNELS=linux-2.6-xen0 make linux-2.6-xen-build
# KERNELS=linux-2.6-xen0 make linux-2.6-xen-install

and I always check /boot/vmlinux-2.6.18.8-xen to ensure the install succeeded.

Quoted 393 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 2:47 PM
To: Dan Magenheimer; Dulloor; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Changeset 881 is "pcie io space multiplex: backport of bus event notification patch", right? I don't believe that you are reverting just that
patch, for two reasons:
1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself as it merely introduces a new notifier chain which noone registers on.
2. Changeset 882 depends on 881. If you revert just 881 then
the tree will
not build.

-- Keir

Quoted 10 lines · Dan Magenheimer
Quoted 2 lines
Quoted 2 lines

Is it better to have the new option added by
c/s(CONFIG_PCI_IOMULTI) default 'n' ?

Turning off that option doesn't stop my dom0 from crashing. Reverting 881 DOES stop my dom0 from crashing. Attached are the boot output for fail and success (the only difference between the two dom0's is the success has 881 reverted).

Of note, the fail log has three lines of the type:

Quoted 14 lines

"Driver 'xxx' needs updating - please use bus_type methods"

(xxx = usbfs, hub, usb) and the success log has a line that says:

"PCI IO multiplexer device installed"

which is missing in the fail log.

Quoted 6 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 12:45 PM
To: Dulloor
Cc: Isaku Yamahata; Dan Magenheimer; Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was:

[Xen-devel]

Quoted 30 lines
Quoted 30 lines

blktap2: need more than 3 values to unpack)

Depends on the feature's impact when unused.

-- Keir

Quoted 1 line · Dulloor

Is it better to have the new option added by

c/s(CONFIG_PCI_IOMULTI) default

Quoted 5 lines

'n' ?

-dulloor

On Wed, Jun 3, 2009 at 1:48 PM, Keir Fraser

Quoted 1 line · <[email protected]> wrote:
Quoted 1 line

Perhaps post a diff of boot output with c/s 880 vs c/s

881. I've cc'ed

Quoted 5 lines
Quoted 5 lines

Isaku, who submitted the patch that's causing your problem.

-- Keir

On 03/06/2009 18:35, "Dan Magenheimer"

Quoted 5 lines · <[email protected]> wrote:
Quoted 5 lines
Quoted 5 lines

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash. Dom0 boots successfully at 880 and fails with 881 or anything after.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Any ideas?

Quoted 4 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Tuesday, June 02, 2009 10:45 PM
To: Dan Magenheimer; Keir Fraser; Dutch Meyer;

Xen-Devel (E-mail)

Quoted 65 lines
Quoted 65 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

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.

Quoted 5 lines

-----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

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Thanks. It is indeed a pilot error on my part but a bit more bizarre. I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. In this case the build apparently chooses the child. I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. Removing the child causes the sibling to build. BUT! Now dom0 is crashing early on during boot. (This is an Intel Weybridge box.) I'll look into this further tomorrow.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI

revision: 05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM ANSI SCSI

revision: 05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(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

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 6 lines

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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!
 (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-- Keir

Quoted 1 line · Dan Magenheimer

Thanks. Looks like a partial configuration patch

got checked

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?). So a fresh xen-unstable tip doesn't build the blktap2 driver. See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by

default, instead

Quoted 48 lines
Quoted 48 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 6 lines

of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

values to unpack

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I think that you don't have the blktap2 driver loaded in dom0. A clean
build/install of the dom0 kernel image should sort

you out. If

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

--Dutch

Quoted 3 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

If that fails, perhaps the path doesn't exist,

but I looked

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

values to unpack

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Can you try this from the command line:

tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device

and print a

Quoted 144 lines
Quoted 144 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 8 lines
Quoted 8 lines

/dev device
associated with it.

In that case you'll then be able to remove it with:

echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

On Mon, 1 Jun 2009, Dan Magenheimer wrote:

Then I might be able to help, but I'm not sure how to
reproduce it. If
you send a log file and config for this latter error I'll
take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 2 lines
Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config was
changed before blktap2 was introduced.
tap:tapdisk:aio:/pathto/file.img is
apparently the correct syntax now, though the

README didn't

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

get updated to
reflect this. Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to
reproduce it. If
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.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

--Dutch

On Mon, 1 Jun 2009, Dan Magenheimer wrote:

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.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed
it to "w" with no change in result.

Looking at the python code that generated the error,
I tried to figure out the syntax by experimentation
but without luck. I tried:

tap:tapdisk:aio:/pathto/file.img

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap)

could not be

Quoted 44 lines
Quoted 44 lines
Quoted 41 lines
Quoted 41 lines
Quoted 41 lines
Quoted 28 lines
Quoted 28 lines
Quoted 27 lines
Quoted 26 lines
Quoted 25 lines

connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2?
Is there a how-to or readme I didn't find? Or
is there some required dependency I don't know about
that is missing?

I thought maybe I had a bad install, so rebuilt and
reinstalled with the same result.

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and
file-backed fail. Blktap sometimes reads garbage
from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 6 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#12 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Quoted 8 lines · Dan Magenheimer
Quoted 4 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself as it merely introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

I can't explain that from reading the code. It looks like a no-op to me unless the new function bus_register_notifier() is called.

Quoted 6 lines
Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both disabled and hence 882 doesn't break without 881 in your case.

-- Keir

#13 lore raw

RE: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Quoted 3 lines

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Looking at my boot output on failure, there are those lines:

"Driver 'xxx' needs updating - please use bus_type methods"

which is printed in linux/drivers/base/driver.c:driver_register() if a complex set of circumstances are true. So clearly something is different.

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Dan

Quoted 42 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 3:28 PM
To: Dan Magenheimer; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 3 lines · Dan Magenheimer
Quoted 3 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself

as it merely

Quoted 5 lines
Quoted 1 line

introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Quoted 6 lines
Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

-- Keir

#14 lore raw

RE: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Quoted 2 lines

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Here's what I am seeing. Looks like the drv->bus structure is getting overwritten with ASCII.

Driver 'usbfs' needs updating - please use bus_type methods drv->bus->probe = 73756f6e (THAT's "nous" I think) drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver usbfs
Driver 'hub' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver hub
Driver 'usb' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069570

Quoted 78 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 4:12 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Quoted 3 lines

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Looking at my boot output on failure, there are those lines:

"Driver 'xxx' needs updating - please use bus_type methods"

which is printed in linux/drivers/base/driver.c:driver_register() if a complex set of circumstances are true. So clearly something is different.

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Dan

Quoted 42 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 3:28 PM
To: Dan Magenheimer; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 3 lines · Dan Magenheimer
Quoted 3 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself

as it merely

Quoted 5 lines
Quoted 1 line

introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Quoted 6 lines
Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

-- Keir

#15 lore raw

RE: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

I'm quitting for the night now, but I see that the string "nous" is followed by a "b" in the immediately following word. Put this together and you have "nousb" (read as turn off USB).

Given that the "Driver 'xxx' needs updating" are for 'usbfs', 'hub', and 'usb', and given that usb is very related to hotplug, the string "nousb" where a pair of function pointers should be is suspicious (though it may also be a complete coincidence).

I'll try turning off CONFIG_HOTPLUG_PCI tomorrow.

Dan

Quoted 114 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 7:09 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 2 lines

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Here's what I am seeing. Looks like the drv->bus structure is getting overwritten with ASCII.

Driver 'usbfs' needs updating - please use bus_type methods drv->bus->probe = 73756f6e (THAT's "nous" I think) drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver usbfs
Driver 'hub' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver hub
Driver 'usb' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069570

Quoted 26 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 4:12 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Quoted 3 lines

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Looking at my boot output on failure, there are those lines:

"Driver 'xxx' needs updating - please use bus_type methods"

Quoted 16 lines

which is printed in linux/drivers/base/driver.c:driver_register() if a complex set of circumstances are true. So clearly something is different.

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Dan

Quoted 6 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 3:28 PM
To: Dan Magenheimer; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was:

[Xen-devel]

Quoted 36 lines
Quoted 36 lines

blktap2: need more than 3 values to unpack)

Quoted 3 lines · Dan Magenheimer
Quoted 3 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself

as it merely

Quoted 5 lines
Quoted 1 line

introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Quoted 6 lines
Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

-- Keir

#16 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

If memory corruption is the issue, c/s 881 could be innocently triggering a latent bug.

-- Keir

Quoted 130 lines · Dan Magenheimer

I'm quitting for the night now, but I see that the string "nous" is followed by a "b" in the immediately following word. Put this together and you have "nousb" (read as turn off USB).

Given that the "Driver 'xxx' needs updating" are for 'usbfs', 'hub', and 'usb', and given that usb is very related to hotplug, the string "nousb" where a pair of function pointers should be is suspicious (though it may also be a complete coincidence).

I'll try turning off CONFIG_HOTPLUG_PCI tomorrow.

Dan

Quoted 114 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 7:09 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 2 lines

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Here's what I am seeing. Looks like the drv->bus structure is getting overwritten with ASCII.

Driver 'usbfs' needs updating - please use bus_type methods drv->bus->probe = 73756f6e (THAT's "nous" I think) drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver usbfs
Driver 'hub' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver hub
Driver 'usb' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069570

Quoted 26 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 4:12 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Quoted 3 lines

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Looking at my boot output on failure, there are those lines:

"Driver 'xxx' needs updating - please use bus_type methods"

Quoted 16 lines

which is printed in linux/drivers/base/driver.c:driver_register() if a complex set of circumstances are true. So clearly something is different.

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Dan

Quoted 6 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 3:28 PM
To: Dan Magenheimer; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was:

[Xen-devel]

Quoted 36 lines
Quoted 36 lines

blktap2: need more than 3 values to unpack)

Quoted 3 lines · Dan Magenheimer
Quoted 3 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself

as it merely

Quoted 5 lines
Quoted 1 line

introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Quoted 6 lines
Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

-- Keir

#17 lore raw

RE: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Yes indeed. I added some code to reset the fields incorrectly containing "nousb" to their expected value of 0, and the dom0 kernel still fails to boot. So this is likely just a symptom of broader memory corruption.

Quoted 153 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Thursday, June 04, 2009 1:34 AM
To: Dan Magenheimer; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was: [Xen-devel]
blktap2: need more than 3 values to unpack)

If memory corruption is the issue, c/s 881 could be innocently triggering a
latent bug.

-- Keir

Quoted 12 lines · Dan Magenheimer

I'm quitting for the night now, but I see that the string "nous" is followed by a "b" in the immediately following word. Put this together and you have "nousb" (read as turn off USB).

Given that the "Driver 'xxx' needs updating" are for 'usbfs', 'hub', and 'usb', and given that usb is very related to hotplug, the string "nousb" where a pair of function pointers should be is suspicious (though it may also be a complete coincidence).

Quoted 10 lines

I'll try turning off CONFIG_HOTPLUG_PCI tomorrow.

Dan

Quoted 6 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 7:09 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was:

[Xen-devel]

Quoted 29 lines
Quoted 29 lines

blktap2: need more than 3 values to unpack)

Quoted 2 lines

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Here's what I am seeing. Looks like the drv->bus structure is getting overwritten with ASCII.

Driver 'usbfs' needs updating - please use bus_type methods drv->bus->probe = 73756f6e (THAT's "nous" I think) drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver usbfs
Driver 'hub' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069ab0
drv->bus->remove = 00000062
drv->remove = d1069960
drv->bus->shutdown = 00000000
drv->shutdown = 00000000
usbcore: registered new driver hub
Driver 'usb' needs updating - please use bus_type methods drv->bus->probe = 73756f6e
drv->probe = d1069570

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Wednesday, June 03, 2009 4:12 PM
To: Keir Fraser; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: RE: Dom0 crashing when built with c/s 881 (Was:

[Xen-devel]

Quoted 73 lines
Quoted 73 lines
Quoted 20 lines

blktap2: need more than 3 values to unpack)

Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Quoted 3 lines

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Looking at my boot output on failure, there are those lines:

"Driver 'xxx' needs updating - please use bus_type methods"

Quoted 16 lines

which is printed in linux/drivers/base/driver.c:driver_register() if a complex set of circumstances are true. So clearly something is different.

If that doesn't help, I can go add some printk's where that output is happening and see exactly what forces the failure.

Dan

Quoted 6 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 3:28 PM
To: Dan Magenheimer; Isaku Yamahata
Cc: Xen-Devel (E-mail)
Subject: Re: Dom0 crashing when built with c/s 881 (Was:

[Xen-devel]

Quoted 36 lines
Quoted 36 lines

blktap2: need more than 3 values to unpack)

Quoted 3 lines · Dan Magenheimer
Quoted 3 lines

1. It only adds extra functionality which by default would
not do anything.
Just reading the patch I can see it's harmless by itself

as it merely

Quoted 5 lines
Quoted 1 line

introduces a new notifier chain which noone registers on.

I won't pretend to understand the code, but I did reproduce the problem with 881 by itself and with 889 with 881 reverted.

I can't explain that from reading the code. It looks like a no-op to me
unless the new function bus_register_notifier() is called.

Quoted 6 lines
Quoted 2 lines

2. Changeset 882 depends on 881. If you revert just 881 then
the tree will not build.

This doesn't appear to be the case for me, though I'm certainly willing to believe there's something wrong with my process:

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

-- Keir

#18 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

In reply to Dan Magenheimer
Quoted 8 lines · Dan Magenheimer
Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Ah, I tested it with CONFIG_HOTPLUG_PCI=y.
So does it make difference to set it =y instead of =m?

Signature · 1 line
yamahata
#19 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

Quoted 6 lines · Isaku Yamahata
Quoted 5 lines · Dan Magenheimer
Quoted 4 lines

Actually I missed that the dependent code is only built if CONFIG_PCI_IOMULTI && CONFIG_HOTPLUG_PCI. You've probably got one or both
disabled and hence 882 doesn't break without 881 in your case.

Quoted 6 lines
Quoted 3 lines

In case it helps, with 889 and 881 reverted, I am using the default config which results in CONFIG_PCI_IOMULTI=y and CONFIG_HOTPLUG_PCI=m.

Ah, I tested it with CONFIG_HOTPLUG_PCI=y.
So does it make difference to set it =y instead of =m?

CONFIG_HOTPLUG_PCI=m works for me.
The 'use bus_type' message wasn't printed out.

Signature · 1 line
yamahata
#20 lore raw

Re: Dom0 crashing when built with c/s 881 (Was: blktap2: need more than 3 values to unpack)

In reply to Keir Fraser

The kernel behaves as same as before unless the kernel command line option, guestdev=...+iomul, is given to the kernel
So it should be harmless to enable CONFIG_PCI_IOMULTI by default.

Anyway I don't have strong opinion for its default value.

Quoted 317 lines · Keir Fraser

Depends on the feature's impact when unused.

-- Keir

Quoted 303 lines · Dulloor

Is it better to have the new option added by c/s(CONFIG_PCI_IOMULTI) default 'n' ?

-dulloor

Quoted 295 lines · Keir Fraser

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.

?-- Keir

Quoted 4 lines · Dan Magenheimer

OK, it appears that linux-2.6.18-xen.hg c/s 881 is causing my dom0 to crash. ?Dom0 boots successfully at 880 and fails with 881 or anything after.

Quoted 277 lines

Any ideas?

Quoted 275 lines

-----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

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.

Quoted 38 lines

-----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

Thanks. ?It is indeed a pilot error on my part but a bit more bizarre. ?I apparently have a linux-2.6-xen.hg directory as both a sister and a child to xen-unstable.hg. ?In this case the build apparently chooses the child. ?I was looking at and modifying the un-updated child so blktap2 wasn't even present yet. ?Removing the child causes the sibling to build. ?BUT! Now dom0 is crashing early on during boot. ?(This is an Intel Weybridge box.) ?I'll look into this further tomorrow.

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)
? Vendor: ATA ? ? ? Model: ST3320620AS ? ? ? Rev: 3.AA
? Type: ? Direct-Access ? ? ? ? ? ? ? ? ? ? ?ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
? Vendor: LITE-ON ? Model: DVDRW LH-20A1S ? ?Rev: 9L03
? Type: ? CD-ROM ? ? ? ? ? ? ? ? ? ? ? ? ? ? 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:
[email protected]

Quoted 8 lines
Kernel panic - not syncing: Attempted to kill init!

?(XEN) Domain 0 crashed: rebooting machine in 5 seconds.

Quoted 5 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
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

Quoted 6 lines
Quoted 6 lines

Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.

Quoted 12 lines
Quoted 7 lines

?-- Keir

Quoted 2 lines · Dan Magenheimer

Thanks. ?Looks like a partial configuration patch got checked in for blktap2 (cs 886)? ?CONFIG_XEN_BLKDEV_TAP2 must be

configured

Quoted 4 lines
Quoted 4 lines

but afaict is not turned on by default (yet?). ?So a fresh xen-unstable tip doesn't build the blktap2 driver. ?See:

http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227

Quoted 40 lines
Quoted 11 lines
Quoted 11 lines

(I'm guessing since this was submitted by Isaku that blktap2 shouldn't be the default on ia64?)

Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead of CONFIG_XEN_BLKDEV_TAP, at least on x86?

I tried modifying

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32

Quoted 26 lines
Quoted 7 lines

(and also

linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)

followed by:

KERNELS=linux-2.6-xen0 make linux-2.6-xen-config

CONFIGMODE=oldconfig

Quoted 18 lines

(I don't need or want to go through a manual config process)

but BLKDEV_TAP is always selected, not BLKDEV_TAP2.

Finally, I resorted to manually changing

linux-2.6.18-xen.hg/drivers/xen/Kconfig

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.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 9:05 AM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 70 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that you don't have the blktap2 driver loaded in dom0. ?A clean
build/install of the dom0 kernel image should sort you out. ?If drivers/xen/blktap2 is compiled in it should be setting up these paths.

Let me know if that fixes things and I'll make python

spit out more

Quoted 62 lines
Quoted 10 lines
Quoted 10 lines

meaningful errors, otherwise we can try to figure out the blktap2 kernel
code isn't working.

--Dutch

Quoted 2 lines · Dan Magenheimer

It replies with "didn't find blktap-control in /proc/misc"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If that fails, perhaps the path doesn't exist, but I looked and /sys/class/blktap2 doesn't exist.

Quoted 5 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
Sent: Monday, June 01, 2009 10:37 PM
To: Dan Magenheimer
Subject: RE: [Xen-devel] blktap2: need more than 3

values to unpack

Quoted 43 lines
Quoted 43 lines
Quoted 10 lines
Quoted 10 lines

Can you try this from the command line:

? ? ?tapdisk2 -n aio:/pathto/file.img

If successful, this will create your aio device and print a /dev device
associated with it.

Quoted 5 lines
Quoted 5 lines

In that case you'll then be able to remove it with:

? ? ?echo 1 > /sys/class/blktap2/<disk>/remove

Where <disk> will be obvious from the output of the

tapdisk2 command.

Quoted 17 lines
Quoted 17 lines

However, I expect that this will fail.

--Dutch

Quoted 10 lines · Dan Magenheimer
Quoted 4 lines

Then I might be able to help, but I'm not sure how to
reproduce it. ?If
you send a log file and config for this latter error I'll
take a look.

Here ya go.

Thanks,
Dan

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dutch Meyer [mailto:[email protected]]
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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

The tap:aio:/pathto/file.img syntax that you're

using in your

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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. ?Our blktap2 documentation is no better -

I'll try to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

remedy that this week.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If you're still seeing this error:
? ? "Error: 'file' object has no attribute 'find'"

Then I might be able to help, but I'm not sure how to
reproduce it. ?If
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.

Quoted 68 lines
Quoted 55 lines
Quoted 55 lines
Quoted 54 lines
Quoted 53 lines
Quoted 52 lines
Quoted 51 lines
Quoted 51 lines

--Dutch

On Mon, 1 Jun 2009, Dan Magenheimer wrote:

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.

"ValueError: need more than 3 values to unpack"

Thinking maybe that "w!" was the culprit, I changed
it to "w" with no change in result.

Looking at the python code that generated the error,
I tried to figure out the syntax by experimentation
but without luck. ?I tried:

tap:tapdisk:aio:/pathto/file.img

but got "Error: 'file' object has no attribute 'find'"

To see if I could use the old blktap, I tried

tap:tapdisk:ioemu:/pathto/file.img

but got the dreaded "Error: Device 768 (tap) could not be
connected. Hotplug scripts not working"

Am I missing something in the syntax for blktap2?
Is there a how-to or readme I didn't find? ?Or
is there some required dependency I don't know about
that is missing?

I thought maybe I had a bad install, so rebuilt and
reinstalled with the same result.

xend.log and config file attached.

Thanks,
Dan

P.S. I am trying blktap2 because both blktap and
file-backed fail. ?Blktap sometimes reads garbage
from the file and

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 7 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 1 line
yamahata