Patchwork [10/41] qemu/pci: document msix_entries_nr field

login
register
mail settings
Submitter Juan Quintela
Date Dec. 2, 2009, 12:04 p.m.
Message ID <f9f103e9bd850761f91ea350893ca050659162df.1259754427.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/40015/
State New
Headers show

Comments

Juan Quintela - Dec. 2, 2009, 12:04 p.m.
From: Michael S. Tsirkin <mst@redhat.com>

Document the fact that msix_entries_nr field caches
a value from config space.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/pci.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

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 */