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)
commit9074c79b62b6e0d91d7f716c6e4e9968eaf9e043
tree931808fa66b39770c46f8facdb9e0195c0a682cf
parentf28347cc66395e96712f5c2db0a302ee75bafce6
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