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

[Xen-changelog] [xen-3.3-testing] VT-d: correct kill hvm_timer



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245753424 -3600
# Node ID b3c9c8e6c64a337fef68d03ef7223798fe37658e
# Parent  d0e390faafe8c7f9691b467bbe5f32d758760a12
VT-d: correct kill hvm_timer

hvm_timer is created with the vector got from domain_irq_to_vector(),
accordingly it should use the same vector to kill the timer. The patch
corrects it in pci_clean_dpci_irqs().

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
xen-unstable changeset:   19815:b6612dd06218
xen-unstable date:        Tue Jun 23 11:26:22 2009 +0100
---
 xen/drivers/passthrough/pci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r d0e390faafe8 -r b3c9c8e6c64a xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c     Tue Jun 23 11:36:45 2009 +0100
+++ b/xen/drivers/passthrough/pci.c     Tue Jun 23 11:37:04 2009 +0100
@@ -173,7 +173,7 @@ static void pci_clean_dpci_irqs(struct d
                 continue;
 
             pirq_guest_unbind(d, i);
-            kill_timer(&hvm_irq_dpci->hvm_timer[irq_to_vector(i)]);
+            kill_timer(&hvm_irq_dpci->hvm_timer[domain_irq_to_vector(d, i)]);
 
             list_for_each_safe ( digl_list, tmp,
                                  &hvm_irq_dpci->mirq[i].digl_list )

_______________________________________________
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®.