kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: "Zhang, Yang Z" <yang.z.zhang@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"mtosatti@redhat.com" <mtosatti@redhat.com>,
	"Tian, Kevin" <kevin.tian@intel.com>
Subject: Re: [RESEND PATCH v4 2/3] x86, apicv: add virtual interrupt delivery support
Date: Mon, 10 Dec 2012 07:55:25 +0200	[thread overview]
Message-ID: <20121210055525.GH19514@redhat.com> (raw)
In-Reply-To: <A9667DDFB95DB7438FA9D7D576C3D87E2D85D7@SHSMSX101.ccr.corp.intel.com>

On Mon, Dec 10, 2012 at 01:34:02AM +0000, Zhang, Yang Z wrote:
> Gleb Natapov wrote on 2012-12-09:
> > On Sat, Dec 08, 2012 at 08:04:30PM +0800, Yang Zhang wrote:
> >> diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
> >> index cfb7e4d..081225a 100644
> >> --- a/virt/kvm/ioapic.c
> >> +++ b/virt/kvm/ioapic.c
> >> @@ -115,6 +115,40 @@ static void update_handled_vectors(struct kvm_ioapic
> > *ioapic)
> >>  	smp_wmb();
> >>  }
> >> +void _ioapic_update_eoi_exitmap(struct kvm_ioapic *ioapic, int pin)
> >> +{
> > Bette make is ioapic_update_eoi_exitmap_one() or something. Underscore
> > is undescriptive.
> > 
> >> +	union kvm_ioapic_redirect_entry *e;
> >> +
> >> +	e = &ioapic->redirtbl[pin];
> >> +
> >> +	/* PIT is a special case: which is edge trig but have EOI hook.
> >> +	 * Always set the eoi exit bitmap for PIT interrupt*/
> > No hacks please. Check that ack notifier is register for gsi.
> Do you mean do this in kvm_register_irq_ack_notifier()? The problem is that we cannot get the vector when calling this function. Because this function is called during device initializing, and guest is not starting at that time.
> 
Call ioapic_update_eoi_exitmap() in kvm_register_irq_ack_notifier(),
check that gsi (pin) has notifier registered in ioapic_update_eoi_exitmap().

--
			Gleb.

  reply	other threads:[~2012-12-10  5:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-08 12:04 [RESEND PATCH v4 0/3] x86, apicv: Add APIC virtualization support Yang Zhang
2012-12-08 12:04 ` [RESEND PATCH v4 1/3] x86, apicv: add APICv register " Yang Zhang
2012-12-08 12:04 ` [RESEND PATCH v4 2/3] x86, apicv: add virtual interrupt delivery support Yang Zhang
2012-12-09  9:31   ` Gleb Natapov
2012-12-10  1:34     ` Zhang, Yang Z
2012-12-10  5:55       ` Gleb Natapov [this message]
2012-12-10  6:30         ` Zhang, Yang Z
2012-12-08 12:04 ` [RESEND PATCH v4 3/3] x86, apicv: add virtual x2apic support Yang Zhang

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=20121210055525.GH19514@redhat.com \
    --to=gleb@redhat.com \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=yang.z.zhang@intel.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;
as well as URLs for NNTP newsgroup(s).