From: jemmy858585 <jemmy858585@gmail.com>
To: "Avi Kivity" <avi@redhat.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: Re: How kvm handle extern interrupt when guest os is running
Date: Tue, 31 Aug 2010 23:47:53 +0800 [thread overview]
Message-ID: <201008312347465936607@gmail.com> (raw)
In-Reply-To: 201008292216173903911@gmail.com
I understand ,thank you.
i find this in intel system programming guide:
Acknowledge interrupt on exit. The “acknowledge interrupt on exit” VM-exit
control in the controlling VMCS controls processor behavior for external interrupt
acknowledgement. If the control is 1, the processor acknowledges the interrupt
controller to acquire the interrupt vector upon VM exit, and stores the vector in
the VM-exit interruption-information field. If the control is 0, the external
interrupt is not acknowledged during VM exit. Since RFLAGS.IF is automatically
cleared on VM exits due to external interrupts, VMM re-enabling of interrupts
(setting RFLAGS.IF = 1) initiates the external interrupt acknowledgement and
vectoring of the external interrupt through the monitor/host IDT.
and i find xen set “acknowledge interrupt on exit” to 1.
2010-08-31
jemmy858585
发件人: Avi Kivity
发送时间: 2010-08-29 22:24:13
收件人: jemmy858585
抄送: kvm
主题: Re: How kvm handle extern interrupt when guest os is running
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
prev parent reply other threads:[~2010-08-31 15:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 14:16 How kvm handle extern interrupt when guest os is running jemmy858585
2010-08-29 14:24 ` Avi Kivity
2010-08-31 15:47 ` jemmy858585 [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=201008312347465936607@gmail.com \
--to=jemmy858585@gmail.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.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