ia64/xen-unstable

changeset 19815:b6612dd06218

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@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 11:26:22 2009 +0100 (2009-06-23)
parents 20c0df018786
children 5f5112a7d2ff
files xen/drivers/passthrough/pci.c
line diff
     1.1 --- a/xen/drivers/passthrough/pci.c	Tue Jun 23 11:25:38 2009 +0100
     1.2 +++ b/xen/drivers/passthrough/pci.c	Tue Jun 23 11:26:22 2009 +0100
     1.3 @@ -216,7 +216,7 @@ static void pci_clean_dpci_irqs(struct d
     1.4                i = find_next_bit(hvm_irq_dpci->mapping, d->nr_pirqs, i + 1) )
     1.5          {
     1.6              pirq_guest_unbind(d, i);
     1.7 -            kill_timer(&hvm_irq_dpci->hvm_timer[irq_to_vector(i)]);
     1.8 +            kill_timer(&hvm_irq_dpci->hvm_timer[domain_irq_to_vector(d, i)]);
     1.9  
    1.10              list_for_each_safe ( digl_list, tmp,
    1.11                                   &hvm_irq_dpci->mirq[i].digl_list )