From patchwork Thu Dec 13 09:19:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 205791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5560B2C0092 for ; Thu, 13 Dec 2012 21:06:16 +1100 (EST) Received: from localhost ([::1]:48918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4y2-0005Ox-65 for incoming@patchwork.ozlabs.org; Thu, 13 Dec 2012 04:20:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4xU-00040w-4f for qemu-devel@nongnu.org; Thu, 13 Dec 2012 04:20:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tj4xP-0003y5-Sy for qemu-devel@nongnu.org; Thu, 13 Dec 2012 04:19:59 -0500 Received: from mail-ia0-f173.google.com ([209.85.210.173]:49490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4xP-0003xw-O0 for qemu-devel@nongnu.org; Thu, 13 Dec 2012 04:19:55 -0500 Received: by mail-ia0-f173.google.com with SMTP id w21so1788832iac.4 for ; Thu, 13 Dec 2012 01:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=+GGeiAw4Bpq/OQp3+R36UINELr840G4jEbFFcB2+W0M=; b=wZDEsErKKrhbBpUY11HycJwlzb3G8/pTBohMIQfo9clbniD2rFRm31ePCGbT2liini s1WKtGB4cRry9IM5q+vpx3XX7/CCD8aqAm7uwHOEvndHxz8D2QSavADjuGKjtW+gmmS/ 8h2LSiOjQUOrSFCgg+bZ32NIj8hcJKmDN0MCTr4fLc9JO9EPog21tbNcXyS9/eBvczXc HUfkcXMzIgu10JYUqwO/DverSjHVdNYREZQSgAMNRcY9qgNjRB3IFQIdSXoDJRWPZQBY qPrGeqTdm6dG8hoVSyfxLdafh6t57xUGCrTkZlXsbQlwjHrry0Yv+jPxXunm5eWbQBnU wp4w== Received: by 10.50.152.194 with SMTP id va2mr1013540igb.25.1355390395227; Thu, 13 Dec 2012 01:19:55 -0800 (PST) Received: from yakj.usersys.redhat.com (93-34-219-150.ip51.fastwebnet.it. [93.34.219.150]) by mx.google.com with ESMTPS id px5sm3925141igc.0.2012.12.13.01.19.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 01:19:53 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2012 10:19:36 +0100 Message-Id: <1355390378-16692-4-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.0.2 In-Reply-To: <1355390378-16692-1-git-send-email-pbonzini@redhat.com> References: <1355390378-16692-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.173 Cc: mst@redhat.com Subject: [Qemu-devel] [PATCH v2 3/5] virtio-9p: use symbolic constant, add to pci-ids.txt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Paolo Bonzini --- docs/specs/pci-ids.txt | 1 + hw/9pfs/virtio-9p-device.c | 2 +- hw/pci.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index df2527f..2d5329a 100644 --- a/docs/specs/pci-ids.txt +++ b/docs/specs/pci-ids.txt @@ -21,6 +21,7 @@ maintained as part of the virtio specification. 1af4:1003 console device 1af4:1004 SCSI host bus adapter device 1af4:1005 entropy generator device +1af4:1009 9p filesystem device 1af4:10f0 Available for experimental usage without registration. Must get to official ID when the code leaves the test lab (i.e. when seeking diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index b8220ab..e338c46 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -170,7 +170,7 @@ static void virtio_9p_class_init(ObjectClass *klass, void *data) k->init = virtio_9p_init_pci; k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET; - k->device_id = 0x1009; + k->device_id = PCI_DEVICE_ID_VIRTIO_9P; k->revision = VIRTIO_PCI_ABI_VERSION; k->class_id = 0x2; dc->props = virtio_9p_properties; diff --git a/hw/pci.h b/hw/pci.h index 4da0c2a..0719521 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -77,6 +77,7 @@ #define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003 #define PCI_DEVICE_ID_VIRTIO_SCSI 0x1004 #define PCI_DEVICE_ID_VIRTIO_RNG 0x1005 +#define PCI_DEVICE_ID_VIRTIO_9P 0x1009 #define FMT_PCIBUS PRIx64