> On Wed, Sep 30, 2009 at 10:55:24AM +0200, Dietmar Maurer wrote: > > Another problem occur when max_downtime is too short. This can > results in never ending migration task. > > > > To reproduce just play a video inside a VM and set max_downtime to > 30ns > > > > Sure, one can argument that this behavior is expected. > > > > But the following would avoid the problem: > > > > + if ((stage == 2) && (bytes_transferred > 2*ram_bytes_total())) { > > + return 1; > > + } > why 2 * ? > This means we'll have to transfer the whole contents of RAM at least > twice to hit this condition, right? Yes, this is just an arbitrary limit. - Dietmar -- 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