[vfio-users] [PATCH v3 05/11] igd: TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE: call parent realize

Gerd Hoffmann kraxel at redhat.com
Wed Jan 20 09:10:11 UTC 2016


  Hi,

> > > > +    i440fx_realize = k->realize;
> > > >      k->realize = igd_pt_i440fx_realize;
> > 
> > ... because we are overriding it right here.
> 
> Many device classes have a parent_realize field so they can keep
> a pointer to the original realize function. It's better than a
> static variable.

How does the attached patch (incremental fix, not tested yet) look like?

cheers,
  Gerd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fixup-TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE-realize.patch
Type: text/x-patch
Size: 2398 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160120/d4a48e39/attachment.bin>


More information about the vfio-users mailing list