All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sheng Yang <sheng@linux.intel.com>
To: kvm@vger.kernel.org, ncmike@ncultra.org
Cc: Gleb Natapov <gleb@redhat.com>, avi@redhat.com, mtosatti@redhat.com
Subject: Re: ioapic/msi interrupt delivery consolidation.
Date: Wed, 11 Mar 2009 09:42:44 +0800	[thread overview]
Message-ID: <200903110942.45123.sheng@linux.intel.com> (raw)
In-Reply-To: <20090310165436.GA7375@silverwood.ncultra.org>

On Wednesday 11 March 2009 00:54:37 Mike Day wrote:
> On 05/03/09 16:34 +0200, Gleb Natapov wrote:
> > ioapic_deliver() and kvm_set_msi() have code duplication. Move
> > the code into ioapic_deliver_entry() function and call it from
> > both places.
> >
> >
> > +static int ioapic_deliver(struct kvm_ioapic *ioapic, int irq)
> > +{
> > +	union kvm_ioapic_redirect_entry entry = ioapic->redirtbl[irq];
> > +
> > +	ioapic_debug("dest=%x dest_mode=%x delivery_mode=%x "
> > +		     "vector=%x trig_mode=%x\n",
> > +		     entry.fields.dest, entry.fields.dest_mode,
> > +		     entry.fields.delivery_mode, entry.fields.vector,
> > +		     entry.fields.trig_mode);
> > +
> > +#ifdef CONFIG_X86
> > +	/* Always delivery PIT interrupt to vcpu 0 */
> > +	if (irq == 0) {
> > +		entry.fields.dest_mode = 0; /* Physical mode. */
> > +		entry.fields.dest_id = ioapic->kvm->vcpus[0]->vcpu_id;
> > +	}
> > +#endif
> > +	return ioapic_deliver_entry(ioapic->kvm, &entry);
> > +}
> > +
>
> Why is the PIT always handled by vcpu 0?
>
> thanks,

Hi Mike

This due to a timer bug, please google "The SMP RHEL 5.1 PAE guest can't boot 
up issue". (should be http://www.mail-archive.com/kvm-
devel@lists.sourceforge.net/msg13250.html but damn it, seems I've blocked by 
Chinese GFW to get the page...)

-- 
regards
Yang, Sheng

  reply	other threads:[~2009-03-11  1:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05 14:34 [PATCH v2 0/5] ioapic/lapic/msi cleanup Gleb Natapov
2009-03-05 14:34 ` [PATCH v2 1/5] Make kvm_apic_set_irq() deliver all kinds of interrupts Gleb Natapov
2009-03-05 14:34 ` [PATCH v2 2/5] ioapic/msi interrupt delivery consolidation Gleb Natapov
2009-03-10 16:54   ` Mike Day
2009-03-11  1:42     ` Sheng Yang [this message]
2009-03-05 14:34 ` [PATCH v2 3/5] Consolidate ioapic/ipi interrupt delivery logic Gleb Natapov
2009-03-05 14:34 ` [PATCH v2 4/5] Change the way how lowest priority vcpu is calculated Gleb Natapov
2009-03-05 14:35 ` [PATCH v2 5/5] Get rid of deliver_bitmask Gleb Natapov
2009-03-05 22:34 ` [PATCH v2 0/5] ioapic/lapic/msi cleanup Marcelo Tosatti
2009-03-06  6:06   ` Gleb Natapov

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=200903110942.45123.sheng@linux.intel.com \
    --to=sheng@linux.intel.com \
    --cc=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=ncmike@ncultra.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.