From: Liu Yu Date: Thu, 15 Jan 2009 12:34:10 +0000 Subject: [PATCH 2/9] powerpc/kvm: fix a openpic bug Message-Id: <1232022857-2315-3-git-send-email-yu.liu@freescale.com> List-Id: References: <1232022857-2315-1-git-send-email-yu.liu@freescale.com> <1232022857-2315-2-git-send-email-yu.liu@freescale.com> In-Reply-To: <1232022857-2315-2-git-send-email-yu.liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: qemu-devel@nongnu.org Cc: Liu Yu , kvm-ppc@vger.kernel.org An external interrupt should not interrupted in-servicing interrupt with equal priority. Signed-off-by: Liu Yu --- hw/openpic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index def20eb..b8da4d7 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -279,7 +279,7 @@ static void IRQ_local_pipe (openpic_t *opp, int n_CPU, int n_IRQ) } IRQ_get_next(opp, &dst->raised); if (IRQ_get_next(opp, &dst->servicing) != -1 && - priority < dst->servicing.priority) { + priority <= dst->servicing.priority) { DPRINTF("%s: IRQ %d is hidden by servicing IRQ %d on CPU %d\n", __func__, n_IRQ, dst->servicing.next, n_CPU); /* Already servicing a higher priority IRQ */ -- 1.5.4