From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Prevent IRQ sharing for PCI passthrough Date: Thu, 13 May 2010 20:21:56 +0300 Message-ID: <4BEC3534.7060707@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Chris Wright To: Dirk Gouders Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20871 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070Ab0EMRWJ (ORCPT ); Thu, 13 May 2010 13:22:09 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 05/13/2010 07:57 PM, Dirk Gouders wrote: > Hello List, > > please don't shout at me if the answer to my question is too obvious, > We won't shout at you. > but in the German Linux Magazine I read an article about passing PCI > devices to KVM guests and the authors said that "shared interrupt > funcionality has to be disabled" which I read as "it is possible to > disable shared interrupt functionality". > It would be more correct to say "no go with shared host interrupts". > I currently have the problem with a PCI ISDN card that is not MSI > capable and even if I change the PCI slot and disable all other slots, > USB etc. in the BIOS, that card still shares its interrupt with three > other devices. > > Even after extensive searching/reading, I am not sure if it possible to > prevent a PCI card from sharing an interrupt with other devices or > probably manually assign a free interrupt to that card via some kernel > parameter and would be glad if someone could give me an answer to that > question. > There is an ACPI _SRS method which can be used to move interrupts around. However Linux doesn't appear to expose it. Even if it did, the interrupt may be shared on the motherboard, in which case nothing would help (though you might be able to share it with unused devices). Chris? -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.