x86/p2m-pt: use pre-calculated IOMMU flags
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:41:24 +0000 (13:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:41:24 +0000 (13:41 +0200)
commitedb9531263e1698343ef3f8743d23b8044979341
tree31c960f0a25d35da1adc71a0fb75d7f096c3b3a9
parent660fd65d5578a95ec5eac522128bba23325179eb
x86/p2m-pt: use pre-calculated IOMMU flags

... instead of recalculating them.

At once clean up formatting of the touched code and drop a stray loop
local variable shadowing a function scope one.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/p2m-pt.c