Commit 7aa7b2a
s390/vfio-ap: clean up irq resources if possible
The architecture does not specify whether interrupts are disabled as part
of the asynchronous reset or upon return from the PQAP/ZAPQ instruction.
If, however, PQAP/ZAPQ completes with APQSW response code 0 and the
interrupt bit in the status word is also 0, we know the interrupts are
disabled and we can go ahead and clean up the corresponding resources;
otherwise, we must wait until the asynchronous reset has completed.
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Suggested-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Tested-by: Viktor Mihajlovski <mihajlov@linux.ibm.com>
Link: https://lore.kernel.org/r/20230815184333.6554-3-akrowiak@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>1 parent 680b7dd commit 7aa7b2a
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
1657 | | - | |
1658 | | - | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
1659 | 1660 | | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
1660 | 1664 | | |
1661 | 1665 | | |
1662 | 1666 | | |
| |||
1675 | 1679 | | |
1676 | 1680 | | |
1677 | 1681 | | |
| 1682 | + | |
1678 | 1683 | | |
1679 | 1684 | | |
1680 | 1685 | | |
| |||
1684 | 1689 | | |
1685 | 1690 | | |
1686 | 1691 | | |
1687 | | - | |
1688 | | - | |
1689 | 1692 | | |
1690 | 1693 | | |
1691 | 1694 | | |
| |||
0 commit comments