]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb-xen: ensure to issue well-formed XENMEM_exchange requests
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Sep 2021 10:45:49 +0000 (12:45 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 20 Sep 2021 15:01:07 +0000 (17:01 +0200)
commit65f863b074fed2c6b641a2b31d1e5ec9c0ab938e
tree931808fa66b39770c46f8facdb9e0195c0a682cf
parente74c4f2b74536b85cd9e3ac595c2fdc18e495766
swiotlb-xen: ensure to issue well-formed XENMEM_exchange requests

While the hypervisor hasn't been enforcing this, we would still better
avoid issuing requests with GFNs not aligned to the requested order.
Instead of altering the value also in the call to panic(), drop it
there for being static and hence easy to determine without being part
of the panic message.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/7b3998e3-1233-4e5a-89ec-d740e77eb166@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/swiotlb-xen.c