Mailing List Archive

[qemu-xen-unstable] passthrough: Fix MSI-x devices assignment.
commit 2621a102cd74cd6691bed30f638581639fcb141d
Author: Ian Jackson <ian.jackson@eu.citrix.com>
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@xiantao.zhang@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@lists.xensource.com
http://lists.xensource.com/xen-changelog