ia64/xen-unstable

changeset 17835:a0561bcf9333

MSI: Handle MSI EOI for amd systems
Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 11 16:38:02 2008 +0100 (2008-06-11)
parents 0331bfd8b5d2
children 1b29ad98cd87
files xen/arch/x86/hvm/vlapic.c xen/drivers/passthrough/io.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vlapic.c	Wed Jun 11 15:19:42 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/vlapic.c	Wed Jun 11 16:38:02 2008 +0100
     1.3 @@ -414,7 +414,7 @@ void vlapic_EOI_set(struct vlapic *vlapi
     1.4      if ( vlapic_test_and_clear_vector(vector, &vlapic->regs->data[APIC_TMR]) )
     1.5          vioapic_update_EOI(vlapic_domain(vlapic), vector);
     1.6  	
     1.7 -    if ( vtd_enabled )
     1.8 +    if ( iommu_enabled )
     1.9          hvm_dpci_msi_eoi(current->domain, vector);
    1.10  }
    1.11  
     2.1 --- a/xen/drivers/passthrough/io.c	Wed Jun 11 15:19:42 2008 +0100
     2.2 +++ b/xen/drivers/passthrough/io.c	Wed Jun 11 16:38:02 2008 +0100
     2.3 @@ -216,7 +216,7 @@ void hvm_dpci_msi_eoi(struct domain *d, 
     2.4      struct hvm_irq_dpci *hvm_irq_dpci = d->arch.hvm_domain.irq.dpci;
     2.5      int pirq;
     2.6  
     2.7 -    if ( !vtd_enabled || (hvm_irq_dpci == NULL) )
     2.8 +    if ( !iommu_enabled || (hvm_irq_dpci == NULL) )
     2.9         return;
    2.10  
    2.11      pirq = hvm_irq_dpci->msi_gvec_pirq[vector];