[libvirt] [PATCH 21/23] Move command/event capabilities detection out of QEMU monitor code