From: Avi Kivity <avi@qumranet.com>
To: Sukanto Ghosh <sukanto@cse.iitb.ac.in>
Cc: kvm@vger.kernel.org
Subject: Re: Scheduling of VCPUs and allocation of Guest Physical Memory
Date: Wed, 18 Jun 2008 07:12:43 -0700 [thread overview]
Message-ID: <485917DB.6080602@qumranet.com> (raw)
In-Reply-To: <4856775E.4050601@cse.iitb.ac.in>
Sukanto Ghosh wrote:
> I saw that KVM has guest SMP support upto 4 VCPUs. Are these VCPUs
> modelled as threads of 'the process representing the VM' ?
>
Yes.
> If it is, then, when a signal is sent to the that process by the QEMU
> process, shouldn't all of the VCPUs (for that VM) exit to the userspace ?
>
You can send signals to a specific thread.
> Who does this management of delivering the interrupt to the VCPU for
> which it is intended for ?
See qemu-kvm.c, look for pthread_kill().
>
>
> Also, while going through the KVM source, I found mention of opaque at
> many places. What does 'opaque' refer to ? What is an opaque data ?
It's a common C idiom letting a lower layer call back into the upper
layer without knowing the upper layer's details.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
prev parent reply other threads:[~2008-06-18 14:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-05 7:29 Scheduling of VCPUs and allocation of Guest Physical Memory Sukanto Ghosh
2008-06-05 12:54 ` Anthony Liguori
2008-06-06 14:22 ` Sukanto Ghosh
2008-06-06 14:40 ` Anthony Liguori
2008-06-09 11:10 ` Sukanto Ghosh
2008-06-09 16:19 ` Avi Kivity
2008-06-16 14:23 ` Sukanto Ghosh
2008-06-18 14:12 ` Avi Kivity [this message]
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=485917DB.6080602@qumranet.com \
--to=avi@qumranet.com \
--cc=kvm@vger.kernel.org \
--cc=sukanto@cse.iitb.ac.in \
/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