On Fri, May 13, 2011 at 11:19 AM, Ingo Molnar <mingo@xxxxxxx> wrote: > @@ -162,7 +162,7 @@ static void kvm_register_mem_slot(struct kvm *kvm, u32 slot, u64 guest_phys, u64 > .slot = slot, > .guest_phys_addr = guest_phys, > .memory_size = size, > - .userspace_addr = (u64)userspace_addr, > + .userspace_addr = (u64)(long)userspace_addr, > }; Isn't + .userspace_addr = (unsigned long)userspace_addr, the right thing to do here? -- 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