From: Heiko Carstens Date: Mon, 18 Nov 2013 09:35:55 +0000 (+0100) Subject: KVM: kvm_clear_guest_page(): fix empty_zero_page usage X-Git-Tag: v3.13-rc1~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a3caa6d74597c2a083f7c87f866891a0b12540b;p=pandora-kernel.git KVM: kvm_clear_guest_page(): fix empty_zero_page usage Using the address of 'empty_zero_page' as source address in order to clear a page is wrong. On some architectures empty_zero_page is only the pointer to the struct page of the empty_zero_page. Therefore the clear page operation would copy the contents of a couple of struct pages instead of clearing a page. For kvm only arm/arm64 are affected by this bug. To fix this use the ZERO_PAGE macro instead which will return the struct page address of the empty_zero_page on all architectures. Signed-off-by: Heiko Carstens Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed