From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kenni Lund Subject: Re: PCI Passthrough, error: The driver 'pci-stub' is occupying your device 0000:08:06.2 Date: Tue, 8 Feb 2011 10:59:51 +0100 Message-ID: References: <20110207132641.GD2665@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: "Daniel P. Berrange" , kvm@vger.kernel.org To: James Neave Return-path: Received: from asmtp.unoeuro.com ([195.41.131.37]:36386 "EHLO asmtp.unoeuro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752450Ab1BHKIW (ORCPT ); Tue, 8 Feb 2011 05:08:22 -0500 Received: from localhost (localhost [127.0.0.1]) by asmtp.unoeuro.com (Postfix) with ESMTP id 45D6C36DD63 for ; Tue, 8 Feb 2011 11:00:12 +0100 (CET) Received: from asmtp.unoeuro.com ([127.0.0.1]) by localhost (asmtp.unoeuro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZzqDqgrpbc9E for ; Tue, 8 Feb 2011 11:00:12 +0100 (CET) Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by asmtp.unoeuro.com (Postfix) with ESMTP id 124A936DD57 for ; Tue, 8 Feb 2011 11:00:12 +0100 (CET) Received: by bwz15 with SMTP id 15so5830063bwz.19 for ; Tue, 08 Feb 2011 02:00:11 -0800 (PST) In-Reply-To: <20110207132641.GD2665@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 2011/2/7 Daniel P. Berrange : > On Sat, Feb 05, 2011 at 04:34:01PM +0000, James Neave wrote: >> Hi, >> >> I'm trying to pass a NOVA-T-500 TV Tuner card through to a gust VM. >> I'm getting the error "The driver 'pci-stub' is occupying your device >> 0000:08:06.2" > > This is a rather misleading error message. It is *expected* that > pci-stub will occupy the device. Unfortunately the rest of the > error messages QEMU is printing aren't much help either, but > ultimately something is returning -EBUSY in the PCI device assign > step James, as far as I remember, I had the same issue when I set up my system. Looking at my current (working) boot-script, apparently I've added a 4th line which removes the pci-stub again as a workaround....and it works: echo "4444 0016" > /sys/bus/pci/drivers/pci-stub/new_id echo "0000:04:08.0" > /sys/bus/pci/drivers/ivtv/unbind echo "0000:04:08.0" > /sys/bus/pci/drivers/pci-stub/bind echo "4444 0016" > /sys/bus/pci/drivers/pci-stub/remove_id Best regards Kenni