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