[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen-unstable] passthrough: Fix MSI-x devices assignment.



commit 2621a102cd74cd6691bed30f638581639fcb141d
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Mon Jan 4 17:49:06 2010 +0000

    passthrough: Fix MSI-x devices assignment.
    
    Currenlty, assigned MSI-x devices fails to
    work due to incorrect table_offset_adjust setting.
    The last field msix_entryof struct pt_msix_info is
    a variable-size array, so there shouldn't be any field
    after it, otherwise they maybe destroyed
    when access msix_entry.
    
    Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxxxxxx@intel.com>
---
 hw/pass-through.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/pass-through.h b/hw/pass-through.h
index dc06a4f..3156897 100644
--- a/hw/pass-through.h
+++ b/hw/pass-through.h
@@ -189,11 +189,11 @@ struct pt_msix_info {
     int bar_index;
     uint64_t table_base;
     uint32_t table_off;
+    uint32_t table_offset_adjust;      /* page align mmap */
     uint64_t mmio_base_addr;
     int mmio_index;
     void *phys_iomem_base;
     struct msix_entry_info msix_entry[0];
-    uint32_t table_offset_adjust;      /* page align mmap */
 };
 
 struct pt_pm_info {
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.