[pve-devel] [PATCH qemu-server 1/2] Close #880: ability to show paused state via the CLI

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Feb 5 09:56:03 CET 2016


> On February 5, 2016 at 9:50 AM Dietmar Maurer <dietmar at proxmox.com> wrote:
> 
> 
> > -	    my $status = $stat->{status} || 'unknown';
> > +	    my $status = $stat->{qmpstatus} || 'unknown';
> 
> What if the VM is running, but qmp does not work for some reason?

vmstatus() ends with:

|    foreach my $vmid (keys %$list) {
|	next if $opt_vmid && ($vmid ne $opt_vmid);
|	$res->{$vmid}->{qmpstatus} = $res->{$vmid}->{status} if !$res->{$vmid}->{qmpstatus};

so it falls back to putting the regular non-qmp status into the qmpstatus field.




More information about the pve-devel mailing list