All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Yang Zhang <yang.z.zhang@intel.com>
Cc: kvm@vger.kernel.org, mtosatti@redhat.com
Subject: Re: [PATCH v2 1/6] x86: PIT connects to pin 2 of IOAPIC
Date: Wed, 28 Nov 2012 12:50:04 +0200	[thread overview]
Message-ID: <20121128105003.GY25516@redhat.com> (raw)
In-Reply-To: <1353485379-6823-2-git-send-email-yang.z.zhang@intel.com>

On Wed, Nov 21, 2012 at 04:09:34PM +0800, Yang Zhang wrote:
> When PIT connects to IOAPIC, it route to pin 2 not pin 0.
> 
> Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
> ---
>  virt/kvm/ioapic.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
> index cfb7e4d..166c450 100644
> --- a/virt/kvm/ioapic.c
> +++ b/virt/kvm/ioapic.c
> @@ -181,7 +181,7 @@ static int ioapic_deliver(struct kvm_ioapic *ioapic, int irq)
>  
>  #ifdef CONFIG_X86
>  	/* Always delivery PIT interrupt to vcpu 0 */
> -	if (irq == 0) {
> +	if (irq == 2) {
Hmm, this means all this time the code didn't work correctly which makes
me wonder if we need this hack at all.

>  		irqe.dest_mode = 0; /* Physical mode. */
>  		/* need to read apic_id from apic regiest since
>  		 * it can be rewritten */
> -- 
> 1.7.1

--
			Gleb.

  reply	other threads:[~2012-11-28 11:32 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21  8:09 [PATCH v2 0/6] x86, apicv: Add APIC virtualizatin support Yang Zhang
2012-11-21  8:09 ` [PATCH v2 1/6] x86: PIT connects to pin 2 of IOAPIC Yang Zhang
2012-11-28 10:50   ` Gleb Natapov [this message]
2012-11-21  8:09 ` [PATCH v2 2/6] x86, apicv: add APICv register virtualization support Yang Zhang
2012-11-21  8:09 ` [PATCH v2 3/6] x86, apicv: add virtual interrupt delivery support Yang Zhang
2012-11-22 13:57   ` Gleb Natapov
2012-11-23 11:46     ` Zhang, Yang Z
2012-11-25  8:53       ` Gleb Natapov
2012-11-21  8:09 ` [PATCH v2 4/6] x86, apicv: add virtual x2apic support Yang Zhang
2012-11-21  8:09 ` [PATCH v2 5/6] x86: Enable ack interrupt on vmexit Yang Zhang
2012-11-22 15:22   ` Gleb Natapov
2012-11-23  5:41     ` Zhang, Yang Z
2012-11-25 13:30       ` Gleb Natapov
2012-11-25 12:55     ` Avi Kivity
2012-11-25 13:03       ` Gleb Natapov
2012-11-25 13:11         ` Avi Kivity
2012-11-26  5:44           ` Zhang, Yang Z
2012-11-26  9:17             ` Gleb Natapov
2012-11-21  8:09 ` [PATCH v2 6/6] x86, apicv: Add Posted Interrupt supporting Yang Zhang
2012-11-25 12:39   ` Gleb Natapov
2012-11-26  3:51     ` Zhang, Yang Z
2012-11-26 10:01       ` Gleb Natapov
2012-11-26 12:29         ` Zhang, Yang Z
2012-11-26 13:48           ` Gleb Natapov
2012-11-27  3:38             ` Zhang, Yang Z
2012-11-27  9:16               ` Gleb Natapov
2012-11-27 11:10                 ` Zhang, Yang Z
2012-11-27 11:31                   ` Veruca Salt
2012-11-27 11:46                   ` 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=20121128105003.GY25516@redhat.com \
    --to=gleb@redhat.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 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.