From patchwork Tue Mar 16 18:51:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 47890 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 07A82B7DA5 for ; Wed, 17 Mar 2010 05:57:29 +1100 (EST) Received: from localhost ([127.0.0.1]:56406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrbv2-0004YK-UD for incoming@patchwork.ozlabs.org; Tue, 16 Mar 2010 14:55:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nrbrb-0002A8-LH for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:35 -0400 Received: from [199.232.76.173] (port=42490 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrbra-00029Z-Ly for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:34 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrbrY-0000AV-TB for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1695) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NrbrY-00009y-4K for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:32 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2GIpSc3007765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Mar 2010 14:51:28 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2GIpPv8023231; Tue, 16 Mar 2010 14:51:27 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 16 Mar 2010 19:51:17 +0100 Message-Id: <35984cf81b3f1bd99d445918c7eb393b69587883.1268765204.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH 1/9] qemu/pci: document msix_entries_nr field X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Michael S. Tsirkin Document the fact that msix_entries_nr field caches a value from config space. Signed-off-by: Michael S. Tsirkin Signed-off-by: Juan Quintela --- hw/pci.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/pci.h b/hw/pci.h index 20c670e..7e668c5 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -160,7 +160,9 @@ struct PCIDevice { /* Offset of MSI-X capability in config space */ uint8_t msix_cap; - /* MSI-X entries */ + /* MSI-X entries. + * This value is also encoded in the read-only MSI-X Table Size register + * in config space. */ int msix_entries_nr; /* Space to store MSIX table */