From c9318689a6be0d1f59258f1cad3b86ff9b77d4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 30 Jan 2016 01:53:26 +0100 Subject: [PATCH] Log error code of EVTCHNOP_bind_pirq failure Ease debugging of PCI passthrough problems. --- patches.xen/irq-bind-debug-log.patch | 13 +++++++++++++ series.conf | 1 + 2 files changed, 14 insertions(+) create mode 100644 patches.xen/irq-bind-debug-log.patch diff --git a/patches.xen/irq-bind-debug-log.patch b/patches.xen/irq-bind-debug-log.patch new file mode 100644 index 0000000..ad1910d --- /dev/null +++ b/patches.xen/irq-bind-debug-log.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c +index 524c221..acb29f4 100644 +--- a/drivers/xen/events/events_base.c ++++ b/drivers/xen/events/events_base.c +@@ -519,7 +519,7 @@ static unsigned int __startup_pirq(unsigned int irq) + BIND_PIRQ__WILL_SHARE : 0; + rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_pirq, &bind_pirq); + if (rc != 0) { +- pr_warn("Failed to obtain physical IRQ %d\n", irq); ++ pr_warn("Failed to obtain physical IRQ %d (error %d)\n", irq, rc); + return 0; + } + evtchn = bind_pirq.port; diff --git a/series.conf b/series.conf index 70175d9..99c7e61 100644 --- a/series.conf +++ b/series.conf @@ -4,6 +4,7 @@ patches.xen/0001-Revert-xen-xenbus-Avoid-synchronous-wait-on-XenBus-s.patch patches.xen/0001-xen-fix-deadlock-on-proc-xen-xenbus-access.patch patches.xen/xen-netfront-detach-crash.patch patches.xen/0001-mce-hide-EBUSY-initialization-error-on-Xen.patch +patches.xen/irq-bind-debug-log.patch # Additional features #patches.xen/pvops-0100-usb-xen-pvusb-driver.patch