From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: How kvm handle extern interrupt when guest os is running Date: Sun, 29 Aug 2010 17:24:09 +0300 Message-ID: <4C7A6D89.9040802@redhat.com> References: <201008292216173903911@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm To: jemmy858585 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34264 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753418Ab0H2OYM (ORCPT ); Sun, 29 Aug 2010 10:24:12 -0400 In-Reply-To: <201008292216173903911@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/29/2010 05:16 PM, jemmy858585 wrote: > i didn't understand how kvm handle extern interrupt when guest os running. > i think the extern interrupt will cause vm exit, then kvm should pass this interrupt to host os , then the host os handle it. > but i didn't found the correlative code. > > I think vmx_complete_interrupts and vmx_handle_exit function will be execute, but i didn't found how pass the extern interrupt to host os. > > If anyone knows , please tell me,thanks. > The interrupt causes a vmexit but is not consumed by the processor. Instead, it remains pending. As soon as the host enables interrupts the interrupt will be delivered. -- error compiling committee.c: too many arguments to function