From: Sukanto Ghosh Subject: Re: Scheduling of VCPUs and allocation of Guest Physical Memory Date: Mon, 16 Jun 2008 19:53:26 +0530 Message-ID: <4856775E.4050601@cse.iitb.ac.in> References: <484795C3.8030603@cse.iitb.ac.in> <4847E205.4060605@codemonkey.ws> <4849483A.3030709@cse.iitb.ac.in> <48494C67.5090406@codemonkey.ws> <484D0F8F.4010807@cse.iitb.ac.in> <484D5808.9010907@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: avi@qumranet.com Return-path: Received: from smtp1.iitb.ac.in ([203.78.221.49]:55590 "HELO smtp1.iitb.ac.in" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753485AbYFPOVG (ORCPT ); Mon, 16 Jun 2008 10:21:06 -0400 In-Reply-To: <484D5808.9010907@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: >> But what about the interrupts that need to be delivered immediately >> and while the VM is executing (assume interrupts are enabled in the >> guest). Is any kind of signal-based mechanism employed to force a >> VM-exit ? >> > > Sending a signal to a task that is executing guest code will force it > to exit to userspace immediately. The in-kernel interrupt controller > emulation also forces guest exits by sending inter-processor interrupts. > > I saw that KVM has guest SMP support upto 4 VCPUs. Are these VCPUs modelled as threads of 'the process representing the VM' ? 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 ? Who does this management of delivering the interrupt to the VCPU for which it is intended for ? And, how ? 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 ? Thanks and Regards, Sukanto