xen/x86: Replace mandatory barriers with compiler barriers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Aug 2017 17:07:27 +0000 (18:07 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Sep 2017 16:14:09 +0000 (17:14 +0100)
commitd0291f3391ab34b34092fcdc56abd8153cbe4579
tree87f47207fcc1de8a6505035ed5324ebe817016a3
parent4f191f6ef06dd65f98e9f97297b3b581415d4459
xen/x86: Replace mandatory barriers with compiler barriers

In this case, rmb() is being used for its compiler barrier property.  Replace
it with an explicit barrer() and comment, to avoid it becoming an unnecessary
lfence instruction (when rmb() gets fixed) or looking like an SMP issue.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_init.c