]> xenbits.xensource.com Git - xen.git/commit
VT-d: correct a comment and remove an useless if() statement
authorChao Gao <chao.gao@intel.com>
Thu, 13 Apr 2017 15:34:29 +0000 (17:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Apr 2017 15:34:29 +0000 (17:34 +0200)
commitdc0e69aa41e47c1d23ca6ed939272aa11c476f12
tree31507f3ea7e810478b54d2746da59796ae8ef6ce
parentb0ad468512df579d71650acbbcd65ef9307c3f45
VT-d: correct a comment and remove an useless if() statement

Fix two flaws in the patch (93358e8e VT-d: introduce update_irte to update
irte safely):
1. Expand a comment in update_irte() to make it clear that VT-d hardware
doesn't update IRTE and software can't update IRTE behind us since we hold
iremap_lock.
2. remove an useless if() statement

Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
xen/drivers/passthrough/vtd/intremap.c