]> xenbits.xensource.com Git - xen.git/commit
vtd: don't assume addresses are aligned in sync_cache
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 7 Jul 2020 12:39:05 +0000 (14:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2020 12:39:05 +0000 (14:39 +0200)
commitb6d9398144f21718d25daaf8d72669a75592abc5
treedc4f69fb5785ea33563ed72b6845a24aa7fc8da2
parent91526b460e5009fc56edbd6809e66c327281faba
vtd: don't assume addresses are aligned in sync_cache

Current code in sync_cache assume that the address passed in is
aligned to a cache line size. Fix the code to support passing in
arbitrary addresses not necessarily aligned to a cache line size.

This is part of XSA-321.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/iommu.c