Commit 70b0280
committed
KVM: x86: Mark vmcs12 pages as dirty if and only if they're mapped
Mark vmcs12 pages as dirty (in KVM's dirty log bitmap) if and only if the
page is mapped, i.e. if the page is actually "active" in vmcs02. For some
pages, KVM simply disables the associated VMCS control if the vmcs12 page
is unreachable, i.e. it's possible for nested VM-Enter to succeed with a
"bad" vmcs12 page.
Link: https://patch.msgid.link/20251121223444.355422-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 44da662 commit 70b0280
2 files changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3984 | 3984 | | |
3985 | 3985 | | |
3986 | 3986 | | |
3987 | | - | |
3988 | | - | |
| 3987 | + | |
3989 | 3988 | | |
3990 | 3989 | | |
3991 | 3990 | | |
3992 | 3991 | | |
3993 | 3992 | | |
3994 | | - | |
3995 | | - | |
3996 | | - | |
3997 | | - | |
3998 | | - | |
3999 | | - | |
4000 | | - | |
4001 | | - | |
4002 | | - | |
4003 | | - | |
| 3993 | + | |
| 3994 | + | |
4004 | 3995 | | |
4005 | 3996 | | |
4006 | 3997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
| 1384 | + | |
1384 | 1385 | | |
1385 | 1386 | | |
1386 | 1387 | | |
| |||
1398 | 1399 | | |
1399 | 1400 | | |
1400 | 1401 | | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1401 | 1409 | | |
1402 | 1410 | | |
1403 | 1411 | | |
| |||
1410 | 1418 | | |
1411 | 1419 | | |
1412 | 1420 | | |
1413 | | - | |
1414 | 1421 | | |
1415 | 1422 | | |
1416 | 1423 | | |
| |||
0 commit comments