kvm: refactor start address calculation