Virt vm update

This patch set include two improve patch for wait_for_login, one for get_memory_size and a small bug fix.