From patchwork Tue Apr 12 16:14:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 701211 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3CGFlXv019289 for ; Tue, 12 Apr 2011 16:15:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758101Ab1DLQPn (ORCPT ); Tue, 12 Apr 2011 12:15:43 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:55250 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758065Ab1DLQPn (ORCPT ); Tue, 12 Apr 2011 12:15:43 -0400 Received: by pxi2 with SMTP id 2so3604595pxi.10 for ; Tue, 12 Apr 2011 09:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=p5zdnQBEMEHxC6LGziWvITlO/dznf/qw+yOA4L7NayA=; b=Vju6kawHR4v3Zly0n5uZ2aoPNxcBJQK7WGpJwJykIHnma9PXkRMiITRshPV3b67xJr xfN3BP6Yhb194vRPGUXYju/bIbFyu5ugCjaFw6K/rtI4qs7KZ91j2ajcUZWNCUi45j8b FhZTFxDHRAyky5agv/Iqinj5iB9xJTN3eRd9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=ekivq0QW7e87wIHf4IPlnC9SElWocXbqZrELTs5YZAPwg8tHzYvpWA/73IeljvZk6w 3hl+wzor7TVottF1ckPD8GZnN7DM2y548ueaDHll7ZbfyPSj9obj/jlkStrA+yWFtrZu HTgFMAhN56CTZu+AgZO0o1ndwgICVZ9nty7ls= Received: by 10.142.208.12 with SMTP id f12mr952206wfg.92.1302624942578; Tue, 12 Apr 2011 09:15:42 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id z10sm9875137wfj.3.2011.04.12.09.15.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 09:15:40 -0700 (PDT) From: Asias He To: Pekka Enberg , Cyrill Gorcunov , Ingo Molnar Cc: kvm@vger.kernel.org, Asias He Subject: [PATCH 1/4] kvm tools: Fix virtio console pci class number and device id number Date: Wed, 13 Apr 2011 00:14:13 +0800 Message-Id: <1302624856-884-1-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.4.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 12 Apr 2011 16:15:49 +0000 (UTC) Make lscpi report correct device name Signed-off-by: Asias He --- tools/kvm/virtio-console.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/virtio-console.c b/tools/kvm/virtio-console.c index a140aea..9675090 100644 --- a/tools/kvm/virtio-console.c +++ b/tools/kvm/virtio-console.c @@ -212,7 +212,7 @@ static struct ioport_operations virtio_console_io_ops = { }; #define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4 -#define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1002 +#define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003 #define PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET 0x1af4 #define PCI_SUBSYSTEM_ID_VIRTIO_CONSOLE 0x0003 @@ -221,7 +221,7 @@ static struct pci_device_header virtio_console_pci_device = { .device_id = PCI_DEVICE_ID_VIRTIO_CONSOLE, .header_type = PCI_HEADER_TYPE_NORMAL, .revision_id = 0, - .class = (0x07 << 8) | (0x80 << 4) | (0x0 << 0), + .class = 0x078000, .subsys_vendor_id = PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET, .subsys_id = PCI_SUBSYSTEM_ID_VIRTIO_CONSOLE, .bar[0] = IOPORT_VIRTIO_CONSOLE | PCI_BASE_ADDRESS_SPACE_IO,