> > we pass $nockeck to vm_qmp_command, so the following should be good enough:
> >
> > - if ($config->{agent}) {
> > + if ($conf->{agent}) {
>
> But conf may be undefined if we do not load the config. So check for a key
> might issue a warning.
OK, you are right. I just applied your patch - thanks!