From patchwork Mon Nov 19 10:21:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 199972 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 D3AC92C0098 for ; Mon, 19 Nov 2012 21:31:07 +1100 (EST) Received: from localhost ([::1]:41564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaOUw-0001Aj-Jl for incoming@patchwork.ozlabs.org; Mon, 19 Nov 2012 05:22:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaOUO-0008BV-8U for qemu-devel@nongnu.org; Mon, 19 Nov 2012 05:22:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaOUK-0005Z5-Gq for qemu-devel@nongnu.org; Mon, 19 Nov 2012 05:22:03 -0500 Received: from mail-da0-f45.google.com ([209.85.210.45]:50848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaOUK-0005Wp-AR for qemu-devel@nongnu.org; Mon, 19 Nov 2012 05:22:00 -0500 Received: by mail-da0-f45.google.com with SMTP id n15so2079937dad.4 for ; Mon, 19 Nov 2012 02:22:00 -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=0PfYe8TIt7KI9uw6e74l3Fe+w8xctude3OOiAe+OGE0=; b=DWs/yO5NEA3T9R7ZhdGsHn5gpiuhULodhIum8ugt61mM0OepNGs4lzo9Oet6FvUh7A R6ISEOMayDuqhY6IgINL9hTC7M6Uyhq0kw9fEVE3tZqCSC62lqE63hXzTtg678xS6c3V nzpNLnwNDtpo7oMbIWg1r+5T9qMNVcXPPPEH2umvRi5fGFCO5l+ZO0b9eM3qdGjkhfPG kjU0wjFw4KvPakPBmnlYRpLiES5i6NWNG/IOb2KRsCyWM9cZV4De8LJMyS++xEK56ckH tASsrrkOl73COR3pBW0S5jy3iOqn+NELD1ALVrJdvQm1+ozQ4y3MKKYaS0Y4jTlxsDzL dmlA== Received: by 10.68.241.232 with SMTP id wl8mr31616540pbc.144.1353320519878; Mon, 19 Nov 2012 02:21:59 -0800 (PST) Received: from yakj.usersys.redhat.com (93-34-169-1.ip50.fastwebnet.it. [93.34.169.1]) by mx.google.com with ESMTPS id ku7sm6011857pbc.0.2012.11.19.02.21.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 02:21:58 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 19 Nov 2012 11:21:32 +0100 Message-Id: <1353320494-15033-4-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1353320494-15033-1-git-send-email-pbonzini@redhat.com> References: <1353320494-15033-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.45 Cc: kraxel@redhat.com, mst@redhat.com Subject: [Qemu-devel] [PATCH 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 file modificati, 3 inserzioni(+). 1 rimozione(-) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index 445b293..28dcf90 100644 --- a/docs/specs/pci-ids.txt +++ b/docs/specs/pci-ids.txt @@ -20,6 +20,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