Re: [Xen-devel] [PATCH v5 03/10] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-26 Thread Jan Beulich
>>> "Xu, Quan" 05/26/16 3:42 AM >>> >On May 26, 2016 12:02 AM, Jan Beulich wrote: >> >>> On 25.05.16 at 17:34, wrote: >> > On May 23, 2016 10:19 PM, Jan Beulich wrote: >> >> >>> On 18.05.16 at 10:08,

Re: [Xen-devel] [PATCH v5 03/10] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-25 Thread Xu, Quan
On May 26, 2016 12:02 AM, Jan Beulich wrote: > >>> On 25.05.16 at 17:34, wrote: > > On May 23, 2016 10:19 PM, Jan Beulich wrote: > >> >>> On 18.05.16 at 10:08, wrote: > >> > +

Re: [Xen-devel] [PATCH v5 03/10] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-25 Thread Jan Beulich
>>> On 25.05.16 at 17:34, wrote: > On May 23, 2016 10:19 PM, Jan Beulich wrote: >> >>> On 18.05.16 at 10:08, wrote: >> > +unsigned long type, >> > +int

Re: [Xen-devel] [PATCH v5 03/10] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-25 Thread Xu, Quan
On May 23, 2016 10:19 PM, Jan Beulich wrote: > >>> On 18.05.16 at 10:08, wrote: > > > --- a/xen/arch/x86/mm.c > > +++ b/xen/arch/x86/mm.c > > @@ -2463,11 +2463,12 @@ static int __put_page_type(struct page_info > > *page, } > > > > > > -static int

Re: [Xen-devel] [PATCH v5 03/10] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-23 Thread Jan Beulich
>>> On 18.05.16 at 10:08, wrote: > --- a/xen/arch/x86/mm.c > +++ b/xen/arch/x86/mm.c > @@ -2463,11 +2463,12 @@ static int __put_page_type(struct page_info *page, > } > > > -static int __get_page_type(struct page_info *page, unsigned long type, > -

[Xen-devel] [PATCH v5 03/10] IOMMU/MMU: enhance the call trees of IOMMU unmapping and mapping

2016-05-18 Thread 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 domain, we do things