public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 1/6] KVM: Check for pending events before attempting injection
Date: Thu, 29 Jul 2010 11:56:42 +0300	[thread overview]
Message-ID: <4C51424A.8080904@redhat.com> (raw)
In-Reply-To: <20100729065127.GL31711@redhat.com>

  On 07/29/2010 09:51 AM, Gleb Natapov wrote:
> On Tue, Jul 27, 2010 at 04:19:35PM +0300, Avi Kivity wrote:
>> Instead of blindly attempting to inject an event before each guest entry,
>> check for a possible event first in vcpu->requests.  Sites that can trigger
>> event injection are modified to set KVM_REQ_EVENT:
>>
>> - interrupt, nmi window opening
>> - ppr updates
>> - i8259 output changes
>> - local apic irr changes
>> - rflags updates
>> - gif flag set
>> - event set on exit
>>
> What about userspace irq chip? Does it work with this patch? I don't see
> that you set KVM_REQ_EVENT on ioctl(KVM_INTERRUPT) for instance and
> vcpu->run->request_interrupt_window should be probably checked out of
> if (KVM_REQ_EVEN).

Right.

> It looks like with this approach we scatter irq
> injection logic all over the code instead of having it in one place.

One place is better, but it means we have to poll all event types on 
every entry.  We can go back to one place by having a mini-API for 
events (extending the kvm_queue_exception family) that would take care 
of the details.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-07-29  8:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27 13:19 [PATCH 0/6] Nonatomic interrupt injection Avi Kivity
2010-07-27 13:19 ` [PATCH 1/6] KVM: Check for pending events before attempting injection Avi Kivity
2010-07-28 16:21   ` Marcelo Tosatti
2010-07-28 16:31     ` Avi Kivity
2010-07-28 16:37       ` Marcelo Tosatti
2010-07-28 16:53         ` Avi Kivity
2010-07-28 17:22           ` Marcelo Tosatti
2010-07-29  8:49             ` Avi Kivity
2010-07-29 15:44               ` Marcelo Tosatti
2010-07-29  6:51   ` Gleb Natapov
2010-07-29  8:56     ` Avi Kivity [this message]
2010-07-27 13:19 ` [PATCH 2/6] KVM: VMX: Split up vmx_complete_interrupts() Avi Kivity
2010-07-27 13:19 ` [PATCH 3/6] KVM: VMX: Move real-mode interrupt injection fixup to vmx_complete_interrupts() Avi Kivity
2010-07-27 13:19 ` [PATCH 4/6] KVM: VMX: Parameterize vmx_complete_interrupts() for both exit and entry Avi Kivity
2010-07-27 13:19 ` [PATCH 5/6] KVM: Non-atomic interrupt injection Avi Kivity
2010-07-27 13:19 ` [PATCH 6/6] KVM: VMX: Move fixup_rmode_irq() to avoid forward declaration Avi Kivity

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=4C51424A.8080904@redhat.com \
    --to=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    /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