Xen 4.1 rc5 outstanding bugs
Hi all,
I went through the list of bugs affecting the latest Xen 4.1 RC and I made a list of what they seem to be the most serious. All of them affect PCI passthrough and seem to be hypervisor/qemu-xen bugs apart from the last one that is a libxenlight/xl bug.
* VF passthrough does not work
Passing through a normal NIC seem to work but passing through a VF doesn't.
The device appears in the guest but it cannot exchange packets, the guest kernel version doesn't seem to matter.
Quoted 1 line
From the qemu logs:
pci_msix_writel: Error: Can't update msix entry 0 since MSI-X is already function.
It might be the same problem of the two following bug reports:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1709
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1742
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:
(XEN) [<ffff82c48015f032>] msi_set_mask_bit+0xea/0x121 (XEN) [<ffff82c48015f087>] mask_msi_irq+0xe/0x10 (XEN) [<ffff82c480162fb1>] __pirq_guest_unbind+0x298/0x2aa (XEN) [<ffff82c48016315c>] unmap_domain_pirq+0x199/0x307 (XEN) [<ffff82c480163321>] free_domain_pirqs+0x57/0x83 (XEN) [<ffff82c48015642a>] arch_domain_destroy+0x30/0x2e3 (XEN) [<ffff82c480104c59>] complete_domain_destroy+0x6e/0x12a (XEN) [<ffff82c48012adfd>] rcu_process_callbacks+0x173/0x1e1 (XEN) [<ffff82c480123327>] __do_softirq+0x88/0x99 (XEN) [<ffff82c4801233a2>] do_softirq+0x6a/0x7a
* possible Xen pirq leak at domain shutdown
If a guest doesn't support pci hot-unplug (or a malicious guest), it won't do anything in response to the acpi SCI interrupt we send when the domain is destroyed, therefore unregister_real_device will never be called in qemu and we might be leaking MSIs in the Xen (to be verified).
http://xen.1045712.n5.nabble.com/template/NamlServlet.jtp?macro=print_post&node=3369367
* Xen warns about MSIs when assigning a PCI device to a guest
also known as "Xen complains msi error when startup" At startup Xen prints multiple:
(XEN) Xen WARN at msi.c:635
(XEN) Xen WARN at msi.c:648
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1732
* PCI hot-unplug causes a guest crash
also know as "fail to detach NIC from guest"
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1736
* multiple PCI devices passthrough to PV guests or HVM guests with stubdoms is broken with the xl toolstack
Cannot assign >1 PCI passthrough devices as domain creation time because libxl creates a bus for the first device and increments "num_devs" node in xenstore for each subsequent device but pciback cannot cope with num_devs changing while the guest is not running to respond to the reconfiguration request. A fix would be to create the entire bus in a single cold-plug operation at start of day.
- Stefano
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Stefano Stabellini
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt
3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:
Quoted 10 lines
(XEN) [<ffff82c48015f032>] msi_set_mask_bit+0xea/0x121 (XEN) [<ffff82c48015f087>] mask_msi_irq+0xe/0x10 (XEN) [<ffff82c480162fb1>] __pirq_guest_unbind+0x298/0x2aa (XEN) [<ffff82c48016315c>] unmap_domain_pirq+0x199/0x307 (XEN) [<ffff82c480163321>] free_domain_pirqs+0x57/0x83 (XEN) [<ffff82c48015642a>] arch_domain_destroy+0x30/0x2e3 (XEN) [<ffff82c480104c59>] complete_domain_destroy+0x6e/0x12a (XEN) [<ffff82c48012adfd>] rcu_process_callbacks+0x173/0x1e1 (XEN) [<ffff82c480123327>] __do_softirq+0x88/0x99 (XEN) [<ffff82c4801233a2>] do_softirq+0x6a/0x7a
Are you sure you want to consider this one severe? Xen by itself can't cause NMIs (unless sending IPIs as such, which certainly isn't the case here), and iirc from the mailing list post corresponding to this it's being observed only on a single (with the above presumably buggy) system.
Jan
Quoted 18 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Stefano Stabellini
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt
3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:Quoted 10 lines
(XEN) [<ffff82c48015f032>] msi_set_mask_bit+0xea/0x121 (XEN) [<ffff82c48015f087>] mask_msi_irq+0xe/0x10 (XEN) [<ffff82c480162fb1>] __pirq_guest_unbind+0x298/0x2aa (XEN) [<ffff82c48016315c>] unmap_domain_pirq+0x199/0x307 (XEN) [<ffff82c480163321>] free_domain_pirqs+0x57/0x83 (XEN) [<ffff82c48015642a>] arch_domain_destroy+0x30/0x2e3 (XEN) [<ffff82c480104c59>] complete_domain_destroy+0x6e/0x12a (XEN) [<ffff82c48012adfd>] rcu_process_callbacks+0x173/0x1e1 (XEN) [<ffff82c480123327>] __do_softirq+0x88/0x99 (XEN) [<ffff82c4801233a2>] do_softirq+0x6a/0x7a
Quoted 5 lines
Are you sure you want to consider this one severe? Xen by itself can't cause NMIs (unless sending IPIs as such, which certainly isn't the case here), and iirc from the mailing list post corresponding to this it's being observed only on a single (with the above presumably buggy) system.
Good point. We should have another identical machine, we'll try to reproduce it there.
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 21.02.11 at 12:05, Stefano Stabellini <[email protected]>
Quoted 22 lines · wrote:
Quoted 1 line · Jan Beulich
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 18.02.11 at 19:59, Stefano Stabellini <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt
Quoted 15 lines
Quoted 14 lines
3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:(XEN) [<ffff82c48015f032>] msi_set_mask_bit+0xea/0x121 (XEN) [<ffff82c48015f087>] mask_msi_irq+0xe/0x10 (XEN) [<ffff82c480162fb1>] __pirq_guest_unbind+0x298/0x2aa (XEN) [<ffff82c48016315c>] unmap_domain_pirq+0x199/0x307 (XEN) [<ffff82c480163321>] free_domain_pirqs+0x57/0x83 (XEN) [<ffff82c48015642a>] arch_domain_destroy+0x30/0x2e3 (XEN) [<ffff82c480104c59>] complete_domain_destroy+0x6e/0x12a (XEN) [<ffff82c48012adfd>] rcu_process_callbacks+0x173/0x1e1 (XEN) [<ffff82c480123327>] __do_softirq+0x88/0x99 (XEN) [<ffff82c4801233a2>] do_softirq+0x6a/0x7a
Quoted 8 lines
Quoted 5 lines
Are you sure you want to consider this one severe? Xen by itself can't cause NMIs (unless sending IPIs as such, which certainly isn't the case here), and iirc from the mailing list post corresponding to this it's being observed only on a single (with the above presumably buggy) system.
Good point. We should have another identical machine, we'll try to reproduce it there.
Another identical machine may have the same problem (if its a design flaw rather than broken hardware) - reproducing on a different machine would be of much more interest.
Jan
Quoted 19 lines · Stefano Stabellini
Quoted 18 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Stefano Stabellini
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt
3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:
(XEN) [<ffff82c48015f032>]msi_set_mask_bit+0xea/0x121(XEN) [<ffff82c48015f087>]mask_msi_irq+0xe/0x10
(XEN) [<ffff82c480162fb1>]__pirq_guest_unbind+0x298/0x2aa(XEN) [<ffff82c48016315c>]unmap_domain_pirq+0x199/0x307(XEN) [<ffff82c480163321>]free_domain_pirqs+0x57/0x83(XEN) [<ffff82c48015642a>]arch_domain_destroy+0x30/0x2e3(XEN) [<ffff82c480104c59>]complete_domain_destroy+0x6e/0x12a(XEN) [<ffff82c48012adfd>]rcu_process_callbacks+0x173/0x1e1(XEN) [<ffff82c480123327>]__do_softirq+0x88/0x99(XEN) [<ffff82c4801233a2>]do_softirq+0x6a/0x7a
Quoted 8 lines
Quoted 5 lines
Are you sure you want to consider this one severe? Xen by itself can't cause NMIs (unless sending IPIs as such, which certainly isn't the case here), and iirc from the mailing list post corresponding to this it's being observed only on a single (with the above presumably buggy) system.
Good point. We should have another identical machine, we'll try to reproduce it there.
I have the same issue on another identical machine.
Host: Dell System PowerEdge R310
Dom0: Debian Squeeze with Kernel dom0 2.6.32.27
Xen 4.1-rc6-pre
Guest: Debian lenny with default kernel.
pci devices:
Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet 02:00.0 -> passthrough to guest
02:00.1 -> keep as network card for dom0
A bug report have been filled here:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1744
Signature · 1 line
Anthony PERARD
I used rhel5u5 as guest and cannot reproduce this issue in my westmere-EP. Can you have a try with rhel5u5 guest?
Host: westmere-ep
Software:
Xen 4.1-rc6-pre
Pvops dom0: rhel5u5 with 2.6.32.27
Guest: rhel5u5
best regards
yang
Quoted 58 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Anthony PERARD
Sent: Tuesday, February 22, 2011 1:30 AM
To: Stefano Stabellini
Cc: [email protected]; Jan Beulich
Subject: Re: [Xen-devel] Xen 4.1 rc5 outstanding bugsQuoted 2 lines · Stefano Stabellini
Quoted 1 line · Jan Beulich
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 18.02.11 at 19:59, Stefano Stabellini
Quoted 2 lines · <[email protected]> wrote:
Quoted 2 lines
Quoted 2 lines
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Pas
sthrough-ttQuoted 15 lines
Quoted 15 lines
Quoted 14 lines
3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:
(XEN) [<ffff82c48015f032>]msi_set_mask_bit+0xea/0x121(XEN) [<ffff82c48015f087>]mask_msi_irq+0xe/0x10
(XEN) [<ffff82c480162fb1>]__pirq_guest_unbind+0x298/0x2aa(XEN) [<ffff82c48016315c>]unmap_domain_pirq+0x199/0x307(XEN) [<ffff82c480163321>]free_domain_pirqs+0x57/0x83(XEN) [<ffff82c48015642a>]arch_domain_destroy+0x30/0x2e3(XEN) [<ffff82c480104c59>]complete_domain_destroy+0x6e/0x12a(XEN) [<ffff82c48012adfd>]rcu_process_callbacks+0x173/0x1e1(XEN) [<ffff82c480123327>]__do_softirq+0x88/0x99(XEN) [<ffff82c4801233a2>]do_softirq+0x6a/0x7aQuoted 8 lines
Quoted 5 lines
Are you sure you want to consider this one severe? Xen by itself can't cause NMIs (unless sending IPIs as such, which certainly isn't the case here), and iirc from the mailing list post corresponding to this it's being observed only on a single (with the above presumably buggy) system.
Good point. We should have another identical machine, we'll try to reproduce it there.
I have the same issue on another identical machine.
Host: Dell System PowerEdge R310
Dom0: Debian Squeeze with Kernel dom0 2.6.32.27 Xen 4.1-rc6-pre
Guest: Debian lenny with default kernel.pci devices:
Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet 02:00.0 -> passthrough to guest
02:00.1 -> keep as network card for dom0A bug report have been filled here:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1744
Quoted 7 lines
--
Anthony PERARD_______________________________________________
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 1 line · Yang Z
I used rhel5u5 as guest and cannot reproduce this issue in my westmere-EP. Can you have a try with rhel5u5 guest?
I didn't try with a rhel5.5 guest but I noticed that the device we are trying to passthrough is a multifunction device:
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20) 02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20)
when the VM is shutdown Xen receives an NMI trying to mask an msix from __pirq_guest_unbind.
The NMI happens even if we leave the other function unused or if we assign it to the same VM.
Quoted 3 lines · Stefano Stabellini
Hi all,
I went through the list of bugs affecting the latest Xen 4.1 RC and I made a list of what they seem to be the most serious.
What is the status of these? I know you made some strides in fixing most if not all of them both in the hypervisor and Linux kernel.
Quoted 74 lines
All of them affect PCI passthrough and seem to be hypervisor/qemu-xen bugs apart from the last one that is a libxenlight/xl bug.
* VF passthrough does not work
Passing through a normal NIC seem to work but passing through a VF doesn't.
The device appears in the guest but it cannot exchange packets, the guest kernel version doesn't seem to matter.Quoted 1 line
From the qemu logs:
pci_msix_writel: Error: Can't update msix entry 0 since MSI-X is already function.It might be the same problem of the two following bug reports:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1709
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1742* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:(XEN) [<ffff82c48015f032>] msi_set_mask_bit+0xea/0x121 (XEN) [<ffff82c48015f087>] mask_msi_irq+0xe/0x10 (XEN) [<ffff82c480162fb1>] __pirq_guest_unbind+0x298/0x2aa (XEN) [<ffff82c48016315c>] unmap_domain_pirq+0x199/0x307 (XEN) [<ffff82c480163321>] free_domain_pirqs+0x57/0x83 (XEN) [<ffff82c48015642a>] arch_domain_destroy+0x30/0x2e3 (XEN) [<ffff82c480104c59>] complete_domain_destroy+0x6e/0x12a (XEN) [<ffff82c48012adfd>] rcu_process_callbacks+0x173/0x1e1 (XEN) [<ffff82c480123327>] __do_softirq+0x88/0x99 (XEN) [<ffff82c4801233a2>] do_softirq+0x6a/0x7a* possible Xen pirq leak at domain shutdown
If a guest doesn't support pci hot-unplug (or a malicious guest), it won't do anything in response to the acpi SCI interrupt we send when the domain is destroyed, thereforeunregister_real_devicewill never be called in qemu and we might be leaking MSIs in the Xen (to be verified).
http://xen.1045712.n5.nabble.com/template/NamlServlet.jtp?macro=print_post&node=3369367* Xen warns about MSIs when assigning a PCI device to a guest
also known as "Xen complains msi error when startup" At startup Xen prints multiple:
(XEN) Xen WARN at msi.c:635
(XEN) Xen WARN at msi.c:648
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1732* PCI hot-unplug causes a guest crash
also know as "fail to detach NIC from guest"
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1736* multiple PCI devices passthrough to PV guests or HVM guests with stubdoms is broken with the xl toolstack
Cannot assign >1 PCI passthrough devices as domain creation time because libxl creates a bus for the first device and increments "num_devs" node in xenstore for each subsequent device but pciback cannot cope withnum_devschanging while the guest is not running to respond to the reconfiguration request. A fix would be to create the entire bus in a single cold-plug operation at start of day.- Stefano
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Stefano Stabellini
Hi all,
I went through the list of bugs affecting the latest Xen 4.1 RC and I made a list of what they seem to be the most serious.What is the status of these? I know you made some strides in fixing most if not all of them both in the hypervisor and Linux kernel.
we have fixed most of them, see below
Quoted 9 lines
Quoted 9 lines
All of them affect PCI passthrough and seem to be hypervisor/qemu-xen bugs apart from the last one that is a libxenlight/xl bug.
* VF passthrough does not work
Passing through a normal NIC seem to work but passing through a VF doesn't.
The device appears in the guest but it cannot exchange packets, the guest kernel version doesn't seem to matter.
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
From the qemu logs:
pci_msix_writel: Error: Can't update msix entry 0 since MSI-X is already function.It might be the same problem of the two following bug reports:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1709
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1742
This one is a linux kernel bug and is fixed by "set current_state to D0 in register_slot".
Quoted 8 lines
Quoted 8 lines
* Xen panic on guest shutdown with PCI Passthrough
http://xen.1045712.n5.nabble.com/Xen-panic-on-guest-shutdown-with-PCI-Passthrough-tt3371337.html#none
When the guest with a passthrough pci device is shut down, Xen panic on a NMI - MEMORY ERROR.
(XEN) Xen call trace:(XEN) [<ffff82c48015f032>] msi_set_mask_bit+0xea/0x121 (XEN) [<ffff82c48015f087>] mask_msi_irq+0xe/0x10 (XEN) [<ffff82c480162fb1>] __pirq_guest_unbind+0x298/0x2aa
Quoted 8 lines
Quoted 8 lines
(XEN) [<ffff82c48016315c>] unmap_domain_pirq+0x199/0x307 (XEN) [<ffff82c480163321>] free_domain_pirqs+0x57/0x83 (XEN) [<ffff82c48015642a>] arch_domain_destroy+0x30/0x2e3 (XEN) [<ffff82c480104c59>] complete_domain_destroy+0x6e/0x12a (XEN) [<ffff82c48012adfd>] rcu_process_callbacks+0x173/0x1e1 (XEN) [<ffff82c480123327>] __do_softirq+0x88/0x99 (XEN) [<ffff82c4801233a2>] do_softirq+0x6a/0x7a
This is a Xen bug (it should cope with NMIs instead of crashing) and is fixed by "NMI: continue in case of PCI SERR erros".
Quoted 7 lines
Quoted 7 lines
* possible Xen pirq leak at domain shutdown
If a guest doesn't support pci hot-unplug (or a malicious guest), it won't do anything in response to the acpi SCI interrupt we send when the domain is destroyed, thereforeunregister_real_devicewill never be called in qemu and we might be leaking MSIs in the Xen (to be verified).
http://xen.1045712.n5.nabble.com/template/NamlServlet.jtp?macro=print_post&node=3369367
I think we have verified that there is no pirq leak.
Quoted 6 lines
Quoted 6 lines
* Xen warns about MSIs when assigning a PCI device to a guest
also known as "Xen complains msi error when startup" At startup Xen prints multiple:
(XEN) Xen WARN at msi.c:635
(XEN) Xen WARN at msi.c:648
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1732
the warning is still there
Quoted 3 lines
Quoted 3 lines
* PCI hot-unplug causes a guest crash
also know as "fail to detach NIC from guest"
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1736
I cannot repro this bug, I think someone at Intel is working on it.
Quoted 8 lines
Quoted 8 lines
* multiple PCI devices passthrough to PV guests or HVM guests with stubdoms is broken with the xl toolstack
Cannot assign >1 PCI passthrough devices as domain creation time because libxl creates a bus for the first device and increments "num_devs" node in xenstore for each subsequent device but pciback cannot cope withnum_devschanging while the guest is not running to respond to the reconfiguration request. A fix would be to create the entire bus in a single cold-plug operation at start of day.
the problem still persists with stubdoms but IanJ fixed the PV passthrough bug, see "libxl: Multi-device passthrough coldplug: do not wait for unstarted guests".
Quoted 11 lines · Stefano Stabellini
Quoted 8 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Stefano Stabellini
Hi all,
I went through the list of bugs affecting the latest Xen 4.1 RC and I made a list of what they seem to be the most serious.What is the status of these? I know you made some strides in fixing most if not all of them both in the hypervisor and Linux kernel.
we have fixed most of them, see below
Indeed!
.. snip..
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
* PCI hot-unplug causes a guest crash
also know as "fail to detach NIC from guest"
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1736I cannot repro this bug, I think someone at Intel is working on it.
Ok, asked the Intel submitter to see if your assumptions are correct.