Vdagent not working on xen linux hvm DomUs
Il 05/12/2013 17:02, Wei Liu ha scritto:
Quoted 32 lines · Fabio Fantoni
Quoted 21 lines
Il 05/12/2013 16:21, Wei Liu ha scritto:
Quoted 16 lines · Fabio Fantoni
[...]
Quoted 7 lines
I saw a draft of virtio disk/net implementation for xen here:
http://wiki.xen.org/wiki/Virtio_On_XenThere are 2 kernel patch to support virtio on pv domUs:
http://downloads.xen.org/Wiki/VirtioOnXen/linux-01-virtio-xenbus.patch
http://downloads.xen.org/Wiki/VirtioOnXen/linux-02-virtio-ring.patchDo not use these patches, they were experimental.
Quoted 5 lines
What about virtio on hvm linux? Maybe
From wiki it seems virtio kernel patches only needed for pv domUs.
Could be these patches needed to have virtio fully working also for hvm domUs?Quoted 4 lines
Virtio for HVM guests should work out of the box. You probably need to prevent kernel from unplugging emulated devices.
Wei.
Quoted 8 lines
Thanks for reply.
I not mean virtio disk/net but virtio-serial channels used for example by spice vdagent.
The libxl implentation xen side is correct and on windows domUs vdagent is working (I'm using it since 2 year).
On linux domUs I found that virtio ports under /dev are missed/not created and I not understand why.That's probably unplugged by Xen platform PCI device.
Quoted 9 lines
Quoted 4 lines
Recently I tried also with xen_platform_pci=0 and the Konrad's patch (xen/pvhvm: If xen_platform_pci=0 is set don't blow up) but to no avail.
I haven't followed up that patch so I am not sure what's happening.
Wei.
Quoted 1 line
Thanks for any reply.
I did another tests, adding pci=nomsi to kernel boot option creates virtio-serial ports correctly and vdagent works also on linux domUs, I also tried to enable the xen platform and also in that case vdagent works. So the problem is only about msi.
Added xen-devel to cc.
Any ideas on how to fix permanently without adding pci=nomsi?
Thanks for any reply.
On Fri, Dec 06, 2013 at 11:15:17AM +0100, Fabio Fantoni wrote:
[...]
Quoted 19 lines
Quoted 9 lines
Quoted 7 lines
I not mean virtio disk/net but virtio-serial channels used for example by spice vdagent.
The libxl implentation xen side is correct and on windows domUs vdagent is working (I'm using it since 2 year).
On linux domUs I found that virtio ports under /dev are missed/not created and I not understand why.That's probably unplugged by Xen platform PCI device.
Quoted 9 lines
Quoted 4 lines
Recently I tried also with xen_platform_pci=0 and the Konrad's patch (xen/pvhvm: If xen_platform_pci=0 is set don't blow up) but to no avail.
I haven't followed up that patch so I am not sure what's happening.
Wei.
Quoted 1 line
Thanks for any reply.
Quoted 8 lines
I did another tests, adding pci=nomsi to kernel boot option creates virtio-serial ports correctly and vdagent works also on linux domUs, I also tried to enable the xen platform and also in that case vdagent works.
So the problem is only about msi.
Added xen-devel to cc.
Any ideas on how to fix permanently without adding pci=nomsi?
As I remember it I wrote a patch for QEMU to make it capable of injecting MSI interrupt in Xen long time ago so it should work fine.
Wei.
Quoted 1 line
Thanks for any reply.
Il 06/12/2013 11:50, Wei Liu ha scritto:
Quoted 27 lines · Fabio Fantoni
[...]
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
I not mean virtio disk/net but virtio-serial channels used for example by spice vdagent.
The libxl implentation xen side is correct and on windows domUs vdagent is working (I'm using it since 2 year).
On linux domUs I found that virtio ports under /dev are missed/not created and I not understand why.That's probably unplugged by Xen platform PCI device.
Quoted 4 lines
Recently I tried also with xen_platform_pci=0 and the Konrad's patch (xen/pvhvm: If xen_platform_pci=0 is set don't blow up) but to no avail.
I haven't followed up that patch so I am not sure what's happening.
Wei.
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Thanks for any reply.
I did another tests, adding pci=nomsi to kernel boot option creates virtio-serial ports correctly and vdagent works also on linux domUs, I also tried to enable the xen platform and also in that case vdagent works.
So the problem is only about msi.
Added xen-devel to cc.
Any ideas on how to fix permanently without adding pci=nomsi?
Quoted 4 lines
As I remember it I wrote a patch for QEMU to make it capable of injecting MSI interrupt in Xen long time ago so it should work fine.
Wei.
Is this?
http://git.qemu.org/?p=qemu.git;a=commit;h=f1dbf015dfb0aa7f66f710a1f1bc58b662951de2
thenis there a xen and/or qemu regression?
Quoted 2 lines
Quoted 2 lines
Thanks for any reply.
Quoted 31 lines · Fabio Fantoni
Il 06/12/2013 11:50, Wei Liu ha scritto:
Quoted 30 lines · Fabio Fantoni
[...]
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
I not mean virtio disk/net but virtio-serial channels used for example by spice vdagent.
The libxl implentation xen side is correct and on windows domUs vdagent is working (I'm using it since 2 year).
On linux domUs I found that virtio ports under /dev are missed/not created and I not understand why.That's probably unplugged by Xen platform PCI device.
Quoted 4 lines
Recently I tried also with xen_platform_pci=0 and the Konrad's patch (xen/pvhvm: If xen_platform_pci=0 is set don't blow up) but to no avail.
I haven't followed up that patch so I am not sure what's happening.
Wei.
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Thanks for any reply.
I did another tests, adding pci=nomsi to kernel boot option creates virtio-serial ports correctly and vdagent works also on linux domUs, I also tried to enable the xen platform and also in that case vdagent works.
So the problem is only about msi.
Added xen-devel to cc.
Any ideas on how to fix permanently without adding pci=nomsi?As I remember it I wrote a patch for QEMU to make it capable of injecting MSI interrupt in Xen long time ago so it should work fine.
Quoted 7 lines
Quoted 1 line
Wei.
Is this?
http://git.qemu.org/?p=qemu.git;a=commit;h=f1dbf015dfb0aa7f66f710a1f1bc58b662951de2thenis there a xen and/or qemu regression?
Yes that one.
Not sure if it is a regression, because nobody ever tried to use virtio-serial in Xen AFAICT.
If you find virtio-net / virtio-blk not working, then there's a problem.
Wei.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Thanks for any reply.
Il 06/12/2013 12:19, Wei Liu ha scritto:
Quoted 38 lines · Fabio Fantoni
Quoted 28 lines
Il 06/12/2013 11:50, Wei Liu ha scritto:
Quoted 27 lines · Fabio Fantoni
[...]
Quoted 25 lines
Quoted 8 lines
Quoted 6 lines
I not mean virtio disk/net but virtio-serial channels used for example by spice vdagent.
The libxl implentation xen side is correct and on windows domUs vdagent is working (I'm using it since 2 year).
On linux domUs I found that virtio ports under /dev are missed/not created and I not understand why.That's probably unplugged by Xen platform PCI device.
Quoted 9 lines
Quoted 4 lines
Recently I tried also with xen_platform_pci=0 and the Konrad's patch (xen/pvhvm: If xen_platform_pci=0 is set don't blow up) but to no avail.
I haven't followed up that patch so I am not sure what's happening.
Wei.
Quoted 1 line
Thanks for any reply.
I did another tests, adding pci=nomsi to kernel boot option creates virtio-serial ports correctly and vdagent works also on linux domUs, I also tried to enable the xen platform and also in that case vdagent works.
So the problem is only about msi.
Added xen-devel to cc.
Any ideas on how to fix permanently without adding pci=nomsi?Quoted 9 lines
Quoted 4 lines
As I remember it I wrote a patch for QEMU to make it capable of injecting MSI interrupt in Xen long time ago so it should work fine.
Wei.
Is this?
http://git.qemu.org/?p=qemu.git;a=commit;h=f1dbf015dfb0aa7f66f710a1f1bc58b662951de2thenis there a xen and/or qemu regression?
Quoted 8 lines
Yes that one.
Not sure if it is a regression, because nobody ever tried to use virtio-serial in Xen AFAICT.
If you find virtio-net / virtio-blk not working, then there's a problem.
Wei.
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support? I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?
Thanks for any reply.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Thanks for any reply.
On Fri, Dec 06, 2013 at 12:28:00PM +0100, Fabio Fantoni wrote:
[...]
Quoted 7 lines
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support?
I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?
That is not needed if you want to use virtio-net.
Just specify 'model=virtio-net-pci' in you nic spec then you're fine.
Wei.
Quoted 3 lines
Thanks for any reply.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Thanks for any reply.
Il 06/12/2013 12:31, Wei Liu ha scritto:
Quoted 8 lines · Fabio Fantoni
[...]
Quoted 6 lines
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support?
I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?
Quoted 5 lines
That is not needed if you want to use virtio-net.
Just specify 'model=virtio-net-pci' in you nic spec then you're fine.
Wei.
I did a fast test with virtio nic, xen platform disabled (xen_platform_pci=0 plus konrad patch) and qemu crashed on ubuntu Saucy hvm domU start with this error on qemu log:xen_ram_addr_from_mapcache, could not find 0x7f34c08afff8
I tried both with/without pci=nomsi, same result.
Then it seems that with virtio net there is a further problem.
Tell me if you need other tests/details and I'll post them.
Thanks for any reply.
Quoted 15 lines · Fabio Fantoni
Il 06/12/2013 12:31, Wei Liu ha scritto:
Quoted 8 lines · Fabio Fantoni
[...]
Quoted 6 lines
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support?
I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?Quoted 5 lines
That is not needed if you want to use virtio-net.
Just specify 'model=virtio-net-pci' in you nic spec then you're fine.
Wei.
Quoted 7 lines
I did a fast test with virtio nic, xen platform disabled (xen_platform_pci=0 plus konrad patch) and qemu crashed on ubuntu Saucy hvm domU start with this error on qemu log:
xen_ram_addr_from_mapcache, could not find0x7f34c08afff8I tried both with/without pci=nomsi, same result.
Then it seems that with virtio net there is a further problem. Tell me if you need other tests/details and I'll post them.
So the same config works with other emulated nic (say, the default rtl8139 / e1000)?
Quoted 2 lines
Thanks for any reply.
Il 06/12/2013 12:57, Wei Liu ha scritto:
Quoted 22 lines · Fabio Fantoni
Quoted 13 lines
Il 06/12/2013 12:31, Wei Liu ha scritto:
Quoted 12 lines · Fabio Fantoni
[...]
Quoted 6 lines
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support?
I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?That is not needed if you want to use virtio-net.
Just specify 'model=virtio-net-pci' in you nic spec then you're fine.
Quoted 8 lines
Quoted 1 line
Wei.
I did a fast test with virtio nic, xen platform disabled (xen_platform_pci=0 plus konrad patch) and qemu crashed on ubuntu Saucy hvm domU start with this error on qemu log:
xen_ram_addr_from_mapcache, could not find0x7f34c08afff8I tried both with/without pci=nomsi, same result.
Then it seems that with virtio net there is a further problem. Tell me if you need other tests/details and I'll post them.
Quoted 4 lines
So the same config works with other emulated nic (say, the default rtl8139 / e1000)?
Quoted 1 line
Thanks for any reply.
Yes, I retried all cases removing only virtio net and no qemu crash.
Quoted 23 lines · Fabio Fantoni
Il 06/12/2013 12:57, Wei Liu ha scritto:
Quoted 22 lines · Fabio Fantoni
Quoted 21 lines
Il 06/12/2013 12:31, Wei Liu ha scritto:
Quoted 8 lines · Fabio Fantoni
[...]
Quoted 6 lines
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support?
I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?Quoted 5 lines
That is not needed if you want to use virtio-net.
Just specify 'model=virtio-net-pci' in you nic spec then you're fine.
Wei.
I did a fast test with virtio nic, xen platform disabled (xen_platform_pci=0 plus konrad patch) and qemu crashed on ubuntu Saucy hvm domU start with this error on qemu log:
xen_ram_addr_from_mapcache, could not find0x7f34c08afff8I tried both with/without pci=nomsi, same result.
Then it seems that with virtio net there is a further problem. Tell me if you need other tests/details and I'll post them.
Quoted 6 lines
Quoted 4 lines
So the same config works with other emulated nic (say, the default rtl8139 / e1000)?
Quoted 1 line
Thanks for any reply.
Yes, I retried all cases removing only virtio net and no qemu crash.
And Konrad's patch did prevent kernel from unplugging the emulated devices?
I used virtio-net-pci in EFI several days ago it worked fine, so it is possible that there's a bug in kernel.
If there's really a regression I would not be too surprise because nobody is actively using it so we're not actively testing this feature.
You can try xen_emul_unplug=never in *guest kernel command line* to see if it changes anything.
Wei.
Il 06/12/2013 13:55, Wei Liu ha scritto:
Quoted 35 lines · Fabio Fantoni
Quoted 23 lines
Il 06/12/2013 12:57, Wei Liu ha scritto:
Quoted 22 lines · Fabio Fantoni
Quoted 21 lines
Il 06/12/2013 12:31, Wei Liu ha scritto:
Quoted 8 lines · Fabio Fantoni
[...]
Quoted 6 lines
Thanks for reply, where is the latest versions of your libxl patch for virtio-net / virtio-blk support?
I found only the old version of 2011 on wiki.
Is this the latest and I must updated it to be working on xen unstable before testing it?Quoted 5 lines
That is not needed if you want to use virtio-net.
Just specify 'model=virtio-net-pci' in you nic spec then you're fine.
Wei.
I did a fast test with virtio nic, xen platform disabled (xen_platform_pci=0 plus konrad patch) and qemu crashed on ubuntu Saucy hvm domU start with this error on qemu log:
xen_ram_addr_from_mapcache, could not find0x7f34c08afff8I tried both with/without pci=nomsi, same result.
Then it seems that with virtio net there is a further problem. Tell me if you need other tests/details and I'll post them.Quoted 5 lines
Quoted 4 lines
So the same config works with other emulated nic (say, the default rtl8139 / e1000)?
Quoted 1 line
Thanks for any reply.
Yes, I retried all cases removing only virtio net and no qemu crash.
And Konrad's patch did prevent kernel from unplugging the emulated devices?
I used virtio-net-pci in EFI several days ago it worked fine, so it is possible that there's a bug in kernel.
Quoted 7 lines
If there's really a regression I would not be too surprise because nobody is actively using it so we're not actively testing this feature.
You can try xen_emul_unplug=never in *guest kernel command line* to see if it changes anything.
Wei.
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter
on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find 0x7fdecf624968
On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Thanks for any reply.
On Fri, Dec 06, 2013 at 02:10:24PM +0100, Fabio Fantoni wrote:
[...]
Quoted 11 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
You can probably try to generate core file and use gdb to get the backtrace to see what QEMU is trying to access.
Wei.
Quoted 1 line
Thanks for any reply.
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 9 lines · Fabio Fantoni
[...]
Quoted 7 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968
Quoted 4 lines
Quoted 3 lines
On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of git://xenbits.xen.org/qemu-upstream-unstable.git)
Quoted 3 lines
You can probably try to generate core file and use gdb to get the backtrace to see what QEMU is trying to access.
Is there an howto for it please?
Quoted 4 lines
Wei.
Quoted 1 line
Thanks for any reply.
Quoted 10 lines · Fabio Fantoni
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 9 lines · Fabio Fantoni
[...]
Quoted 7 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)
Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
Quoted 6 lines
Quoted 3 lines
You can probably try to generate core file and use gdb to get the backtrace to see what QEMU is trying to access.
Is there an howto for it please?
There's lots of tutorial on how configure Linux to let a process be able to generate core file, how to debug core file with GDB. It's not QEMU-specific.
Wei.
Quoted 4 lines
Quoted 4 lines
Wei.
Quoted 1 line
Thanks for any reply.
Il 06/12/2013 15:40, Wei Liu ha scritto:
Quoted 14 lines · Fabio Fantoni
Quoted 13 lines
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 12 lines · Fabio Fantoni
[...]
Quoted 10 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
qemu of my tests about virtio:
git log
commit b97307ecaad98360f41ea36cd9674ef810c4f8cf
Author: Matthew Daley <[email protected]> Date: Thu Oct 10 14:10:48 2013 +0000
xen_disk: mark ioreq as mapped before unmapping in error case
Quoted 14 lines
Quoted 5 lines
Quoted 3 lines
You can probably try to generate core file and use gdb to get the backtrace to see what QEMU is trying to access.
Is there an howto for it please?
There's lots of tutorial on how configure Linux to let a process be able to generate core file, how to debug core file with GDB. It's not QEMU-specific.
Wei.
Quoted 3 lines
Quoted 3 lines
Wei.
Quoted 1 line
Thanks for any reply.
Quoted 23 lines · Fabio Fantoni
Il 06/12/2013 15:40, Wei Liu ha scritto:
Quoted 14 lines · Fabio Fantoni
Quoted 13 lines
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 12 lines · Fabio Fantoni
[...]
Quoted 10 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
Quoted 8 lines
qemu of my tests about virtio:
git log
commitb97307ecaad98360f41ea36cd9674ef810c4f8cfAuthor: Matthew Daley <[email protected]> Date: Thu Oct 10 14:10:48 2013 +0000
xen_disk: mark ioreq as mapped before unmapping in error case
There's lots of changesets between this one and the one I use so doing bisection is the only way to find out where the regression was introduced.
Wei.
Il 06/12/2013 15:55, Wei Liu ha scritto:
Quoted 29 lines · Fabio Fantoni
Quoted 28 lines
Il 06/12/2013 15:40, Wei Liu ha scritto:
Quoted 14 lines · Fabio Fantoni
Quoted 13 lines
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 12 lines · Fabio Fantoni
[...]
Quoted 10 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
qemu of my tests about virtio:
git log
commitb97307ecaad98360f41ea36cd9674ef810c4f8cfAuthor: Matthew Daley <[email protected]> Date: Thu Oct 10 14:10:48 2013 +0000
Quoted 7 lines
Quoted 2 lines
xen_disk: mark ioreq as mapped before unmapping in error caseThere's lots of changesets between this one and the one I use so doing bisection is the only way to find out where the regression was introduced.
Wei.
So your are still using qemu 1.3?
On Fri, Dec 06, 2013 at 04:25:48PM +0100, Fabio Fantoni wrote:
[...]
Quoted 1 line
So your are still using qemu 1.3?
Yes, my tree for that particular task was quite old. In that case you need to bisect across 3 versions, not an easy job.
Wei.
Quoted 30 lines · Wei Liu
Quoted 29 lines · Fabio Fantoni
Il 06/12/2013 15:40, Wei Liu ha scritto:
Quoted 14 lines · Fabio Fantoni
Quoted 13 lines
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 12 lines · Fabio Fantoni
[...]
Quoted 10 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
qemu of my tests about virtio:
git log
commitb97307ecaad98360f41ea36cd9674ef810c4f8cfAuthor: Matthew Daley <[email protected]> Date: Thu Oct 10 14:10:48 2013 +0000
Quoted 7 lines
Quoted 2 lines
xen_disk: mark ioreq as mapped before unmapping in error caseThere's lots of changesets between this one and the one I use so doing bisection is the only way to find out where the regression was introduced.
And, if you're really going to look into this I suggest you start with virtio related changesets, then Xen mapcache changesets (I suspect there's many changes to this code, but anyway it is worth looking at).
Good luck.
Wei.
Quoted 1 line
Wei.
Il 06/12/2013 16:39, Wei Liu ha scritto:
Quoted 36 lines · Wei Liu
Quoted 29 lines · Fabio Fantoni
Quoted 28 lines
Il 06/12/2013 15:40, Wei Liu ha scritto:
Quoted 14 lines · Fabio Fantoni
Quoted 13 lines
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 12 lines · Fabio Fantoni
[...]
Quoted 10 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch) and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
qemu of my tests about virtio:
git log
commitb97307ecaad98360f41ea36cd9674ef810c4f8cfAuthor: Matthew Daley <[email protected]> Date: Thu Oct 10 14:10:48 2013 +0000Quoted 6 lines
Quoted 2 lines
xen_disk: mark ioreq as mapped before unmapping in error caseThere's lots of changesets between this one and the one I use so doing bisection is the only way to find out where the regression was introduced.
Quoted 7 lines
And, if you're really going to look into this I suggest you start with virtio related changesets, then Xen mapcache changesets (I suspect there's many changes to this code, but anyway it is worth looking at).
Good luck.
Wei.
Thanks for your reply.
Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git
No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices. Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause. About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.
Il 10/12/2013 15:38, Fabio Fantoni ha scritto:
Quoted 42 lines
Il 06/12/2013 16:39, Wei Liu ha scritto:
Quoted 41 lines · Wei Liu
Quoted 30 lines · Fabio Fantoni
Quoted 29 lines
Il 06/12/2013 15:40, Wei Liu ha scritto:
Quoted 15 lines · Fabio Fantoni
Quoted 14 lines
Il 06/12/2013 14:17, Wei Liu ha scritto:
Quoted 13 lines · Fabio Fantoni
[...]
Quoted 11 lines
I tried 2 cases with xen_emul_unplug=never:
- with xen platform disabled (xen_platform_pci=0 plus konrad patch)
and pci=nomsi
- with xen_platform_pci=1 and without pci kernel parameter on both cases qemu crash with same error:xen_ram_addr_from_mapcache, could not find0x7fdecf624968On your virtio net test you have added only 'model=virtio-net-pci' on vif line of domU's xl cfg or you did other changes?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU.
I'm using xen's upstream qemu (master of
git://xenbits.xen.org/qemu-upstream-unstable.git)Not only the branch is important but also the changeset.
I'm using the hash specified in Config.mk
qemu of my tests about virtio:
git log
commitb97307ecaad98360f41ea36cd9674ef810c4f8cfAuthor: Matthew Daley <[email protected]> Date: Thu Oct 10 14:10:48 2013 +0000Quoted 6 lines
Quoted 2 lines
xen_disk: mark ioreq as mapped before unmapping in error caseThere's lots of changesets between this one and the one I use so doing bisection is the only way to find out where the regression was introduced.
And, if you're really going to look into this I suggest you start with virtio related changesets, then Xen mapcache changesets (I suspect there's many changes to this code, but anyway it is worth looking at).
Quoted 8 lines
Quoted 3 lines
Good luck.
Wei.
Thanks for your reply.
Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git
No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices. Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause.
Your test with virtio net working without pci=nomsi was on ovmf only or you tried also with seabios?
I tested with Ubuntu Saucy and Ubuntu Precise, both with latest xen-unstable (based on commit 2f718161bc292bfbdf1aeefd3932b73c0965373d), latest commit of qemu-upstream-4.3-testing.git and latest stable seabios from debian package 1.7.3-2 On both case pci=nomsi was needed to have virtio net working.
I watch the pdf of virtio spec. of this post:
http://lists.xen.org/archives/html/xen-devel/2013-12/msg01654.html
however, are not able to understand the possible cause of the problem encountered with msi on virtio devices with xen.
Quoted 3 lines
About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.
I test with qemu 1.4 and 1.5 and they haven't the regression showing xenmap cache error with virtio net.
Watching history seems there aren't commits about xen mapcache between 1.5 and 1.6, other xen and virtio changes are many, from a quick look I could not find commit suspects to be tested. Someone can suggest me the commits more suspects to be testedplease?
Thanks for any reply.
On Wed, Dec 11, 2013 at 02:41:57PM +0100, Fabio Fantoni wrote:
[...]
Quoted 11 lines
Quoted 10 lines
Thanks for your reply.
Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git
No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices.
Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause.
Quoted 2 lines
Your test with virtio net working without pci=nomsi was on ovmf only or you tried also with seabios?
I only tried OVMF recently and since you were replying to this thread I presumed you used OVMF as well.
Quoted 3 lines
I tested with Ubuntu Saucy and Ubuntu Precise, both with latest xen-unstable (based on commit
2f718161bc292bfbdf1aeefd3932b73c0965373d), latest commit of
If you're using OVMF I suggest you update your branch to he latest master.
Quoted 2 lines
qemu-upstream-4.3-testing.git and latest stable seabios from debian package 1.7.3-2
So that you're not using seabios tree from xenbits?
Quoted 7 lines
On both case pci=nomsi was needed to have virtio net working.
I watch the pdf of virtio spec. of this post:
http://lists.xen.org/archives/html/xen-devel/2013-12/msg01654.html
however, are not able to understand the possible cause of the problem encountered with msi on virtio devices with xen.
That's not very relevant. The bug is in implementation.
Quoted 8 lines
Quoted 5 lines
About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.
I test with qemu 1.4 and 1.5 and they haven't the regression showing xenmap cache error with virtio net.
So you've found out the bug was introduced in 1.6, good.
Quoted 5 lines
Watching history seems there aren't commits about xen mapcache between 1.5 and 1.6, other xen and virtio changes are many, from a quick look I could not find commit suspects to be tested. Someone can suggest me the commits more suspects to be testedplease?
How many commits between 1.5 and 1.6? If it is not too many I think doing bisection would be a good idea.
Wei.
Quoted 1 line
Thanks for any reply.
Il 11/12/2013 16:38, Wei Liu ha scritto:
Quoted 11 lines · Fabio Fantoni
[...]
Quoted 9 lines
Quoted 9 lines
Thanks for your reply.
Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git
No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices.
Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause.
Quoted 4 lines
Quoted 2 lines
Your test with virtio net working without pci=nomsi was on ovmf only or you tried also with seabios?
I only tried OVMF recently and since you were replying to this thread I presumed you used OVMF as well.
I not tried ovmf for this case, I'll do.
Based on your post seem that msi problem with virtio is missed on ovmf.
Quoted 10 lines
Quoted 4 lines
I tested with Ubuntu Saucy and Ubuntu Precise, both with latest xen-unstable (based on commit
2f718161bc292bfbdf1aeefd3932b73c0965373d), latest commit ofIf you're using OVMF I suggest you update your branch to he latest master.
Quoted 2 lines
qemu-upstream-4.3-testing.git and latest stable seabios from debian package 1.7.3-2
So that you're not using seabios tree from xenbits?
debian package use upstream 1.7.3.2 version, so I not think do difference.
Quoted 24 lines
Quoted 8 lines
On both case pci=nomsi was needed to have virtio net working.
I watch the pdf of virtio spec. of this post:
http://lists.xen.org/archives/html/xen-devel/2013-12/msg01654.html
however, are not able to understand the possible cause of the problem encountered with msi on virtio devices with xen.That's not very relevant. The bug is in implementation.
Quoted 7 lines
Quoted 5 lines
About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.
I test with qemu 1.4 and 1.5 and they haven't the regression showing xenmap cache error with virtio net.
So you've found out the bug was introduced in 1.6, good.
Quoted 5 lines
Watching history seems there aren't commits about xen mapcache between 1.5 and 1.6, other xen and virtio changes are many, from a quick look I could not find commit suspects to be tested. Someone can suggest me the commits more suspects to be testedplease?
Quoted 4 lines
How many commits between 1.5 and 1.6? If it is not too many I think doing bisection would be a good idea.
Wei.
I did other tests but take very long time due to a some of other bugs fixes later.
the results for now are:
regression present on commit c9fea5d701f8fd33f0843728ec264d95cee3ed37 Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') plus cherry-pick of commit 755ec4ca0f92188458ad7ca549a75161cbdcf6ff pc: Initializing ram_memory under Xen.
qemu crash on hvm domU start for other problem of which I have not found the fix for now:
commit dcb117bfda5af6f6ceb7231778d36d8bce4aee93 Thu, 4 Jul 2013 15:42:46 +0000 (ne2000: pass device to ne2000_setup_io, use it as owner) plus cherry-pick of commit 755ec4ca0f92188458ad7ca549a75161cbdcf6ff pc: Initializing ram_memory under Xen.
xl dmesg:
(d1) Multiprocessor initialisation:
(d1) - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] ... done. (d1) - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] ... done. (d1) Testing HVM environment:
(d1) - REP INSB across page boundaries ... Bad value at 0x00500000: saw 98765400 ex (d1) pected 987654ff
(d1) Bad value at 0x00500ffc: saw 00000000 expected ff000000
(d1) Bad value at 0x005ffffc: saw 00000000 expected ff000000
(d1) Bad value at 0x00601000: saw 00000000 expected 000000ff
(d1) failed
(d1) - GS base MSRs and SWAPGS ... passed
(d1) Passed 1 of 2 tests
(d1) FAILED 1 of 2 tests
(d1) *** HVMLoader bug at tests.c:242
(d1) *** HVMLoader crashed.
Quoted 2 lines
Quoted 2 lines
Thanks for any reply.
Quoted 12 lines · Fabio Fantoni
Il 11/12/2013 16:38, Wei Liu ha scritto:
Quoted 11 lines · Fabio Fantoni
[...]
Quoted 9 lines
Quoted 9 lines
Thanks for your reply.
Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git
No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices.
Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Your test with virtio net working without pci=nomsi was on ovmf only or you tried also with seabios?
I only tried OVMF recently and since you were replying to this thread I presumed you used OVMF as well.
I not tried ovmf for this case, I'll do.
Based on your post seem that msi problem with virtio is missed on ovmf.
Not sure, it doesn't necessary mean that it uses MSI.
Second thought on this, even if OVMF (the firmware) works it doesn't have anything to do with kernel.
So the only option would be to fix the bug, not work around it.
Quoted 70 lines
Quoted 10 lines
Quoted 4 lines
I tested with Ubuntu Saucy and Ubuntu Precise, both with latest xen-unstable (based on commit
2f718161bc292bfbdf1aeefd3932b73c0965373d), latest commit ofIf you're using OVMF I suggest you update your branch to he latest master.
Quoted 2 lines
qemu-upstream-4.3-testing.git and latest stable seabios from debian package 1.7.3-2
So that you're not using seabios tree from xenbits?
debian package use upstream 1.7.3.2 version, so I not think do difference.
Quoted 24 lines
Quoted 8 lines
On both case pci=nomsi was needed to have virtio net working.
I watch the pdf of virtio spec. of this post:
http://lists.xen.org/archives/html/xen-devel/2013-12/msg01654.html
however, are not able to understand the possible cause of the problem encountered with msi on virtio devices with xen.That's not very relevant. The bug is in implementation.
Quoted 7 lines
Quoted 5 lines
About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.
I test with qemu 1.4 and 1.5 and they haven't the regression showing xenmap cache error with virtio net.
So you've found out the bug was introduced in 1.6, good.
Quoted 5 lines
Watching history seems there aren't commits about xen mapcache between 1.5 and 1.6, other xen and virtio changes are many, from a quick look I could not find commit suspects to be tested. Someone can suggest me the commits more suspects to be testedplease?
Quoted 4 lines
How many commits between 1.5 and 1.6? If it is not too many I think doing bisection would be a good idea.
Wei.
I did other tests but take very long time due to a some of other bugs fixes later.
the results for now are:
regression present on commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') plus cherry-pick of commit755ec4ca0f92188458ad7ca549a75161cbdcf6ffpc:
Initializingram_memoryunder Xen.qemu crash on hvm domU start for other problem of which I have not found the fix for now:
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000 (ne2000: pass device tone2000_setup_io, use it as owner)
plus cherry-pick of commit755ec4ca0f92188458ad7ca549a75161cbdcf6ff
pc: Initializingram_memoryunder Xen.xl dmesg:
(d1) Multiprocessor initialisation:
(d1) - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] ... done. (d1) - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] ... done. (d1) Testing HVM environment:
(d1) - REP INSB across page boundaries ... Bad value at0x00500000:
saw 98765400 ex
(d1) pected987654ff
(d1) Bad value at0x00500ffc: saw 00000000 expectedff000000
Quoted 10 lines
(d1) Bad value at
0x005ffffc: saw 00000000 expectedff000000(d1) Bad value at0x00601000: saw 00000000 expected000000ff(d1) failed
(d1) - GS base MSRs and SWAPGS ... passed
(d1) Passed 1 of 2 tests
(d1) FAILED 1 of 2 tests
(d1) *** HVMLoader bug at tests.c:242
(d1) *** HVMLoader crashed.
It crashes in HVMloader, not QEMU. So this is probably not what you need.
Wei.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Thanks for any reply.
Il 11/12/2013 17:55, Wei Liu ha scritto:
Quoted 103 lines · Fabio Fantoni
Quoted 12 lines
Il 11/12/2013 16:38, Wei Liu ha scritto:
Quoted 11 lines · Fabio Fantoni
[...]
Quoted 9 lines
Quoted 9 lines
Thanks for your reply.
Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git
No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices.
Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause.Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Your test with virtio net working without pci=nomsi was on ovmf only or you tried also with seabios?
I only tried OVMF recently and since you were replying to this thread I presumed you used OVMF as well.
I not tried ovmf for this case, I'll do.
Based on your post seem that msi problem with virtio is missed on ovmf.Not sure, it doesn't necessary mean that it uses MSI.
Second thought on this, even if OVMF (the firmware) works it doesn't have anything to do with kernel.
So the only option would be to fix the bug, not work around it.
Quoted 66 lines
Quoted 9 lines
Quoted 3 lines
I tested with Ubuntu Saucy and Ubuntu Precise, both with latest xen-unstable (based on commit
2f718161bc292bfbdf1aeefd3932b73c0965373d), latest commit ofIf you're using OVMF I suggest you update your branch to he latest master.
Quoted 2 lines
qemu-upstream-4.3-testing.git and latest stable seabios from debian package 1.7.3-2
So that you're not using seabios tree from xenbits?
debian package use upstream 1.7.3.2 version, so I not think do difference.
Quoted 23 lines
Quoted 7 lines
On both case pci=nomsi was needed to have virtio net working.
I watch the pdf of virtio spec. of this post:
http://lists.xen.org/archives/html/xen-devel/2013-12/msg01654.html
however, are not able to understand the possible cause of the problem encountered with msi on virtio devices with xen.That's not very relevant. The bug is in implementation.
Quoted 7 lines
Quoted 5 lines
About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.
I test with qemu 1.4 and 1.5 and they haven't the regression showing xenmap cache error with virtio net.
So you've found out the bug was introduced in 1.6, good.
Quoted 5 lines
Watching history seems there aren't commits about xen mapcache between 1.5 and 1.6, other xen and virtio changes are many, from a quick look I could not find commit suspects to be tested. Someone can suggest me the commits more suspects to be testedplease?
Quoted 4 lines
How many commits between 1.5 and 1.6? If it is not too many I think doing bisection would be a good idea.
Wei.
I did other tests but take very long time due to a some of other bugs fixes later.
the results for now are:
regression present on commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') plus cherry-pick of commit755ec4ca0f92188458ad7ca549a75161cbdcf6ffpc:
Initializingram_memoryunder Xen.qemu crash on hvm domU start for other problem of which I have not found the fix for now:
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000 (ne2000: pass device tone2000_setup_io, use it as owner)
plus cherry-pick of commit755ec4ca0f92188458ad7ca549a75161cbdcf6ff
pc: Initializingram_memoryunder Xen.xl dmesg:
(d1) Multiprocessor initialisation:
(d1) - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] ... done. (d1) - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] ... done. (d1) Testing HVM environment:
(d1) - REP INSB across page boundaries ... Bad value at0x00500000:
saw 98765400 ex
(d1) pected987654ff
(d1) Bad value at0x00500ffc: saw 00000000 expectedff000000Quoted 10 lines
(d1) Bad value at
0x005ffffc: saw 00000000 expectedff000000(d1) Bad value at0x00601000: saw 00000000 expected000000ff(d1) failed
(d1) - GS base MSRs and SWAPGS ... passed
(d1) Passed 1 of 2 tests
(d1) FAILED 1 of 2 tests
(d1) *** HVMLoader bug at tests.c:242
(d1) *** HVMLoader crashed.
Quoted 4 lines
It crashes in HVMloader, not QEMU. So this is probably not what you need.
Wei.
I did some other tests, I narrowed down the commit range to the one between:
commit c9fea5d701f8fd33f0843728ec264d95cee3ed37 Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xen
and
commit 962b03fcf509db25c847aa67c4eff574c240dcfe Thu, 4 Jul 2013 15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned)
where virtio net is working
I also tested:
commit 2562becfc126ed7678c662ee23b7c1fe135d8966 Mon, 15 Jul 2013 19:02:41 +0000
and
commit dcb117bfda5af6f6ceb7231778d36d8bce4aee93 Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.
Can someone help me please?
I added also qemu-devel to cc.
Thanks for any reply.
On Thu, Dec 12, 2013 at 02:10:23PM +0100, Fabio Fantoni wrote:
[...]
Quoted 22 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.
Quoted 4 lines
Can someone help me please?
I added also qemu-devel to cc.
I did a quick test with Xen's QEMU, currently at
commit 1c514a7734b7f98625a0d18d5e8ee7581f26e50c
Merge: 79c097d 35bdc13
Author: Stefano Stabellini <[email protected]>
Date: Tue Jun 25 11:34:24 2013 +0000
Merge remote branch 'perard/cpu-hotplug-port-v2' into xen-staging-master-7
from git://xenbits.xen.org/qemu-upstream-unstable.git
My guest is Squeeze with stock kernel 2.6.32.
vif=['model=virtio-net-pci,bridge=xenbr0']
No pci=nomsi in guest kernel command line.
Everything worked fine. And /proc/interrupts shows that it's indeed using MSI for virtio PCI.
I'm kind of confused. (And in the long run of this thread I probably didn't remember everything.)
Wei.
Quoted 1 line
Thanks for any reply.
Il 12/12/2013 16:23, Wei Liu ha scritto:
Quoted 46 lines · Fabio Fantoni
[...]
Quoted 22 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.Quoted 4 lines
Can someone help me please?
I added also qemu-devel to cc.
I did a quick test with Xen's QEMU, currently at
commit
1c514a7734b7f98625a0d18d5e8ee7581f26e50c
Merge: 79c097d 35bdc13
Author: Stefano Stabellini <[email protected]>
Date: Tue Jun 25 11:34:24 2013 +0000Merge remote branch 'perard/cpu-hotplug-port-v2' into xen-staging-master-7
from
git://xenbits.xen.org/qemu-upstream-unstable.gitMy guest is Squeeze with stock kernel 2.6.32.
vif=['model=virtio-net-pci,bridge=xenbr0']
No pci=nomsi in guest kernel command line.
Quoted 7 lines
Everything worked fine. And
/proc/interruptsshows that it's indeed using MSI for virtio PCI.I'm kind of confused. (And in the long run of this thread I probably didn't remember everything.)
Wei.
I tried with "commit e16435c95be86244bd92c5c26579bd4298aa65a6 (xen_disk: mark ioreq as mapped before unmapping in error case)" from git://xenbits.xen.org/qemu-upstream-4.3-testing.git.
There are only 4 commits difference between mine and your test.
FWIK the only other difference is domUs kernel versions, and the msi problem is probably a regression between kernel 2.6.32 and 3.2 (the "older" domUs used in my tests was Precise with kernel 3.2). Tomorrow I'll try also with squeeze.
RIguardo invece l'altra regressione qemu tra il 4 e 22 luglio che da errore xen mapcache usando virtio net puoi aiutarmi?
Another question: the qemu 1.6 regression between july 4th-22nd commits (qemu crash on domU kernel load with xen mapcache error with virtio net), could you help me?
Thanks for any reply.
Il 12/12/2013 17:05, Fabio Fantoni ha scritto:
Quoted 54 lines
Il 12/12/2013 16:23, Wei Liu ha scritto:
Quoted 53 lines · Fabio Fantoni
[...]
Quoted 22 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.Quoted 4 lines
Can someone help me please?
I added also qemu-devel to cc.
I did a quick test with Xen's QEMU, currently at
commit
1c514a7734b7f98625a0d18d5e8ee7581f26e50c
Merge: 79c097d 35bdc13
Author: Stefano Stabellini <[email protected]>
Date: Tue Jun 25 11:34:24 2013 +0000Merge remote branch 'perard/cpu-hotplug-port-v2' into
xen-staging-master-7from
git://xenbits.xen.org/qemu-upstream-unstable.gitMy guest is Squeeze with stock kernel 2.6.32.
vif=['model=virtio-net-pci,bridge=xenbr0']
No pci=nomsi in guest kernel command line.
Everything worked fine. And
/proc/interruptsshows that it's indeed using MSI for virtio PCI.I'm kind of confused. (And in the long run of this thread I probably didn't remember everything.)
Quoted 6 lines
Quoted 1 line
Wei.
I tried with "commit
e16435c95be86244bd92c5c26579bd4298aa65a6(xen_disk: mark ioreq as mapped before unmapping in error case)" fromgit://xenbits.xen.org/qemu-upstream-4.3-testing.git.
There are only 4 commits difference between mine and your test.
FWIK the only other difference is domUs kernel versions, and the msi problem is probably a regression between kernel 2.6.32 and 3.2 (the "older" domUs used in my tests was Precise with kernel 3.2). Tomorrow I'll try also with squeeze.
I tested with squeeze and with qemu 1.3.1, virtio net works also without pci=nomsi, so seems kernel regression about msi using xen (that make virtio devices not working) between versions 2.6.32 and 3.2. Any idea about solve it?
Quoted 5 lines
RIguardo invece l'altra regressione qemu tra il 4 e 22 luglio che da errore xen mapcache usando virtio net puoi aiutarmi?
Another question: the qemu 1.6 regression between july 4th-22nd commits (qemu crash on domU kernel load with xen mapcache error with virtio net), could you help me?Thanks for any reply.
I did another test about this qemu regression and I'm unable to decrease the range of commits :(
Quoted 67 lines · Fabio Fantoni
Il 12/12/2013 17:05, Fabio Fantoni ha scritto:
Quoted 57 lines
Il 12/12/2013 16:23, Wei Liu ha scritto:
Quoted 48 lines · Fabio Fantoni
[...]
Quoted 23 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.Quoted 4 lines
Can someone help me please?
I added also qemu-devel to cc.
I did a quick test with Xen's QEMU, currently at
commit
1c514a7734b7f98625a0d18d5e8ee7581f26e50c
Merge: 79c097d 35bdc13
Author: Stefano Stabellini <[email protected]>
Date: Tue Jun 25 11:34:24 2013 +0000Merge remote branch 'perard/cpu-hotplug-port-v2' into
xen-staging-master-7from
git://xenbits.xen.org/qemu-upstream-unstable.gitMy guest is Squeeze with stock kernel 2.6.32.
vif=['model=virtio-net-pci,bridge=xenbr0']
No pci=nomsi in guest kernel command line.
Quoted 7 lines
Everything worked fine. And
/proc/interruptsshows that it's indeed using MSI for virtio PCI.I'm kind of confused. (And in the long run of this thread I probably didn't remember everything.)
Wei.
Quoted 8 lines
I tried with "commit
e16435c95be86244bd92c5c26579bd4298aa65a6(xen_disk: mark ioreq as mapped before unmapping in error case)" fromgit://xenbits.xen.org/qemu-upstream-4.3-testing.git.
There are only 4 commits difference between mine and your test. FWIK the only other difference is domUs kernel versions, and the msi problem is probably a regression between kernel 2.6.32 and 3.2 (the "older" domUs used in my tests was Precise with kernel 3.2). Tomorrow I'll try also with squeeze.
Quoted 6 lines
I tested with squeeze and with qemu 1.3.1, virtio net works also without pci=nomsi, so seems kernel regression about msi using xen (that make virtio devices not working) between versions 2.6.32 and 3.2.
Any idea about solve it?
3.2 is still old to be honest. I don't think we have the bandwidth to look at it.
It's never easy to debug problem involving several software components. The right thing to do is to use a) latest stable kernel tree which is still actively maintained, b) Linus's tree. Only those actively trees maintained / developed people have incentive / time to look at.
If you're using a specific distro kernel, it would be probably helpful to report bug to that distro as well -- only if you're sure the bug you're seeing is distro kernel's bug.
If you really want this feature so bad. I would sugguest you try latest stable kernel to see if it works. If not, you probably need to revisit your requirement and look for another route to achieve your goal.
Wei.
Il 13/12/2013 17:22, Wei Liu ha scritto:
Quoted 82 lines · Fabio Fantoni
Quoted 63 lines
Il 12/12/2013 17:05, Fabio Fantoni ha scritto:
Quoted 54 lines
Il 12/12/2013 16:23, Wei Liu ha scritto:
Quoted 46 lines · Fabio Fantoni
[...]
Quoted 23 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.Quoted 4 lines
Can someone help me please?
I added also qemu-devel to cc.
I did a quick test with Xen's QEMU, currently at
commit
1c514a7734b7f98625a0d18d5e8ee7581f26e50c
Merge: 79c097d 35bdc13
Author: Stefano Stabellini <[email protected]>
Date: Tue Jun 25 11:34:24 2013 +0000Merge remote branch 'perard/cpu-hotplug-port-v2' into
xen-staging-master-7from
git://xenbits.xen.org/qemu-upstream-unstable.git
My guest is Squeeze with stock kernel 2.6.32.vif=['model=virtio-net-pci,bridge=xenbr0']
No pci=nomsi in guest kernel command line.
Quoted 7 lines
Everything worked fine. And
/proc/interruptsshows that it's indeed using MSI for virtio PCI.I'm kind of confused. (And in the long run of this thread I probably didn't remember everything.)
Wei.
Quoted 8 lines
I tried with "commit
e16435c95be86244bd92c5c26579bd4298aa65a6(xen_disk: mark ioreq as mapped before unmapping in error case)" fromgit://xenbits.xen.org/qemu-upstream-4.3-testing.git.
There are only 4 commits difference between mine and your test. FWIK the only other difference is domUs kernel versions, and the msi problem is probably a regression between kernel 2.6.32 and 3.2 (the "older" domUs used in my tests was Precise with kernel 3.2). Tomorrow I'll try also with squeeze.Quoted 6 lines
I tested with squeeze and with qemu 1.3.1, virtio net works also without pci=nomsi, so seems kernel regression about msi using xen (that make virtio devices not working) between versions 2.6.32 and 3.2.
Any idea about solve it?3.2 is still old to be honest. I don't think we have the bandwidth to look at it.
It's never easy to debug problem involving several software components. The right thing to do is to use a) latest stable kernel tree which is still actively maintained, b) Linus's tree. Only those actively trees maintained / developed people have incentive / time to look at.
If you're using a specific distro kernel, it would be probably helpful to report bug to that distro as well -- only if you're sure the bug you're seeing is distro kernel's bug.
Quoted 5 lines
If you really want this feature so bad. I would sugguest you try latest stable kernel to see if it works. If not, you probably need to revisit your requirement and look for another route to achieve your goal.
Wei.
Thanks for your reply.
About kernel msi regression I'll do other tests.
Could it be useful to try this patch:
https://bugzilla.kernel.org/attachment.cgi?id=113791
or is it totally unrelated?
About the other regression (the upstream qemu 1.6 regression that causes qemu crash with virtio net) can someone help me please?
Quoted 23 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.
Quoted 1 line
Can someone help me please?
Thanks for any reply.
On Tue, Dec 17, 2013 at 05:01:58PM +0100, Fabio Fantoni wrote:
[...]
Quoted 7 lines
Thanks for your reply.
About kernel msi regression I'll do other tests.
Could it be useful to try this patch:
https://bugzilla.kernel.org/attachment.cgi?id=113791
or is it totally unrelated?
Not sure. You would probably need to check if the kernel version you used already has that patch.
IIRC, you said e1000 worked without pci=nomsi. And, if I remember correctly, e1000 uses MSI by default. So it is hard to tell what is broken. After all so many different components, so many different versions of different components are involved.
Wei.
Quoted 25 lines · Fabio Fantoni
Il 13/12/2013 17:22, Wei Liu ha scritto:
Quoted 24 lines · Fabio Fantoni
Quoted 23 lines
Il 12/12/2013 17:05, Fabio Fantoni ha scritto:
Quoted 22 lines
Il 12/12/2013 16:23, Wei Liu ha scritto:
Quoted 21 lines · Fabio Fantoni
[...]
Quoted 19 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
bisect is pretty aggressive sometimes but there are only 300 commits in this range.
So you should be able to just try them all automatically.
It might be a good idea to start a new thread,
Cc all lists at the same time and collect the
information known so far.
Also, is MSI working for Xen generally?
Maybe it's not a virtio-only problem.
Quoted 73 lines
Quoted 59 lines
Quoted 41 lines
Quoted 33 lines
Quoted 26 lines
Quoted 9 lines
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.
Can someone help me please?
I added also qemu-devel to cc.
I did a quick test with Xen's QEMU, currently at
commit
1c514a7734b7f98625a0d18d5e8ee7581f26e50c
Merge: 79c097d 35bdc13
Author: Stefano Stabellini <[email protected]>
Date: Tue Jun 25 11:34:24 2013 +0000Merge remote branch 'perard/cpu-hotplug-port-v2' into
xen-staging-master-7from
git://xenbits.xen.org/qemu-upstream-unstable.git
My guest is Squeeze with stock kernel 2.6.32.vif=['model=virtio-net-pci,bridge=xenbr0']
No pci=nomsi in guest kernel command line.
Quoted 7 lines
Everything worked fine. And
/proc/interruptsshows that it's indeed using MSI for virtio PCI.I'm kind of confused. (And in the long run of this thread I probably didn't remember everything.)
Wei.
Quoted 8 lines
I tried with "commit
e16435c95be86244bd92c5c26579bd4298aa65a6(xen_disk: mark ioreq as mapped before unmapping in error case)" fromgit://xenbits.xen.org/qemu-upstream-4.3-testing.git.
There are only 4 commits difference between mine and your test. FWIK the only other difference is domUs kernel versions, and the msi problem is probably a regression between kernel 2.6.32 and 3.2 (the "older" domUs used in my tests was Precise with kernel 3.2). Tomorrow I'll try also with squeeze.Quoted 6 lines
I tested with squeeze and with qemu 1.3.1, virtio net works also without pci=nomsi, so seems kernel regression about msi using xen (that make virtio devices not working) between versions 2.6.32 and 3.2.
Any idea about solve it?3.2 is still old to be honest. I don't think we have the bandwidth to look at it.
It's never easy to debug problem involving several software components. The right thing to do is to use a) latest stable kernel tree which is still actively maintained, b) Linus's tree. Only those actively trees maintained / developed people have incentive / time to look at.
If you're using a specific distro kernel, it would be probably helpful to report bug to that distro as well -- only if you're sure the bug you're seeing is distro kernel's bug.
Quoted 5 lines
If you really want this feature so bad. I would sugguest you try latest stable kernel to see if it works. If not, you probably need to revisit your requirement and look for another route to achieve your goal.
Wei.
Thanks for your reply.
About kernel msi regression I'll do other tests.
Could it be useful to try this patch:
https://bugzilla.kernel.org/attachment.cgi?id=113791
or is it totally unrelated?
Quoted 2 lines
About the other regression (the upstream qemu 1.6 regression that causes qemu crash with virtio net) can someone help me please?
It might be a good idea to start a separate thread related to this, too.
Quoted 26 lines
Quoted 23 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000
but qemu crashes on xl create for another error and I haven't found which is the commit to apply with git cherry-pick so that I can check if the virtio net regression is present.Quoted 1 line
Can someone help me please?
Thanks for any reply.
Quoted 31 lines · Michael S. Tsirkin
Quoted 25 lines · Fabio Fantoni
Il 13/12/2013 17:22, Wei Liu ha scritto:
Quoted 24 lines · Fabio Fantoni
Quoted 23 lines
Il 12/12/2013 17:05, Fabio Fantoni ha scritto:
Quoted 22 lines
Il 12/12/2013 16:23, Wei Liu ha scritto:
Quoted 21 lines · Fabio Fantoni
[...]
Quoted 19 lines
I did some other tests, I narrowed down the commit range to the one between:
commit
c9fea5d701f8fd33f0843728ec264d95cee3ed37Mon, 22 Jul 2013 15:14:18 (Merge remote-tracking branch 'bonzini/iommu-for-anthony') where there is virtio net regression with xenand
commit
962b03fcf509db25c847aa67c4eff574c240dcfeThu, 4 Jul 2013
15:42:43 +0000 (xen: Mark fixed platform I/O as unaligned) where virtio net is workingI also tested:
commit2562becfc126ed7678c662ee23b7c1fe135d8966Mon, 15 Jul 2013 19:02:41 +0000
and
commitdcb117bfda5af6f6ceb7231778d36d8bce4aee93Thu, 4 Jul 2013 15:42:46 +0000bisect is pretty aggressive sometimes but there are only 300 commits in this range.
So you should be able to just try them all automatically.
Quoted 7 lines
It might be a good idea to start a new thread,
Cc all lists at the same time and collect the
information known so far.Also, is MSI working for Xen generally?
Maybe it's not a virtio-only problem.
I beleive MSI works to some degree. There's code to inject MSI interrupt to HVM guest in QEMU.
Wei.