xen/x86: actually allocate legacy interrupts on PV guests
commitbaff1938adce472142447ba686c2bf84acfb1260
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 20 Apr 2016 13:15:01 +0000 (20 14:15 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 6 Jun 2016 23:11:12 +0000 (6 19:11 -0400)
treed4f87d95ea0e09a1db2c588c0509a1e346920824
parent72895bf864d56ad4035f34b216b3344bb0fd6caa
xen/x86: actually allocate legacy interrupts on PV guests

[ Upstream commit 702f926067d2a4b28c10a3c41a1172dd62d9e735 ]

b4ff8389ed14 is incomplete: relies on nr_legacy_irqs() to get the number
of legacy interrupts when actually nr_legacy_irqs() returns 0 after
probe_8259A(). Use NR_IRQS_LEGACY instead.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
CC: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/pci/xen.c