[libvirt] [PATCH v1 01/18] add macros for implementing automatic cleanup functionality