]> xenbits.xensource.com Git - people/pauldu/mini-os.git/commit
mini-os: add map_frame_virt() function
authorJuergen Gross <jgross@suse.com>
Thu, 18 Aug 2016 11:36:36 +0000 (13:36 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 24 Aug 2016 10:37:05 +0000 (11:37 +0100)
commite1446ed45269ffe1e5c1b602e8b775bb5319948e
treee42b0b4fd72e4da55b93d6eb6feddb6849626d6a
parent6958036fe6691db8e7a9238184140eca03b2103b
mini-os: add map_frame_virt() function

Add a function map_frame_virt() to map a given frame and return its
virtual address.

On arm we just use the frame physical address, while on x86 we take a
page from the virtual kernel area. For this purpose make this area
available even in case of undefined CONFIG_BALLOON.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/arm/balloon.c
arch/arm/mm.c
arch/x86/balloon.c
arch/x86/mm.c
balloon.c
include/balloon.h
include/mm.h
include/x86/arch_mm.h