[libvirt] [PATCH v2] Perform disk config validity checking for attach-device config