[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] IOMMU/MMU: Adjust top level functions for VT-d Device-TLB flush error.
>>> On 21.03.16 at 07:18, <kevin.tian@xxxxxxxxx> wrote: >> From: Jan Beulich [mailto:JBeulich@xxxxxxxx] >> Sent: Friday, March 18, 2016 5:49 PM >> >> >>> On 18.03.16 at 10:38, <dario.faggioli@xxxxxxxxxx> wrote: >> > On Fri, 2016-03-18 at 03:29 -0600, Jan Beulich wrote: >> >> > >> >> Not sure what exactly you're asking for: As said, we first need to >> >> settle on an abstract model. Do we want IOMMU mapping failures >> >> to be fatal to the domain (perhaps with the exception of the >> >> hardware one)? I think we do, and for the hardware domain we'd >> >> do things on a best effort basis (always erring on the side of >> >> unmapping). Which would probably mean crashing the domain >> >> could be centralized in iommu_{,un}map_page(). How much roll >> >> back would then still be needed in callers of these functions for >> >> the hardware domain's sake would need to be seen. >> >> >> >> So before you start coing, give others (namely but not limited to >> >> VT-d, AMD IOMMU, other x86, and x86/mm maintainers) a chance >> >> to voice differing opinions. >> >> >> > I'm nothing of the above but, >> >> Don't you fall under "but not limited to" ;-) ? >> >> > FWIW, the behavior Jan described >> > (crashing the domain for all domains but the hardware domain) was >> > indeed the intended plan for this series, as far as I understood from >> > talking to people and looking at previous email conversations and >> > submissions. >> >> That was taking only the flush timeout as an error source into account. >> Now that we see that the lack of error handling pre-exists, we can't >> just extend that intended model to also cover those other error >> reasons without at least having given people a chance to object. >> > > It makes sense so I'm OK with this behavior change. > > Then regarding to Quan's next version (if nobody disagrees), is it better > to first describe related callers and then reach agreement which caller > still needs error handling for hardware domain, before Quan starts to > change actual code (at least based on current discussion Quan didn't > have thorough understanding of such necessity yet)? Well, ideally we'd indeed reach agreement before starting to write or change code. However, in a case like this where error handling was just ignored in pre-existing code, I think the easiest way to get a complete picture is to see what places / paths need changing. I.e. here it may indeed be better to start from the patches. Whether that means posting the patches in patch form, or - prior to posting them - extracting what was learned into a textual description is a different aspect (and I'd leave it to Quan to pick the route more suitable to him). Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |