|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86, hvm: fix get msix entry error
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1246877882 -3600
# Node ID d768628c28a4b7de4a4c017fb39d1d17b65d011b
# Parent 0ab211e699e65310c10d90c29b29c8c1e083a4aa
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/arch/x86/hvm/vmsi.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 0ab211e699e6 -r d768628c28a4 xen/arch/x86/hvm/vmsi.c
--- a/xen/arch/x86/hvm/vmsi.c Mon Jul 06 11:57:18 2009 +0100
+++ b/xen/arch/x86/hvm/vmsi.c Mon Jul 06 11:58:02 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86, hvm: fix get msix entry error,
Xen patchbot-unstable <=
|
|
|
|
|