Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    c86b2969
    drivers: switch back to device enumeration, rather than driver enumeration · c86b2969
    Avi Kivity authored
    Driver enumeration requires instantiating a driver even for devices which
    are not present; and if a device is present multiple times, we need to
    pre-create multiple driver instances, which is awkward.  Further, driver
    life-cycle is complicated, with separation between instantiation and binding
    to a device.
    
    Switch (back) to the traditional device-driven model, where we iterate over
    all devices, try to find a matching driver factory, and when found, call it
    to instantiate the driver and bind to the device.
    c86b2969
    History
    drivers: switch back to device enumeration, rather than driver enumeration
    Avi Kivity authored
    Driver enumeration requires instantiating a driver even for devices which
    are not present; and if a device is present multiple times, we need to
    pre-create multiple driver instances, which is awkward.  Further, driver
    life-cycle is complicated, with separation between instantiation and binding
    to a device.
    
    Switch (back) to the traditional device-driven model, where we iterate over
    all devices, try to find a matching driver factory, and when found, call it
    to instantiate the driver and bind to the device.