From: Wei Wang2 Subject: [PATCH] MSI: Handle MSI EOI for both vtd and amd iommu Date: Wed, 11 Jun 2008 16:48:06 +0200 Message-ID: <1213195686.26611.96.camel@gran.amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-vw2iLg1uxglwtlpWnRLi" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: keir.fraser@eu.citrix.com List-Id: xen-devel@lists.xenproject.org --=-vw2iLg1uxglwtlpWnRLi Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Let MSI EOI be handled for both vtd and amd iommu systems. Wei Signed-off-by: Wei Wang --=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=C3=A4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=C3=A4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=C3=A4ftsf=C3=BChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy=20 --=-vw2iLg1uxglwtlpWnRLi Content-Disposition: attachment; filename="eoi_msi.patch" Content-Type: text/x-patch; name="eoi_msi.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit diff -r 267152c91a40 xen/arch/x86/hvm/vlapic.c --- a/xen/arch/x86/hvm/vlapic.c Wed Jun 11 16:31:12 2008 +0200 +++ b/xen/arch/x86/hvm/vlapic.c Wed Jun 11 16:31:53 2008 +0200 @@ -414,7 +414,7 @@ void vlapic_EOI_set(struct vlapic *vlapi if ( vlapic_test_and_clear_vector(vector, &vlapic->regs->data[APIC_TMR]) ) vioapic_update_EOI(vlapic_domain(vlapic), vector); - if ( vtd_enabled ) + if ( iommu_enabled ) hvm_dpci_msi_eoi(current->domain, vector); } diff -r 267152c91a40 xen/drivers/passthrough/io.c --- a/xen/drivers/passthrough/io.c Wed Jun 11 16:31:12 2008 +0200 +++ b/xen/drivers/passthrough/io.c Wed Jun 11 16:31:53 2008 +0200 @@ -216,7 +216,7 @@ void hvm_dpci_msi_eoi(struct domain *d, struct hvm_irq_dpci *hvm_irq_dpci = d->arch.hvm_domain.irq.dpci; int pirq; - if ( !vtd_enabled || (hvm_irq_dpci == NULL) ) + if ( !iommu_enabled || (hvm_irq_dpci == NULL) ) return; pirq = hvm_irq_dpci->msi_gvec_pirq[vector]; --=-vw2iLg1uxglwtlpWnRLi Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-vw2iLg1uxglwtlpWnRLi--