xen-org/xen-api — pull request #779 by djs55 (2012-07-18 16:42:15+00:00)
Title: CA-85940: use the creation time measured with a monotonic clock to judge...

... which domain is "newer" for a given UUID

The previous metric (whether a VM had clocked up CPU time or not)
would be confused if neither domain had started.

Signed-off-by: David Scott

Tested by:
1. manually starting, stopping VMs, checking the times look sensible
2. verifying by eye that domain 0 has a sensible value
3. quicktest: in particular this does localhost live migrates which stresses this code. I grepped the log to verify that it was always sorting the list into the correct order.