In function __kvm_set_memory_region() at virt/kvm/kvm_main.c:950, the condition is false in any case. 950 if (mem->guest_phys_addr + mem->memory_size < mem->guest_phys_addr) 951 goto out;
No, the check catches cases where @mem wraps to zero, e.g. guest_phys_addr = 0xfffffffffffff000 and memory_size >= 0x1000.
(In reply to Sean Christopherson from comment #1) > No, the check catches cases where @mem wraps to zero, e.g. guest_phys_addr = > 0xfffffffffffff000 and memory_size >= 0x1000. Oh, sorry, I hadn't caught the idea.