From: Avi Kivity Date: Mon, 12 Feb 2007 08:54:36 +0000 (-0800) Subject: [PATCH] kvm: Fix gva_to_gpa() X-Git-Tag: v2.6.21-rc1~274^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e119d117a1d16e71876144188c0e0b3ecb8aeede;p=pandora-kernel.git [PATCH] kvm: Fix gva_to_gpa() gva_to_gpa() needs to be updated to the new walk_addr() calling convention, otherwise it may oops under some circumstances. Use the opportunity to remove all the code duplication in gva_to_gpa(), which essentially repeats the calculations in walk_addr(). Signed-off-by: Avi Kivity Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed