]> Git Repo - qemu.git/commit - hw/intc/spapr_xive.c
spapr/xive: Mask the EAS when allocating an IRQ
authorCédric Le Goater <[email protected]>
Tue, 13 Aug 2019 16:44:20 +0000 (18:44 +0200)
committerDavid Gibson <[email protected]>
Wed, 21 Aug 2019 07:17:39 +0000 (17:17 +1000)
commitf55750e4e4fb35b6a12c81c485f16494e2c61ad2
tree3f107fa40a9191b3e4fd6a5a169ee18282530891
parentfd38b1629cdb73da17e6fa294168e0c1bb1ccb07
spapr/xive: Mask the EAS when allocating an IRQ

If an IRQ is allocated and not configured, such as a MSI requested by
a PCI driver, it can be saved in its default state and possibly later
on restored using the same state. If not initially MASKED, KVM will
try to find a matching priority/target tuple for the interrupt and
fail to restore the VM because 0/0 is not a valid target.

When allocating a IRQ number, the EAS should be set to a sane default :
VALID and MASKED.

Reported-by: Satheesh Rajendran <[email protected]>
Signed-off-by: Cédric Le Goater <[email protected]>
Message-Id: <20190813164420[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/intc/spapr_xive.c
This page took 0.027342 seconds and 4 git commands to generate.