summaryrefslogtreecommitdiff
path: root/arch/tile/configs
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2014-03-28 14:25:19 +0000
committerJiri Slaby <jslaby@suse.cz>2014-05-15 09:55:50 +0200
commit723334b96cb8d500bc7d23ff3bd97f1abb8a48ae (patch)
tree06f51546aa09bfbd9d4bae94441a67d23d9b3d23 /arch/tile/configs
parentdfcb8cde86ee85d38caaa3140e1b66cf99ca1df8 (diff)
arm: KVM: fix possible misalignment of PGDs and bounce page
commit 5d4e08c45a6cf8f1ab3c7fa375007635ac569165 upstream. The kvm/mmu code shared by arm and arm64 uses kalloc() to allocate a bounce page (if hypervisor init code crosses page boundary) and hypervisor PGDs. The problem is that kalloc() does not guarantee the proper alignment. In the case of the bounce page, the page sized buffer allocated may also cross a page boundary negating the purpose and leading to a hang during kvm initialization. Likewise the PGDs allocated may not meet the minimum alignment requirements of the underlying MMU. This patch uses __get_free_page() to guarantee the worst case alignment needs of the bounce page and PGDs on both arm and arm64. Signed-off-by: Mark Salter <msalter@redhat.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'arch/tile/configs')
0 files changed, 0 insertions, 0 deletions