[libvirt] [PATCH v3 18/20] Move command/event capabilities detection out of QEMU monitor code