summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-02-15 08:51:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-23 13:59:17 +0100
commitc5b81504415eeee141036834eb4d756db4f8105a (patch)
tree9b7202114c9587154532403f644059fbd05e2228 /include
parenta3c335bbc0ec0b56975a82d4c29c95279631e9bf (diff)
downloadlinux-stable-c5b81504415eeee141036834eb4d756db4f8105a.tar.gz
linux-stable-c5b81504415eeee141036834eb4d756db4f8105a.tar.bz2
linux-stable-c5b81504415eeee141036834eb4d756db4f8105a.zip
Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages()
commit dbe5283605b3bc12ca45def09cc721a0a5c853a2 upstream. We may not skip setting the field in the unmap structure when GNTMAP_device_map is in use - such an unmap would fail to release the respective resources (a page ref in the hypervisor). Otoh the field doesn't need setting at all when GNTMAP_device_map is not in use. To record the value for unmapping, we also better don't use our local p2m: In particular after a subsequent change it may not have got updated for all the batch elements. Instead it can simply be taken from the respective map's results. We can additionally avoid playing this game altogether for the kernel part of the mappings in (x86) PV mode. This is part of XSA-361. Signed-off-by: Jan Beulich <jbeulich@suse.com> Cc: stable@vger.kernel.org Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions