qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: boddu pavan <boddupavan@yahoo.com>
To: QEMU Developers <qemu-devel@nongnu.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: [Qemu-devel] Help on QOM
Date: Mon, 16 Feb 2015 14:32:36 +0000 (UTC)	[thread overview]
Message-ID: <10221014.4267841.1424097156393.JavaMail.yahoo@mail.yahoo.com> (raw)

[-- 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: 2278 bytes --]

                 reply	other threads:[~2015-02-16 14:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10221014.4267841.1424097156393.JavaMail.yahoo@mail.yahoo.com \
    --to=boddupavan@yahoo.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).