Commit fd7bc61
Claudio Imbrenda
KVM: s390: vsie: Fix nested guest memory shadowing
Fix _do_shadow_pte() to use the correct pointer (guest pte instead of
nested guest) to set up the new pte.
Add a check to return -EOPNOTSUPP if the mapping for the nested guest
is writeable but the same page in the guest is only read-only.
Fixes: e38c884 ("KVM: s390: Switch to new gmap")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>1 parent 0f2b760 commit fd7bc61
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1445 | 1449 | | |
| 1450 | + | |
| 1451 | + | |
1446 | 1452 | | |
1447 | 1453 | | |
1448 | 1454 | | |
| |||
1477 | 1483 | | |
1478 | 1484 | | |
1479 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1480 | 1489 | | |
1481 | 1490 | | |
1482 | 1491 | | |
| |||
0 commit comments