On 04/27/2010 01:38 PM, Joerg Roedel wrote:
This patch introduces a mmu-callback to translate gpa addresses in the walk_addr code. This is later used to translate l2_gpa addresses into l1_gpa addresses. +static inline gfn_t gpa_to_gfn(gpa_t gpa) +{ + return (gfn_t)gpa>> PAGE_SHIFT; +} +
This overflows on 32-bit, since gpa_t is u64 and gfn_t is ulong. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html