public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: avi@qumranet.com, Amit Shah <amit.shah@qumranet.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: x86: Use kvm_set_irq to inject interrupts
Date: Mon, 18 Aug 2008 14:38:20 +0300	[thread overview]
Message-ID: <48A95F2C.5050804@qumranet.com> (raw)
In-Reply-To: <1219058461-13409-1-git-send-email-avi@qumranet.com>

Configuration problem?

Avi Kivity doesn't think he wrote:
> From: Amit Shah <amit.shah@qumranet.com>
>
> ... instead of using the pic and ioapic variants
>
> Signed-off-by: Amit Shah <amit.shah@qumranet.com>
> ---
>  arch/x86/kvm/i8254.c |    6 ++----
>  arch/x86/kvm/x86.c   |    8 +-------
>  2 files changed, 3 insertions(+), 11 deletions(-)
>
> diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
> index 7d04dd3..c43894f 100644
> --- a/arch/x86/kvm/i8254.c
> +++ b/arch/x86/kvm/i8254.c
> @@ -596,10 +596,8 @@ void kvm_free_pit(struct kvm *kvm)
>  static void __inject_pit_timer_intr(struct kvm *kvm)
>  {
>  	mutex_lock(&kvm->lock);
> -	kvm_ioapic_set_irq(kvm->arch.vioapic, 0, 1);
> -	kvm_ioapic_set_irq(kvm->arch.vioapic, 0, 0);
> -	kvm_pic_set_irq(pic_irqchip(kvm), 0, 1);
> -	kvm_pic_set_irq(pic_irqchip(kvm), 0, 0);
> +	kvm_set_irq(kvm, 0, 1);
> +	kvm_set_irq(kvm, 0, 0);
>  	mutex_unlock(&kvm->lock);
>  }
>  
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index ee005a6..4933f0c 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -1951,13 +1951,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
>  			goto out;
>  		if (irqchip_in_kernel(kvm)) {
>  			mutex_lock(&kvm->lock);
> -			if (irq_event.irq < 16)
> -				kvm_pic_set_irq(pic_irqchip(kvm),
> -					irq_event.irq,
> -					irq_event.level);
> -			kvm_ioapic_set_irq(kvm->arch.vioapic,
> -					irq_event.irq,
> -					irq_event.level);
> +			kvm_set_irq(kvm, irq_event.irq, irq_event.level);
>  			mutex_unlock(&kvm->lock);
>  			r = 0;
>  		}
>   


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


  reply	other threads:[~2008-08-18 11:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-18 11:21 [PATCH] KVM: x86: Use kvm_set_irq to inject interrupts Avi Kivity
2008-08-18 11:38 ` Avi Kivity [this message]
2008-08-18 12:06   ` Amit Shah
  -- strict thread matches above, loose matches on Subject: below --
2008-08-18 12:07 Amit Shah
2008-08-18 12:12 ` 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=48A95F2C.5050804@qumranet.com \
    --to=avi@qumranet.com \
    --cc=amit.shah@qumranet.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