28 lines
967 B
Diff
28 lines
967 B
Diff
From d4a2de0378cb95512e61a6f6af542b92ec4fda76 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
|
|
<marmarek@invisiblethingslab.com>
|
|
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.
|
|
---
|
|
drivers/xen/events/events_base.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
|
|
index 117e76b2f939..34f380be2b34 100644
|
|
--- a/drivers/xen/events/events_base.c
|
|
+++ b/drivers/xen/events/events_base.c
|
|
@@ -521,7 +521,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;
|
|
--
|
|
2.20.1
|
|
|