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