minor fix to kvm_vm and virt_vm

1) update the kvm_vm to support maxcpus sub option
2) Change self.login() to self.wait_for_login() to allow call vm.get_cpu_count() before guest ssh running