qemu: Make QMP probing process reusable
qemu: Make QMP probing process reusable

The code that runs a new QEMU process to be used for probing
capabilities is separated into four reusable functions so that any code
that wants to probe a QEMU process may just follow a few simple steps:

    cmd = virQEMUCapsInitQMPCommandNew(...);
    virQEMUCapsInitQMPCommandRun(cmd);

    /* talk to the running QEMU process using its QMP monitor */

    if (reprobeIsRequired) {
        virQEMUCapsInitQMPCommandAbort(cmd, ...);
        virQEMUCapsInitQMPCommandRun(cmd);

        /* talk to the running QEMU process again */
    }

    virQEMUCapsInitQMPCommandFree(cmd);

Signed-off-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

taget/libvirt,nertpinx/libvirt,jfehlig/libvirt,eskultety/libvirt,taget/libvirt,crobinso/libvirt,jardasgit/libvirt,taget/libvirt,olafhering/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,taget/libvirt,olafhering/libvirt,VenkatDatta/libvirt,eskultety/libvirt,crobinso/libvirt,datto/libvirt,fabianfreyer/libvirt,zippy2/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jardasgit/libvirt,eskultety/libvirt,jardasgit/libvirt,libvirt/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,andreabolognani/libvirt,jardasgit/libvirt,eskultety/libvirt,libvirt/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,datto/libvirt,andreabolognani/libvirt,nertpinx/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,datto/libvirt,jfehlig/libvirt,datto/libvirt,VenkatDatta/libvirt,olafhering/libvirt,VenkatDatta/libvirt,taget/libvirt,libvirt/libvirt,datto/libvirt,andreabolognani/libvirt,crobinso/libvirt,eskultety/libvirt,crobinso/libvirt,jfehlig/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,zippy2/libvirt