From patchwork Fri Apr 24 11:17:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Koukousoulas X-Patchwork-Id: 19784 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3OBHk6m021562 for ; Fri, 24 Apr 2009 11:17:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750895AbZDXLRo (ORCPT ); Fri, 24 Apr 2009 07:17:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750934AbZDXLRo (ORCPT ); Fri, 24 Apr 2009 07:17:44 -0400 Received: from mail-fx0-f158.google.com ([209.85.220.158]:52749 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbZDXLRn (ORCPT ); Fri, 24 Apr 2009 07:17:43 -0400 Received: by fxm2 with SMTP id 2so1039378fxm.37 for ; Fri, 24 Apr 2009 04:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=T1lsuIv+WNQBLKg6O9Og2Bsdb+IEQC0/opneywlzfnQ=; b=BH4ErltZg6LjOsYieBgNkmsATt78bli3GW+vz1aYeFMjCXriIGtDP43+yc2YiGF749 wrjUUnL1t3ljJT79bKWR2ybEEYbZb6rsC5/vUaKAprCj6QkOJLuIfbtfTFwnVrjfd7Vv eZ09xoI33zVWhQnXCLkkhhDysfcMzEgCgzrIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=aBBEnp7EkdODV4EbU/xvAG2M+9TXfodp2Hv6KWpoj0FH1xoIWh24YXL2lElDiwtFcj kIH1M2AT9VuZ/m8wR6oWiKkjO6t2OTAeBP05HP0KGgmYHjyd9CEccXdyaxfDRAYUZEVM dYVcVKembW2467npfGnaSsux6ME5koch6Ncx8= Received: by 10.103.241.5 with SMTP id t5mr1170534mur.127.1240571862064; Fri, 24 Apr 2009 04:17:42 -0700 (PDT) Received: from localhost (athedsl-4554979.home.otenet.gr [94.70.76.235]) by mx.google.com with ESMTPS id t10sm2641849muh.0.2009.04.24.04.17.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Apr 2009 04:17:41 -0700 (PDT) From: Pantelis Koukousoulas To: kvm@vger.kernel.org Cc: Pantelis Koukousoulas Subject: [PATCH] Assign the correct pci id range to virtio_pci Date: Fri, 24 Apr 2009 14:17:40 +0300 Message-Id: <1240571860-13832-1-git-send-email-pktoss@gmail.com> X-Mailer: git-send-email 1.5.6.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org According to the file pci-ids.txt in qemu sources, the range of PCI device IDs assigned to virtio_pci is 0x1000 to 0x10ff, with a few subranges that have different rules regarding who can get an ID there and how. Nevertheless, the full range should be assigned to the generic virtio_pci driver, so that all corresponding devices, including the experimental/unreleased ones "just work". --- drivers/virtio/virtio_pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 330aacb..db3f3b5 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -325,8 +325,8 @@ static int __devinit virtio_pci_probe(struct pci_dev *pci_dev, struct virtio_pci_device *vp_dev; int err; - /* We only own devices >= 0x1000 and <= 0x103f: leave the rest. */ - if (pci_dev->device < 0x1000 || pci_dev->device > 0x103f) + /* We only own devices >= 0x1000 and <= 0x10ff: leave the rest. */ + if (pci_dev->device < 0x1000 || pci_dev->device > 0x10ff) return -ENODEV; if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) {