Commit dd17483
s390/vfio-ap: remove upper limit on wait for queue reset to complete
The architecture does not define an upper limit on how long a queue reset
(RAPQ/ZAPQ) can take to complete. In order to ensure both the security
requirements and prevent resource leakage and corruption in the hypervisor,
it is necessary to remove the upper limit (200ms) the vfio_ap driver
currently waits for a reset to complete. This, of course, may result in a
hang which is a less than desirable user experience, but until a firmware
solution is provided, this is a necessary evil.
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Tested-by: Viktor Mihajlovski <mihajlov@linux.ibm.com>
Link: https://lore.kernel.org/r/20230815184333.6554-6-akrowiak@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>1 parent c51f8c6 commit dd17483
1 file changed
Lines changed: 35 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
1622 | 1621 | | |
1623 | 1622 | | |
1624 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
1625 | 1626 | | |
1626 | 1627 | | |
1627 | | - | |
1628 | | - | |
| 1628 | + | |
1629 | 1629 | | |
1630 | 1630 | | |
1631 | | - | |
| 1631 | + | |
1632 | 1632 | | |
| 1633 | + | |
1633 | 1634 | | |
1634 | 1635 | | |
1635 | | - | |
| 1636 | + | |
1636 | 1637 | | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
1637 | 1664 | | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | 1665 | | |
1643 | 1666 | | |
1644 | 1667 | | |
1645 | 1668 | | |
1646 | 1669 | | |
1647 | 1670 | | |
1648 | | - | |
| 1671 | + | |
1649 | 1672 | | |
1650 | 1673 | | |
1651 | 1674 | | |
1652 | | - | |
1653 | 1675 | | |
1654 | 1676 | | |
1655 | 1677 | | |
1656 | 1678 | | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | 1679 | | |
1667 | 1680 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
| 1681 | + | |
1673 | 1682 | | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
| 1683 | + | |
1677 | 1684 | | |
1678 | 1685 | | |
1679 | 1686 | | |
| |||
1682 | 1689 | | |
1683 | 1690 | | |
1684 | 1691 | | |
1685 | | - | |
1686 | 1692 | | |
1687 | 1693 | | |
1688 | 1694 | | |
| |||
0 commit comments