All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Amit Shah <amit.shah@qumranet.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	muli@il.ibm.com, benami@il.ibm.com, allen.m.kay@intel.com,
	chrisw@redhat.com
Subject: Re: [PATCH 1/3] KVM: Expose get_eoi_gsi for IRQ acking for assigned devices.
Date: Wed, 18 Jun 2008 07:25:29 -0700	[thread overview]
Message-ID: <48591AD9.9050903@qumranet.com> (raw)
In-Reply-To: <1212143270-18333-1-git-send-email-amit.shah@qumranet.com>

Amit Shah wrote:
> Also add kvm_ prefix.
>
> Signed-off-by: Amit Shah <amit.shah@qumranet.com>
> ---
>  virt/kvm/ioapic.c |    4 ++--
>  virt/kvm/ioapic.h |    1 +
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
> index 99a1736..4c41a00 100644
> --- a/virt/kvm/ioapic.c
> +++ b/virt/kvm/ioapic.c
> @@ -284,7 +284,7 @@ void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level)
>  	}
>  }
>  
> -static int get_eoi_gsi(struct kvm_ioapic *ioapic, int vector)
> +int kvm_get_eoi_gsi(struct kvm_ioapic *ioapic, int vector)
>  {
>  	int i;
>  
> @@ -300,7 +300,7 @@ void kvm_ioapic_update_eoi(struct kvm *kvm, int vector)
>  	union ioapic_redir_entry *ent;
>  	int gsi;
>  
> -	gsi = get_eoi_gsi(ioapic, vector);
> +	gsi = kvm_get_eoi_gsi(ioapic, vector);
>  	if (gsi == -1) {
>  		printk(KERN_WARNING "Can't find redir item for %d EOI\n",
>  		       vector);
>
>   

de53f0e48a1ec9880613a9bdbc5d1d3dcfada0f7 kills get_eoi_gsi, since there 
can be more than one irq mapped to a vector.  I guess the right way to 
deal with this is to install a callback in the pic and apic, to be 
called when the guest acks the interrupt.


-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


      parent reply	other threads:[~2008-06-18 14:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 10:27 [PATCH 1/3] KVM: Expose get_eoi_gsi for IRQ acking for assigned devices Amit Shah
2008-05-30 10:27 ` [PATCH 2/3] KVM: Introduce kvm_set_irq to inject interrupts in guests Amit Shah
2008-05-30 10:27   ` [PATCH 3/3] KVM: Handle devices assigned to the guest Amit Shah
2008-06-18 14:25 ` Avi Kivity [this message]

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=48591AD9.9050903@qumranet.com \
    --to=avi@qumranet.com \
    --cc=allen.m.kay@intel.com \
    --cc=amit.shah@qumranet.com \
    --cc=benami@il.ibm.com \
    --cc=chrisw@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=muli@il.ibm.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.