Re: [Xen-devel] [Patch v6 02/11] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-06-02 Thread Jan Beulich
>>> On 02.06.16 at 08:00, wrote: > On June 01, 2016 6:05 PM, Jan Beulich wrote: >> >>> On 31.05.16 at 15:57, wrote: >> > @@ -680,11 +682,27 @@ p2m_pt_set_entry(struct p2m_domain *p2m, >> unsigned long gfn, mfn_t mfn, >> > } >> > else if ( iommu_pte_flags ) >> > for

Re: [Xen-devel] [Patch v6 02/11] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-06-01 Thread Xu, Quan
On June 01, 2016 6:05 PM, Jan Beulich wrote: > >>> On 31.05.16 at 15:57, wrote: > > --- a/xen/arch/x86/mm/p2m-pt.c > > +++ b/xen/arch/x86/mm/p2m-pt.c > > @@ -673,6 +673,8 @@ p2m_pt_set_entry(struct p2m_domain *p2m, > unsigned long gfn, mfn_t mfn, > > if ( iommu_enabled && need_iommu(p2m->dom

Re: [Xen-devel] [Patch v6 02/11] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-06-01 Thread Jan Beulich
>>> On 31.05.16 at 15:57, wrote: > --- a/xen/arch/x86/mm/p2m-pt.c > +++ b/xen/arch/x86/mm/p2m-pt.c > @@ -673,6 +673,8 @@ p2m_pt_set_entry(struct p2m_domain *p2m, unsigned long > gfn, mfn_t mfn, > if ( iommu_enabled && need_iommu(p2m->domain) && > (iommu_old_flags != iommu_pte_flags

[Xen-devel] [Patch v6 02/11] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-31 Thread Xu, Quan
From: Quan Xu When IOMMU mapping is failed, we issue a best effort rollback, stopping IOMMU mapping, unmapping the previous IOMMU maps and then reporting the error up to the call trees. When rollback is not feasible (in early initialization phase or trade-off of complexity) for the hardware domai