On 18/07/2020 09.09, Pratik Parvati wrote: > Hi team, > > Could someone please guild me to understand the difference > between *instance_init()* and the*realize()* functions? The > *class_init() *function is straight forward (it is similar to the > constructor in C++ OOP); But I am, finding hard to quote the difference > between *instance_init()* and *realize()*. > > What is the code flow when both functions are defined?
Beside the other good answers that you've already got, maybe this helps a little bit, too: http://people.redhat.com/~thuth/blog/qemu/2018/09/10/instance-init-realize.html Cheers, Thomas