Commit 6917f43
s390/ap: Use all-bits-one apmask/aqmask for vfio in_use() checks
For the in_use() check of an updated apmask the host's aqmask
was provided to the vfio function. Similar on an update of the
aqmask the host's apmask was provided to the vfio in_use()
function. This led to false results on the check for apmask or
aqmask updates. For example with only one APQN when exactly
this card is tried to be re-assigned back to the host, the
in_use() check did not complain.
The correct behavior is achieved with providing a full mask
for aqmask when an adapter is to be checked and similar a full
mask for aqmask when a domain is to be checked for usage.
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>1 parent 2a2153a commit 6917f43
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
| 1455 | + | |
1455 | 1456 | | |
1456 | 1457 | | |
1457 | 1458 | | |
| |||
1461 | 1462 | | |
1462 | 1463 | | |
1463 | 1464 | | |
1464 | | - | |
| 1465 | + | |
| 1466 | + | |
1465 | 1467 | | |
1466 | 1468 | | |
1467 | 1469 | | |
| |||
1544 | 1546 | | |
1545 | 1547 | | |
1546 | 1548 | | |
| 1549 | + | |
1547 | 1550 | | |
1548 | 1551 | | |
1549 | 1552 | | |
| |||
1553 | 1556 | | |
1554 | 1557 | | |
1555 | 1558 | | |
1556 | | - | |
| 1559 | + | |
| 1560 | + | |
1557 | 1561 | | |
1558 | 1562 | | |
1559 | 1563 | | |
| |||
0 commit comments