[libvirt PATCH 1/4] conf: allow different resource registration modes