Re: [Xen-devel] [PATCH 3/3] VT-d/ATS: tidy device_in_domain()

2019-09-04 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, September 4, 2019 9:28 PM > > Use appropriate types. Drop unnecessary casts. Check for failures which > can (at least in theory because of non-obvious breakage elsewhere) > occur, instead of ones which really can't (map_domain_page(

[Xen-devel] [PATCH 3/3] VT-d/ATS: tidy device_in_domain()

2019-09-04 Thread Jan Beulich
Use appropriate types. Drop unnecessary casts. Check for failures which can (at least in theory because of non-obvious breakage elsewhere) occur, instead of ones which really can't (map_domain_page() won't return NULL). Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/vtd/x86/ats.c +++ b