[PATCH v2 01/11] virmdev: prepare type and attributes for dual state