tools/libs: ROUNDUP() related adjustments
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Sep 2021 13:10:24 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Sep 2021 13:10:24 +0000 (15:10 +0200)
commit5325b3eaf6a9d8600bf9e9e7428b5c336fd43c84
tree1fb3a6e2024dcd805ab3f62053869fdc3ca7edb2
parent2107cc76db3a8dcf14f104cb6a8707a41fb9b018
tools/libs: ROUNDUP() related adjustments

For one xc_private.h needlessly repeats xen-tools/libs.h's definition.

And then there are two suspicious uses (resulting from the inconsistency
with the respective 2nd parameter of DIV_ROUNDUP()): While the one in
tools/console/daemon/io.c - as per the code comment - intentionally uses
8 as the second argument (meaning to align to a multiple of 256), the
one in alloc_magic_pages_hvm() pretty certainly does not: There the goal
is to align to a uint64_t boundary, for the following module struct to
end up aligned.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
tools/libs/ctrl/xc_private.h
tools/libs/guest/xg_dom_x86.c