Patchwork [1/9] qemu/pci: document msix_entries_nr field

login
register
mail settings
Submitter Juan Quintela
Date March 16, 2010, 6:51 p.m.
Message ID <35984cf81b3f1bd99d445918c7eb393b69587883.1268765204.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/47890/
State New
Headers show

Comments

Juan Quintela - March 16, 2010, 6:51 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 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 */