[PATCH v4 01/12] virmdev: prepare type and attributes for dual state