Revision efec3dd6 include/hw/qdev-core.h

b/include/hw/qdev-core.h
97 97
    const char *fw_name;
98 98
    const char *desc;
99 99
    Property *props;
100
    int no_user;
100

  
101
    /*
102
     * Shall we hide this device model from -device / device_add?
103
     * All devices should support instantiation with device_add, and
104
     * this flag should not exist.  But we're not there, yet.  Some
105
     * devices fail to instantiate with cryptic error messages.
106
     * Others instantiate, but don't work.  Exposing users to such
107
     * behavior would be cruel; this flag serves to protect them.  It
108
     * should never be set without a comment explaining why it is set.
109
     * TODO remove once we're there
110
     */
111
    bool cannot_instantiate_with_device_add_yet;
101 112

  
102 113
    /* callbacks */
103 114
    void (*reset)(DeviceState *dev);

Also available in: Unified diff