commit | e119d117a1d16e71876144188c0e0b3ecb8aeede | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Mon Feb 12 00:54:36 2007 -0800 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Mon Feb 12 09:48:40 2007 -0800 |
tree | 54c1ba0f055ea4c7aa306fb9f4563b1ad96f019d | |
parent | a0610ddf6be6465049a5da448d7e6c5e821240e6 [diff] |
[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 <avi@qumranet.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>