Skip to contentSkip to conversation

Possible bug, gplpv / pv-netdev

DISCUSSION Bart Van Kerckhove 5 participants 7 messages Jul 25, 2009 – Jul 26, 2009

lore
Share & tools
lore
#0 lore raw

Dear list,

I have been struggling with this issue for quite a while, and decided to mail in for some pointers, since I'm stuck.

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV (up to 0.10.0.86) - I keep running into the following kernel error message in dom0:

[ 9266.293979] unregister_netdevice: waiting for vif31.0 to become free. 
Usage count = 2
[ 9276.433986] unregister_netdevice: waiting for vif31.0 to become free. 

Usage count = 2

This results in total deadlock as far as accessing interfaces goes, as well as xend.
Only a reboot can get me out of this.
I can reproduce this problem easily: boot up windows with GPLPV, disable the (pv) network interface in windows, enable it again, then disable it again. At this point, windows should hang - destroy the VM and this error pops up.

I've googled this error and found some mentioning of it earlier on, but no solutions.
This seems like a xen bug, not a gplpv one, since imho it should not be possible to crash the dom0 from within a domU...

First post to this list, please excuse me, and feel free to ask for more details / info.
I can provide access to the system in question (although this is not the first system I encounter this problem with)

Kind regards,

-Bart Van Kerckhove

BEGIN:VCARD
VERSION:2.1
N:Van Kerckhove;Bart
FN:Bart Van Kerckhove
ORG:IT-Solid Solutions
NOTE;ENCODING=QUOTED-PRINTABLE:=0A--ADDITIONAL INFO FROM DUPLICATE CONTACT--=0Acompany: IT - Solid Solution= s=0A--ADDITIONAL INFO FROM DUPLICATE CONTACT--=0Acompany: RiffleMedia BVBA TEL;WORK;VOICE:+32 (0) 496 977 000
TEL;HOME;VOICE:27475123
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Molenstraat 70=0A;Eeklo;;9900;Belgium LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Molenstraat 70=0A=0D=0AEeklo 9900=0D=0ABelgium ADR;HOME:;;Molenstraat 70;Eeklo;B;9900;Belgium LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Molenstraat 70=0D=0AEeklo, B 9900=0D=0ABelgium URL;HOME:http://www.it-ss.be
KEY;X509;ENCODING=BASE64:

    MIICUDCCAbmgAwIBAgIQe1dHCcVzWIYRzUG2V0voLTANBgkqhkiG9w0BAQUFADBiMQswCQYD
    VQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UE
    AxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDgxMjAzMDEwNzI2
    WhcNMDkxMjAzMDEwNzI2WjA/MR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMRww
    GgYJKoZIhvcNAQkBFg1iYXJ0QGl0LXNzLmJlMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
    gQDhSoUKge//mfTp/JzGZ08Wx25hsKY85oUt9hVXjG0szOy0k3ZS3NGeF7LytznZkmiWTUm9
    081yJgBb2OK2KvcBbv6B9McND2HHWZB2bj1gD1LRNiFfZuAHZKmGzvEWc189OS29FazLjKuq
    ZwHjeQ8UG1AKcdzWGBzzB/D1ks94PQIDAQABoyowKDAYBgNVHREEETAPgQ1iYXJ0QGl0LXNz
    LmJlMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEFBQADgYEAZOEFZtS2dMSXUtHindr6xra9
    6piXEoOdogXoyfFthGHvIZf6NZu9XD0hosQYEH3LcCbqZ/4G2a1Os6JS1xcr86UxmEqOCydr
    V+Xhy2K5cdDBSNsts1SIeXUpDUv+UJQCl8u6qPxHaZQvMzr4gpgGuAzANRlCdV/YkOt9Vd/I
    2kU=

EMAIL;PREF;INTERNET:[email protected]
REV:20090725T152555Z
END:VCARD

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

#1 lore raw
Quoted 4 lines

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV (up to 0.10.0.86) - I keep running into the following kernel error message in dom0:

Did you try another Xen version. Xen 3.4.1 should work better.

Quoted 4 lines

I can reproduce this problem easily: boot up windows with GPLPV, disable the (pv) network interface in windows, enable it again, then disable it again. At this point, windows should hang - destroy the VM and this error pops up.

James, I think maybe some resource release operation cannot work in this case. Hope it's help for you.

Thanks
wayne

#2 lore raw
Quoted 6 lines
Quoted 4 lines

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV (up to 0.10.0.86) - I keep running into the following kernel error message in dom0:

Did you try another Xen version. Xen 3.4.1 should work better.

Installing xen 3.4-testing as we speak.
This bug has been haunting me since 3.0, so I have little hope it'll be fixed..

Quoted 8 lines
Quoted 5 lines

I can reproduce this problem easily: boot up windows with GPLPV, disable the (pv) network interface in windows, enable it again, then disable it again. At this point, windows should hang - destroy the VM and this error pops up.

James, I think maybe some resource release operation cannot work in this case. Hope it's help for you.

Any pointers as to where I can go dig?
Also, can anyone reproduce this? I would be amazed if it were just me.

Cheers,
-Bart

#3 lore raw
Quoted 10 lines · Bart Van Kerckhove
Quoted 6 lines
Quoted 4 lines

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV (up to 0.10.0.86) - I keep running into the following kernel error message in dom0:

Did you try another Xen version. Xen 3.4.1 should work better.

Installing xen 3.4-testing as we speak.
This bug has been haunting me since 3.0, so I have little hope it'll be fixed..

This will be a dom0 kernel issue, not a hypervisor issue, so upgrading only Xen will not fix it.

-- Keir

#4 lore raw
Quoted 3 lines · Bart Van Kerckhove
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV

(up to

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

0.10.0.86) - I keep running into the following kernel error

message in

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

dom0:

Did you try another Xen version. Xen 3.4.1 should work better.

Installing xen 3.4-testing as we speak.
This bug has been haunting me since 3.0, so I have little hope it'll

be

Quoted 3 lines
Quoted 1 line

fixed..

This will be a dom0 kernel issue, not a hypervisor issue, so upgrading

only

Quoted 2 lines

Xen will not fix it.

Well... strictly speaking I think there is probably also a bug in GPLPV that causes a situation that also triggers a bug in the Dom0 kernel.

During various stages of GPLPV development I have also been able to completely crash Dom0 (as in hang and/or reboot) from the DomU.

I'm in the middle of investigating pvUSB support under GPLPV but once it at least doesn't crash I'll have a look at this network bug and see if I can find out what is causing it in DomU. Hopefully the fix in Dom0 should then be obvious (unless of course GPLPV is actually doing the right thing and Dom0 just doesn't like more than one disable->enable transitions)

James

#5 lore raw
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV (up to 0.10.0.86) - I keep running into the following kernel error message in dom0:

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Did you try another Xen version. Xen 3.4.1 should work better.

Installing xen 3.4-testing as we speak.
This bug has been haunting me since 3.0, so I have little hope it'll be fixed..

This will be a dom0 kernel issue, not a hypervisor issue, so upgrading only Xen will not fix it.

I am running this off of the 2.6.18 kernel provided with xen. Any loopholes I need to be aware of?

Quoted 2 lines

Well... strictly speaking I think there is probably also a bug in GPLPV that causes a situation that also triggers a bug in the Dom0 kernel.

It can be considered to be a bug since it locks up domU, I suppose..

Quoted 2 lines

During various stages of GPLPV development I have also been able to completely crash Dom0 (as in hang and/or reboot) from the DomU.

Isn't that supposed to be impossible?
These kind of bugs scare me, one compromised or malfunctioning domU taking down a whole system..

Quoted 8 lines

I'm in the middle of investigating pvUSB support under GPLPV but once it at least doesn't crash I'll have a look at this network bug and see if I can find out what is causing it in DomU. Hopefully the fix in Dom0 should then be obvious (unless of course GPLPV is actually doing the right thing and Dom0 just doesn't like more than one disable->enable transitions)

James

Can anyone actually reproduce this bug?

Thanks,

-Bart

#6 lore raw
In reply to Bart Van Kerckhove
Quoted 11 lines · Bart Van Kerckhove

Dear list,

I have been struggling with this issue for quite a while, and decided to mail in for some pointers, since I'm stuck.

I'm running xen3.4.0 , and while using windows 2003 x64 and GPLPV (up to 0.10.0.86) - I keep running into the following kernel error message in dom0:

[ 9266.293979] unregister_netdevice: waiting for vif31.0 to become free.
Usage count = 2
[ 9276.433986] unregister_netdevice: waiting for vif31.0 to become free.
Quoted 9 lines

Usage count = 2

This results in total deadlock as far as accessing interfaces goes, as well as xend.
Only a reboot can get me out of this.
I can reproduce this problem easily: boot up windows with GPLPV, disable the (pv) network interface in windows, enable it again, then disable it again. At this point, windows should hang - destroy the VM and this error pops up.

I ran into a similar problem last week while testing different versions of the gplpv xennet driver, I was able to update the driver once, but the second attempt never finished, eventually I got a timeout message in windows but when I tried to reboot the system became unresponsive and I had to destroy the hvm.

Its easy to replicate, just keep switching the xennet driver between two versions.

Sounds like it could be the same bug..

Andy

Quoted 21 lines

I've googled this error and found some mentioning of it earlier on, but no solutions.
This seems like a xen bug, not a gplpv one, since imho it should not be possible to crash the dom0 from within a domU...

First post to this list, please excuse me, and feel free to ask for more details / info.
I can provide access to the system in question (although this is not the first system I encounter this problem with)

Kind regards,

-Bart Van Kerckhove

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