[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] x86, hvm: fix get msix entry error
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1246883266 -3600 # Node ID 296c826ff6579b48a2855124e1bd246b09385c3e # Parent bc4e848081bcf8759ee5f496f068329be7eb1561 x86, hvm: fix get msix entry error There is a mistake to get the msix entry number. It should be divide instead of modulus. Signed-off-by: Yang Zhang <yang.zhang@xxxxxxxxx> Signed-off-by: Qing He <qing.he@xxxxxxxxx> xen-unstable changeset: 19902:d768628c28a4 xen-unstable date: Mon Jul 06 11:58:02 2009 +0100 --- xen/arch/x86/hvm/vmsi.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r bc4e848081bc -r 296c826ff657 xen/arch/x86/hvm/vmsi.c --- a/xen/arch/x86/hvm/vmsi.c Mon Jul 06 13:27:26 2009 +0100 +++ b/xen/arch/x86/hvm/vmsi.c Mon Jul 06 13:27:46 2009 +0100 @@ -290,7 +290,7 @@ static int msixtbl_write(struct vcpu *v, goto out; entry = msixtbl_find_entry(v, address); - nr_entry = (address - entry->gtable) % PCI_MSIX_ENTRY_SIZE; + nr_entry = (address - entry->gtable) / PCI_MSIX_ENTRY_SIZE; offset = address & (PCI_MSIX_ENTRY_SIZE - 1); if ( offset != PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |