* [Qemu-devel] QOM q1
@ 2015-02-13 5:46 boddu pavan
0 siblings, 0 replies; 2+ messages in thread
From: boddu pavan @ 2015-02-13 5:46 UTC (permalink / raw)
To: QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
Hi,
I have some question on using QOM, new to QEMU and will be great if i can put some answers for below question.
1) If QEMU is considered to be OOP, How is the relation between a Class and Object. I see in c++ we do not create a classobject there will be a object of a class. But here i see both a classobject and an instance object( if i'm not wrong we call it as state). What is the relation between two, where particularly i should use each one ?
2) I see every peripheral state has object inherited, So can i assume there is only one root object for all the devices in my qemu design. Are there any others?
3) In type info we point out Class_init, instance_init. Are these both called up when emulating a two devices of same type( i.e emulating uarts of same type, uart1 and uart0.)
Thanks,Sai Pavan
[-- Attachment #2: Type: text/html, Size: 1728 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Qemu-devel] QOM q1
@ 2015-02-13 6:05 boddu pavan
0 siblings, 0 replies; 2+ messages in thread
From: boddu pavan @ 2015-02-13 6:05 UTC (permalink / raw)
To: QEMU Developers, Qemu_mail
[-- Attachment #1: Type: text/plain, Size: 814 bytes --]
Hi,
I have some question on using QOM, new to QEMU and will be great if i can put some answers for below question.
1) If QEMU is considered to be OOP, How is the relation between a Class and Object. I see in c++ we do not create a classobject there will be a object of a class. But here i see both a classobject and an instance object( if i'm not wrong we call it as state). What is the relation between two, where particularly i should use each one ?
2) I see every peripheral state has object inherited, So can i assume there is only one root object for all the devices in my qemu design. Are there any others?
3) In type info we point out Class_init, instance_init. Are these both called up when emulating a two devices of same type( i.e emulating uarts of same type, uart1 and uart0.)
Thanks,Sai Pavan
[-- Attachment #2: Type: text/html, Size: 2281 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-13 6:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-13 6:05 [Qemu-devel] QOM q1 boddu pavan
-- strict thread matches above, loose matches on Subject: below --
2015-02-13 5:46 boddu pavan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).