From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] x86: fix an off-by-one pirq range check
Date: Wed, 30 Jun 2010 12:16:41 -0400 [thread overview]
Message-ID: <20100630161641.GE5100@phenom.dumpdata.com> (raw)
In-Reply-To: <4C2B02460200007800008B83@vpn.id2.novell.com>
On Wed, Jun 30, 2010 at 07:37:26AM +0100, Jan Beulich wrote:
> Signed-off-by: Jan Beulich <jbeulich@novell.com>
Won't that make PV guest with only one IRQ passed through unable to ACK it?
(and if the IRQ is not shared that is).
This code does get executed when the PHYSDEVOP_eoi hypercall is made I
believe.
>
> --- 2010-06-15.orig/xen/arch/x86/irq.c 2010-06-15 13:23:00.000000000 +0200
> +++ 2010-06-15/xen/arch/x86/irq.c 2010-06-29 10:15:13.000000000 +0200
> @@ -1027,7 +1027,7 @@ static void __pirq_guest_eoi(struct doma
>
> int pirq_guest_eoi(struct domain *d, int irq)
> {
> - if ( (irq < 0) || (irq > d->nr_pirqs) )
> + if ( (irq < 0) || (irq >= d->nr_pirqs) )
> return -EINVAL;
>
> __pirq_guest_eoi(d, irq);
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-06-30 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 6:37 [PATCH] x86: fix an off-by-one pirq range check Jan Beulich
2010-06-30 16:16 ` Konrad Rzeszutek Wilk [this message]
2010-07-01 7:27 ` Jan Beulich
2010-07-01 16:19 ` Konrad Rzeszutek Wilk
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=20100630161641.GE5100@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@novell.com \
--cc=xen-devel@lists.xensource.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.