From: Sander Eikelenboom Subject: Re: [Xen-unstable] regression in pci passthrough to HVM guests due to commit 568da4f8c43d2e5b614964c6aefd768de3e3af14 "pt-irq fixes and improvements". Date: Tue, 5 Aug 2014 10:33:21 +0200 Message-ID: <1639864481.20140805103321@eikelenboom.it> References: <482403364.20140804142907@eikelenboom.it> <53E0B242020000780002953E@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XEaBT-0004nD-1C for xen-devel@lists.xenproject.org; Tue, 05 Aug 2014 08:33:27 +0000 In-Reply-To: <53E0B242020000780002953E@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: andrew.cooper3@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Tuesday, August 5, 2014, 10:30:26 AM, you wrote: >>>> On 04.08.14 at 14:29, wrote: >> I'm experiencing a regression in pci passthrough to HVM guests due to commit >> >> 568da4f8c43d2e5b614964c6aefd768de3e3af14 "pt-irq fixes and improvements". >> >> Before it used to be fine to shutdown and restart guests with the same pci >> devices passed through. After this commit it doesn't, the device is passed >> through and visible but doesn't function properly (for instance when passing >> >> through a USB card, a "lsusb" fails. >> >> From the logs i see there is (at least) a problem with unmapping the irqs at >> the >> shutdown of the guest, after this commit it gives: >> >> (XEN) [2014-08-04 11:15:48.783] irq.c:2119: dom1: forcing unbind of pirq 87 >> (XEN) [2014-08-04 11:15:48.783] irq.c:2119: dom1: forcing unbind of pirq 86 >> (XEN) [2014-08-04 11:15:48.783] irq.c:2119: dom1: forcing unbind of pirq 85 >> (XEN) [2014-08-04 11:15:48.783] irq.c:2119: dom1: forcing unbind of pirq 84 > And I can see what went wrong: The shortcut to do nothing for > PT_IRQ_TYPE_MSI was wrong, albeit I'm confused that you saw > this (also) with pci_msitranslate=1 - the hypervisor log you sent > suggests it's being ignored (or at least doesn't lead to > PT_IRQ_TYPE_MSI_TRANSLATE being used), or else there should > have been at least a "d1: unbind: ..." message. Could be that i captured the logs while trying out the "pci_msitranslate=0" (to see if it made any difference). > I'm testing a fix... > Jan