x86/hvm: Clean up track_dirty_vram() calltree
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Jul 2018 17:22:25 +0000 (17:22 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Jul 2020 18:33:28 +0000 (19:33 +0100)
commitb071ec25e85c4aacf3da59e5258cda0b1c4df45d
tree93f51a12136106f2b91464af8d7e121eebe22d5b
parentb6641f28c5932793da2877ed8b9dac4aea6305ce
x86/hvm: Clean up track_dirty_vram() calltree

 * Rename nr to nr_frames.  A plain 'nr' is confusing to follow in the the
   lower levels.
 * Use DIV_ROUND_UP() rather than opencoding it in several different ways
 * The hypercall input is capped at uint32_t, so there is no need for
   nr_frames to be unsigned long in the lower levels.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/dm.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/shadow/hvm.c
xen/include/asm-x86/hap.h
xen/include/asm-x86/shadow.h