From 1c6f32e9fe7fe1fef00995673c3eeb88eeded538 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 6 Aug 2008 09:40:50 +0100 Subject: [PATCH] vtd: Tiny cleanups. Signed-off-by: Dexuan Cui --- xen/drivers/passthrough/vtd/iommu.c | 6 ++++-- xen/include/xen/iommu.h | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index 1895cb6081..d53140b7b0 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1270,13 +1270,15 @@ static int domain_context_mapping(struct domain *domain, u8 bus, u8 devfn) ob = bus; odf = devfn; if ( !find_pcie_endpoint(&bus, &devfn, &secbus) ) { - gdprintk(XENLOG_WARNING VTDPREFIX, "domain_context_mapping:invalid"); + gdprintk(XENLOG_WARNING VTDPREFIX, + "domain_context_mapping:invalid\n"); break; } if ( ob != bus || odf != devfn ) gdprintk(XENLOG_INFO VTDPREFIX, - "domain_context_mapping:map: bdf = %x:%x.%x -> %x:%x.%x\n", + "domain_context_mapping:map: " + "bdf = %x:%x.%x -> %x:%x.%x\n", ob, PCI_SLOT(odf), PCI_FUNC(odf), bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index 71204d56de..d5c39b99ed 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -33,7 +33,6 @@ extern int iommu_pv_enabled; extern int force_iommu; #define domain_hvm_iommu(d) (&d->arch.hvm_domain.hvm_iommu) -#define domain_vmx_iommu(d) (&d->arch.hvm_domain.hvm_iommu.vmx_iommu) #define MAX_IOMMUS 32 -- 2.30.2