xenmem_add_to_physmap_one() has no need to know of XENMAPSPACE_gmfn_range
authorJan Beulich <jbeulich@suse.com>
Wed, 31 Jan 2018 11:34:08 +0000 (12:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 Jan 2018 11:34:08 +0000 (12:34 +0100)
commita3da661ad4b5331ef3a4398898c2f5d47b5a0698
tree7613ccd63a561f457a3e27ea51dbbcf611fc09cc
parentac37ec1ddef234eeba6f438c29ff687c64962ebd
xenmem_add_to_physmap_one() has no need to know of XENMAPSPACE_gmfn_range

As its name says, it handles a single GMFN only anyway. Note that ARM
needs no adjustment, as it doesn't handle the two types at all.

Also take the opportunity and clean up the handling of XENMAPSPACE_gmfn
a little: There's no point in going through "idx" when capturing the MFN.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/common/memory.c