AMD/IOMMU: allow callers to request allocate_buffer() to skip its memset()
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 07:51:12 +0000 (09:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 07:51:12 +0000 (09:51 +0200)
commit110d762e54b3efc9b26efc62fa35f306d1adeba9
tree605f87f06b22d9286a74197fffd05459417b1d33
parentfd345376a5421827dc2d1beaa8e361b8a7f54540
AMD/IOMMU: allow callers to request allocate_buffer() to skip its memset()

The command ring buffer doesn't need clearing up front in any event.
Subsequently we'll also want to avoid clearing the device tables.

While playing with functions signatures replace undue use of fixed width
types at the same time, and extend this to deallocate_buffer() as well.

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