From patchwork Wed Dec 2 12:04:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 40015 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 29174B7BE9 for ; Thu, 3 Dec 2009 00:18:52 +1100 (EST) Received: from localhost ([127.0.0.1]:60122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFp6X-0006sC-8T for incoming@patchwork.ozlabs.org; Wed, 02 Dec 2009 08:18:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFnxm-0004O9-Un for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:05:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFnxh-0004Lz-I2 for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:05:42 -0500 Received: from [199.232.76.173] (port=42916 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFnxg-0004La-GG for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:05:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11657) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFnxg-0004CB-2I for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:05:36 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB2C5Zan019280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 2 Dec 2009 07:05:35 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB2C5IL8029769; Wed, 2 Dec 2009 07:05:34 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 2 Dec 2009 13:04:08 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: mst@redhat.com Subject: [Qemu-devel] [PATCH 10/41] 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 c67cc70..20b1b28 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -228,7 +228,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 */